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,8 +5,7 @@
|
||||||
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 {
|
||||||
|
@ -18,36 +17,28 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
"maps.d/spf_whitelist.inc.local".text = ''
|
||||||
"maps.d/spf_whitelist.inc.local" = {
|
|
||||||
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 = ''
|
||||||
"maps.d/spf_dkim_whitelist.inc.local" = {
|
|
||||||
text = ''
|
|
||||||
epicgames.com
|
epicgames.com
|
||||||
dmail.ai
|
dmail.ai
|
||||||
twitter.com
|
twitter.com
|
||||||
x.com
|
x.com
|
||||||
gmx.de
|
gmx.de
|
||||||
'';
|
'';
|
||||||
};
|
"maps.d/dmarc_whitelist.inc.local".text = ''
|
||||||
"maps.d/dmarc_whitelist.inc.local" = {
|
|
||||||
text = ''
|
|
||||||
epicgames.com
|
epicgames.com
|
||||||
dmail.ai
|
dmail.ai
|
||||||
twitter.com
|
twitter.com
|
||||||
x.com
|
x.com
|
||||||
gmx.de
|
gmx.de
|
||||||
'';
|
'';
|
||||||
};
|
"greylist-whitelist-domains.inc".text = ''
|
||||||
"greylist-whitelist-domains.inc" = {
|
|
||||||
text = ''
|
|
||||||
dmail.ai
|
dmail.ai
|
||||||
epicgames.com
|
epicgames.com
|
||||||
twitter.com
|
twitter.com
|
||||||
|
@ -55,7 +46,6 @@
|
||||||
gmx.de
|
gmx.de
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
|
||||||
services.rspamd.extraConfig = ''
|
services.rspamd.extraConfig = ''
|
||||||
actions {
|
actions {
|
||||||
reject = null;
|
reject = null;
|
||||||
|
|
Loading…
Reference in a new issue