2022-10-19 17:53:32 +02:00
|
|
|
rules {
|
2022-10-20 10:24:10 +02:00
|
|
|
ANTISPOOF_NOAUTH {
|
2022-10-19 17:53:32 +02:00
|
|
|
action = "reject";
|
2022-10-20 10:24:10 +02:00
|
|
|
expression = "(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";
|
|
|
|
expression = "((IS_LOCAL_DOMAIN_H | IS_LOCAL_DOMAIN_E) & (DMARC_POLICY_SOFTFAIL | DMARC_POLICY_REJECT | DMARC_POLICY_QUARANTINE)";
|
2022-10-20 10:35:43 +02:00
|
|
|
message = "Rejected (anti-spoofing: DMARC is enforced for local domains)";
|
2022-10-20 10:24:10 +02:00
|
|
|
}
|
|
|
|
ANTISPOOF_AUTH_FAILED {
|
|
|
|
action = "reject";
|
|
|
|
expression = "BLACKLIST_ANTISPOOF";
|
2022-10-20 10:35:43 +02:00
|
|
|
message = "Rejected (anti-spoofing: auth-failed)";
|
2022-10-19 17:53:32 +02:00
|
|
|
}
|
|
|
|
}
|