[Rspamd] Block spoofing for free mail domains (#3907)

master
Dmitriy Alekseev 2020-12-28 23:04:01 +02:00 committed by GitHub
parent 483ea1a4c8
commit fec6876490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,11 @@ VIRUS_FOUND {
expression = "CLAM_VIRUS & !MAILCOW_WHITE";
score = 2000.0;
}
# Bad policy from free mail providers
FREEMAIL_POLICY_FAILURE {
expression = " -g+:policies & !DMARC_POLICY_ALLOW & ( FREEMAIL_ENVFROM | FREEMAIL_FROM ) & !WHITELISTED_FWD_HOST";
score = 16.0;
}
# Bad policy from non-whitelisted senders
# Remove SOGO_CONTACT symbol for fwd hosts and senders with broken policy
SOGO_CONTACT_EXCLUDE {