mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-16 10:59:53 +02:00
8929f54de5
Also cover the case where the DKIM sig is for another domain and there is no explicit DMARC policy
18 lines
810 B
Plaintext
18 lines
810 B
Plaintext
rules {
|
|
ANTISPOOF_NOAUTH {
|
|
action = "reject";
|
|
expression = "(IS_LOCAL_DOMAIN_E & MISSING_FROM) | (IS_LOCAL_DOMAIN_H & (R_DKIM_NA & R_SPF_NA & DMARC_NA & ARC_NA))";
|
|
message = "Rejected (anti-spoofing: noauth). Please setup DMARC with DKIM or SPF if you want to send emails from your domain from other servers.";
|
|
}
|
|
ANTISPOOF_DMARC_ENFORCE_LOCAL {
|
|
action = "reject";
|
|
expression = "((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)";
|
|
}
|
|
ANTISPOOF_AUTH_FAILED {
|
|
action = "reject";
|
|
expression = "BLACKLIST_ANTISPOOF";
|
|
message = "Rejected (anti-spoofing: auth-failed)";
|
|
}
|
|
}
|