mail: disable rspamd actions for mail from localhost
This commit is contained in:
parent
83afecfd72
commit
6ce23ca253
@ -56,6 +56,7 @@
|
||||
notify: Restart rspamd
|
||||
with_items:
|
||||
- options.inc
|
||||
- settings.conf
|
||||
- arc.conf
|
||||
- dkim_signing.conf
|
||||
|
||||
|
15
roles/mail/templates/rspamd/local.d/settings.conf.j2
Normal file
15
roles/mail/templates/rspamd/local.d/settings.conf.j2
Normal file
@ -0,0 +1,15 @@
|
||||
localhost_mail {
|
||||
id = "localhost_mail";
|
||||
priority = high;
|
||||
ip = "127.0.0.0/8";
|
||||
ip = "::1/128";
|
||||
apply {
|
||||
actions {
|
||||
# Disable any action for mail from localhost
|
||||
reject = null;
|
||||
greylist = null;
|
||||
"add header" = null;
|
||||
spam = null;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user