[Rspamd] More excludes for fwd hosts, minor fix to FORGED_W_BAD_POLICY

This commit is contained in:
andryyy 2020-05-23 11:16:33 +02:00
parent 8a441dd77a
commit 615ef47f27
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -31,12 +31,21 @@ BAD_WORD_BAD_TLD {
score = 10.0; score = 10.0;
} }
FORGED_W_BAD_POLICY { FORGED_W_BAD_POLICY {
expression = "( ~g+:policies | ~R_SPF_NA) & ( ~FROM_NEQ_ENVFROM & ~FORGED_SENDER )" expression = "( ~g+:policies | ~R_SPF_NA) & ( ~FROM_NEQ_ENVFROM & ~FORGED_SENDER ) & !WHITELISTED_FWD_HOST"
score = 3.0; score = 3.0;
} }
RBL_EXCLUDE_FWD_HOST { RBL_EXCLUDE_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & ^g:rbl" expression = "-WHITELISTED_FWD_HOST & ^g:rbl"
} }
POLICIES_EXCLUDE_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & ^g:policies"
}
HFILTER_EXCLUDE_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & ^g:hfilter"
}
STATISTICS_EXCLUDE_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & ^g:statistics"
}
UPSTREAM_CHECKS_EXCLUDE_FWD_HOST { UPSTREAM_CHECKS_EXCLUDE_FWD_HOST {
expression = "(-SIEVE_HOST | -WHITELISTED_FWD_HOST) & (^UNITEDINTERNET_SPAM | ^SPAM_FLAG | ^KLMS_SPAM | ^AOL_SPAM | ^MICROSOFT_SPAM)" expression = "(-SIEVE_HOST | -WHITELISTED_FWD_HOST) & (^UNITEDINTERNET_SPAM | ^SPAM_FLAG | ^KLMS_SPAM | ^AOL_SPAM | ^MICROSOFT_SPAM)"
} }