浏览代码

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

andryyy 4 年之前
父节点
当前提交
e6898beb59
共有 1 个文件被更改,包括 5 次插入0 次删除
  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 {
   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;
+}