feat: add the gateway ip to teh rspamd whitelist
All checks were successful
Build_Deploy / linter (push) Successful in 17s
Build_Deploy / build (push) Successful in 1m33s
Build_Deploy / deploy_dns (push) Successful in 1m28s
Build_Deploy / deploy_active (active) (push) Successful in 2m40s
Build_Deploy / deploy_active (active-ext) (push) Successful in 1m43s
Build_Deploy / deploy_active (active-core) (push) Successful in 5m9s
All checks were successful
Build_Deploy / linter (push) Successful in 17s
Build_Deploy / build (push) Successful in 1m33s
Build_Deploy / deploy_dns (push) Successful in 1m28s
Build_Deploy / deploy_active (active) (push) Successful in 2m40s
Build_Deploy / deploy_active (active-ext) (push) Successful in 1m43s
Build_Deploy / deploy_active (active-core) (push) Successful in 5m9s
This commit is contained in:
parent
14732ead0f
commit
b600af4ff5
1 changed files with 18 additions and 9 deletions
|
@ -563,14 +563,23 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# tune the spam filter
|
# tune the spam filter
|
||||||
/*
|
services.rspamd.locals = {
|
||||||
services.rspamd.extraConfig = ''
|
"multimap.conf" = {
|
||||||
actions {
|
text = ''
|
||||||
reject = null; # Disable rejects, default is 15
|
IP_WHITELIST {
|
||||||
add_header = 7; # Add header when reaching this score
|
type = "ip";
|
||||||
greylist = 4; # Apply greylisting when reaching this score
|
prefilter = true;
|
||||||
}
|
map = "/etc/rspamd/local.d/ip_whitelist.map";
|
||||||
'';
|
action = "accept";
|
||||||
*/
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
"ip_whitelist.map" = {
|
||||||
|
text = ''
|
||||||
|
193.1.99.86
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue