NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

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

f95bd3e7
andryyy <[email protected]> 6 years ago
data/conf/rspamd/local.d/composites.conf | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

Diff

diff --git a/data/conf/rspamd/local.d/composites.conf b/data/conf/rspamd/local.d/composites.conf
index c1ecf8f3..71314b7f 100644
--- a/data/conf/rspamd/local.d/composites.conf
+++ b/data/conf/rspamd/local.d/composites.conf
@@ -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)"