From e6898beb59b7b5b9604f07354d2f5c2d5095d53d Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 19 Jan 2021 12:59:46 +0100 Subject: [PATCH] [Rspamd] Remove ham symbols if a fuzzy denied hash matched --- data/conf/rspamd/local.d/composites.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/conf/rspamd/local.d/composites.conf b/data/conf/rspamd/local.d/composites.conf index b7332234..2fe2b489 100644 --- a/data/conf/rspamd/local.d/composites.conf +++ b/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; +}