aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/dmarc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/dmarc.lua')
-rw-r--r--src/plugins/lua/dmarc.lua8
1 files changed, 7 insertions, 1 deletions
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