From 3a39937baff45696cb544e9f8902571a39363c79 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 10 Dec 2018 13:26:18 +0100 Subject: [PATCH] [Rspamd] Do not apply SOGO_CONTACT for SPF fails and when sending from whitelisted host --- data/conf/rspamd/local.d/composites.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/data/conf/rspamd/local.d/composites.conf b/data/conf/rspamd/local.d/composites.conf index dd47be35..23a91549 100644 --- a/data/conf/rspamd/local.d/composites.conf +++ b/data/conf/rspamd/local.d/composites.conf @@ -1,5 +1,5 @@ MX_IMPLICIT { - expression = "MX_GOOD and MX_MISSING"; + expression = "MX_GOOD & MX_MISSING"; score = -0.01; } VIRUS_FOUND { @@ -10,3 +10,9 @@ SPF_FAIL_NO_DKIM { expression = "R_SPF_FAIL & R_DKIM_NA & !MAILCOW_WHITE"; score = 10; } +SOGO_CONTACT_EXCLUDE_FWD_HOST { + expression = "WHITELISTED_FWD_HOST & ~SOGO_CONTACT"; +} +SOGO_CONTACT_SPOOFED { + expression = "(R_SPF_PERMFAIL | R_SPF_SOFTFAIL) & ~SOGO_CONTACT"; +}