From 30443544a321d540f7046b001caf97f3f1d5e2ef Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 2 Aug 2016 21:45:57 +0200 Subject: [PATCH] [Fix] Fix DMARC_BAD_POLICY symbol --- src/plugins/lua/dmarc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index ef86cfd07..f6dd8c75a 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -193,6 +193,7 @@ local function dmarc_callback(task) end end + local res = 0.5 if failed_policy then task:insert_result('DMARC_BAD_POLICY', res, lookup_domain .. ' : ' .. failed_policy) return @@ -231,7 +232,6 @@ local function dmarc_callback(task) end disposition = "none" - local res = 0.5 if not (spf_ok or dkim_ok) then res = 1.0 if quarantine_policy then -- 2.39.5