]> source.dussan.org Git - rspamd.git/commitdiff
[Conf] Add composite to negate policies when fuzzy/bayes found
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 9 Oct 2018 11:37:30 +0000 (12:37 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 9 Oct 2018 11:37:30 +0000 (12:37 +0100)
conf/composites.conf

index 0de2ee2a01e5f40ca1e917a79a5403d9a98fa5ea..6536aa42ba6098c0e9119bd15a5e722d3aef3350 100644 (file)
@@ -117,6 +117,12 @@ composites {
         description = "Contains one or more domains trying to disguise owner/destination";
         score = 0.5;
     }
+    BAD_REP_POLICIES {
+      description = "Contains valid policies but are also marked by fuzzy/bayes";
+      expression = "(g-:policies) & (g+:fuzzy | g+:bayes)";
+      score = 0.1;
+      policy = "remove_weight";
+    }
 
     .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/composites.conf"
     .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/composites.conf"