From 5f485632e718523605e125889a68af796dbaa7d5 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 21 Sep 2016 13:30:18 +0200 Subject: [PATCH] [Minor] Return policy in DMARC_POLICY_ACCEPT options --- src/plugins/lua/dmarc.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5