From: Andrew Lewis Date: Wed, 21 Sep 2016 11:30:18 +0000 (+0200) Subject: [Minor] Return policy in DMARC_POLICY_ACCEPT options X-Git-Tag: 1.4.0~399^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F973%2Fhead;p=rspamd.git [Minor] Return policy in DMARC_POLICY_ACCEPT options --- diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index 350c66072..718eb309b 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -306,7 +306,13 @@ local function dmarc_callback(task) task:insert_result(dmarc_symbols['softfail'], res, lookup_domain .. ' : ' .. reason_str) end else - task:insert_result(dmarc_symbols['allow'], res, lookup_domain) + local real_policy = 'none' + if strict_policy then + real_policy = 'reject' + elseif quarantine_policy then + real_policy = 'quarantine' + end + task:insert_result(dmarc_symbols['allow'], res, lookup_domain, real_policy) end if rua and redis_params and dmarc_reporting then