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:
parent
8bbed5e255
commit
7b06c9446c
|
@ -5,56 +5,46 @@
|
|||
mode = "0660";
|
||||
}];
|
||||
services.rspamd.locals = {
|
||||
"settings.conf" = {
|
||||
text = ''
|
||||
bogenschiessen {
|
||||
from = "bogensport-jugend@gmx.de";
|
||||
apply {
|
||||
actions {
|
||||
reject = 100.0;
|
||||
greylist = null; # Disable greylisting (from 1.8.1)
|
||||
"add header" = 100.0; # Please note the space, NOT an underscore
|
||||
}
|
||||
"settings.conf".text = ''
|
||||
bogenschiessen {
|
||||
from = "bogensport-jugend@gmx.de";
|
||||
apply {
|
||||
actions {
|
||||
reject = 100.0;
|
||||
greylist = null; # Disable greylisting (from 1.8.1)
|
||||
"add header" = 100.0; # Please note the space, NOT an underscore
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
"maps.d/spf_whitelist.inc.local" = {
|
||||
text = ''
|
||||
epicgames.com
|
||||
dmail.ai
|
||||
twitter.com
|
||||
x.com
|
||||
gmx.de
|
||||
'';
|
||||
};
|
||||
"maps.d/spf_dkim_whitelist.inc.local" = {
|
||||
text = ''
|
||||
epicgames.com
|
||||
dmail.ai
|
||||
twitter.com
|
||||
x.com
|
||||
gmx.de
|
||||
'';
|
||||
};
|
||||
"maps.d/dmarc_whitelist.inc.local" = {
|
||||
text = ''
|
||||
epicgames.com
|
||||
dmail.ai
|
||||
twitter.com
|
||||
x.com
|
||||
gmx.de
|
||||
'';
|
||||
};
|
||||
"greylist-whitelist-domains.inc" = {
|
||||
text = ''
|
||||
dmail.ai
|
||||
epicgames.com
|
||||
twitter.com
|
||||
x.com
|
||||
gmx.de
|
||||
'';
|
||||
};
|
||||
}
|
||||
'';
|
||||
"maps.d/spf_whitelist.inc.local".text = ''
|
||||
epicgames.com
|
||||
dmail.ai
|
||||
twitter.com
|
||||
x.com
|
||||
gmx.de
|
||||
'';
|
||||
"maps.d/spf_dkim_whitelist.inc.local".text = ''
|
||||
epicgames.com
|
||||
dmail.ai
|
||||
twitter.com
|
||||
x.com
|
||||
gmx.de
|
||||
'';
|
||||
"maps.d/dmarc_whitelist.inc.local".text = ''
|
||||
epicgames.com
|
||||
dmail.ai
|
||||
twitter.com
|
||||
x.com
|
||||
gmx.de
|
||||
'';
|
||||
"greylist-whitelist-domains.inc".text = ''
|
||||
dmail.ai
|
||||
epicgames.com
|
||||
twitter.com
|
||||
x.com
|
||||
gmx.de
|
||||
'';
|
||||
};
|
||||
services.rspamd.extraConfig = ''
|
||||
actions {
|
||||
|
|
Loading…
Reference in a new issue