feat: Refactor rspamd settings in x86_64-linux systems

This commit simplifies the configuration of rspamd settings in x86_64-linux systems. It primarily involves restructuring of settings for 'settings.conf', 'spf_whitelist', 'spf_dkim_whitelist', 'dmarc_whitelist', and 'greylist-whitelist-domains'.
This commit is contained in:
Harald Hoyer 2024-06-22 17:26:01 +02:00
parent 8bbed5e255
commit 7b06c9446c

View file

@ -5,56 +5,46 @@
mode = "0660"; mode = "0660";
}]; }];
services.rspamd.locals = { services.rspamd.locals = {
"settings.conf" = { "settings.conf".text = ''
text = '' bogenschiessen {
bogenschiessen { from = "bogensport-jugend@gmx.de";
from = "bogensport-jugend@gmx.de"; apply {
apply { actions {
actions { reject = 100.0;
reject = 100.0; greylist = null; # Disable greylisting (from 1.8.1)
greylist = null; # Disable greylisting (from 1.8.1) "add header" = 100.0; # Please note the space, NOT an underscore
"add header" = 100.0; # Please note the space, NOT an underscore
}
} }
} }
''; }
}; '';
"maps.d/spf_whitelist.inc.local" = { "maps.d/spf_whitelist.inc.local".text = ''
text = '' epicgames.com
epicgames.com dmail.ai
dmail.ai twitter.com
twitter.com x.com
x.com gmx.de
gmx.de '';
''; "maps.d/spf_dkim_whitelist.inc.local".text = ''
}; epicgames.com
"maps.d/spf_dkim_whitelist.inc.local" = { dmail.ai
text = '' twitter.com
epicgames.com x.com
dmail.ai gmx.de
twitter.com '';
x.com "maps.d/dmarc_whitelist.inc.local".text = ''
gmx.de epicgames.com
''; dmail.ai
}; twitter.com
"maps.d/dmarc_whitelist.inc.local" = { x.com
text = '' gmx.de
epicgames.com '';
dmail.ai "greylist-whitelist-domains.inc".text = ''
twitter.com dmail.ai
x.com epicgames.com
gmx.de twitter.com
''; x.com
}; gmx.de
"greylist-whitelist-domains.inc" = { '';
text = ''
dmail.ai
epicgames.com
twitter.com
x.com
gmx.de
'';
};
}; };
services.rspamd.extraConfig = '' services.rspamd.extraConfig = ''
actions { actions {