From 583663f6d1736f1fb6a02766edca10792ca391e2 Mon Sep 17 00:00:00 2001 From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Fri, 11 Jun 2021 16:10:28 +0300 Subject: [PATCH] [Rspamd] Fix FREEMAIL_POLICY_FAILURE with SPF_SOFTFAIL (#4142) Add really low negative score to SOFTFAIL policy symbols to get FREEMAIL_POLICY_FAILURE triggered correctly --- data/conf/rspamd/local.d/policies_group.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/conf/rspamd/local.d/policies_group.conf b/data/conf/rspamd/local.d/policies_group.conf index 8799db1c..954deacf 100644 --- a/data/conf/rspamd/local.d/policies_group.conf +++ b/data/conf/rspamd/local.d/policies_group.conf @@ -1,6 +1,6 @@ symbols = { "ARC_REJECT" { - score = 0.01; + score = 0.1; } "R_SPF_FAIL" { score = 8.0; @@ -8,6 +8,9 @@ symbols = { "R_SPF_PERMFAIL" { score = 8.0; } + "R_SPF_SOFTFAIL" { + score = 0.1; + } "R_DKIM_REJECT" { score = 8.0; } @@ -18,6 +21,6 @@ symbols = { weight = 8.0; } "DMARC_POLICY_SOFTFAIL" { - weight = 0.0; + weight = 0.1; } }