[Rspamd] Simplify forward host rule and add policy group to exceptions for fwd host

master
andryyy 2020-10-18 09:12:02 +02:00
parent 5cd6bed701
commit f95bd3e7b6
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 2 additions and 11 deletions

View File

@ -35,17 +35,8 @@ FORGED_W_BAD_POLICY {
expression = "( ~g+:policies | ~R_SPF_NA) & ( ~FROM_NEQ_ENVFROM & ~FORGED_SENDER ) & !WHITELISTED_FWD_HOST"
score = 3.0;
}
RBL_EXCLUDE_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & ^g:rbl"
}
SPF_EXCLUDE_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & (^R_SPF_PERMFAIL | ^R_SPF_SOFTFAIL | ^R_SPF_FAIL)"
}
HFILTER_EXCLUDE_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & ^g:hfilter"
}
NEURAL_EXCLUDE_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & ^g:neural"
WL_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & (^g:rbl | ^g+:policies | ^g:hfilter | ^g:neural)"
}
UPSTREAM_CHECKS_EXCLUDE_FWD_HOST {
expression = "(-SIEVE_HOST | -WHITELISTED_FWD_HOST) & (^UNITEDINTERNET_SPAM | ^SPAM_FLAG | ^KLMS_SPAM | ^AOL_SPAM | ^MICROSOFT_SPAM)"