Browse Source

[Rspamd] Remove ham symbols if a fuzzy denied hash matched

andryyy 4 years ago
parent
commit
e6898beb59
1 changed files with 5 additions and 0 deletions
  1. 5 0
      data/conf/rspamd/local.d/composites.conf

+ 5 - 0
data/conf/rspamd/local.d/composites.conf

@@ -54,3 +54,8 @@ UPSTREAM_CHECKS_EXCLUDE_FWD_HOST {
 BOUNCE_FUZZY {
 BOUNCE_FUZZY {
   expression = "-BOUNCE & ^g+:fuzzy";
   expression = "-BOUNCE & ^g+:fuzzy";
 }
 }
+# Remove bayes ham if fuzzy denied
+FUZZY_HAM_MISMATCH {
+  expression = "(-FUZZY_DENIED | -MAILCOW_FUZZY_DENIED | -LOCAL_FUZZY_DENIED) & (^BAYES_HAM | ^NEURAL_HAM_LONG | ^NEURAL_HAM_SHORT)";
+  score = 1.0;
+}