1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/core/rspamd/conf/force_actions.conf

18 lines
847 B
Plaintext
Raw Normal View History

rules {
2022-10-20 10:24:10 +02:00
ANTISPOOF_NOAUTH {
action = "reject";
2022-10-25 12:05:25 +02:00
expression = "!MAILLIST & ((IS_LOCAL_DOMAIN_E & MISSING_FROM) | (IS_LOCAL_DOMAIN_H & (R_DKIM_NA & R_SPF_NA & DMARC_NA & ARC_NA)))";
2022-10-20 10:35:43 +02:00
message = "Rejected (anti-spoofing: noauth). Please setup DMARC with DKIM or SPF if you want to send emails from your domain from other servers.";
2022-10-20 10:24:10 +02:00
}
ANTISPOOF_DMARC_ENFORCE_LOCAL {
action = "reject";
2022-10-25 12:05:25 +02:00
expression = "!MAILLIST & (IS_LOCAL_DOMAIN_H | IS_LOCAL_DOMAIN_E) & (DMARC_POLICY_SOFTFAIL | DMARC_POLICY_REJECT | DMARC_POLICY_QUARANTINE | DMARC_NA)";
message = "Rejected (anti-spoofing: DMARC compliance is enforced for local domains, regardless of the policy setting)";
2022-10-20 10:24:10 +02:00
}
ANTISPOOF_AUTH_FAILED {
action = "reject";
2022-10-25 12:05:25 +02:00
expression = "!MAILLIST & BLACKLIST_ANTISPOOF";
2022-10-20 10:35:43 +02:00
message = "Rejected (anti-spoofing: auth-failed)";
}
}