diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-09-21 13:30:18 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-09-21 13:49:48 +0200 |
commit | 5f485632e718523605e125889a68af796dbaa7d5 (patch) | |
tree | 16ef8b907fedf4214ddba603fc7e2026c20d6ff6 | |
parent | ce2f8006a30476cde0e5ab87e1403b90e2514a0e (diff) | |
download | rspamd-5f485632e718523605e125889a68af796dbaa7d5.tar.gz rspamd-5f485632e718523605e125889a68af796dbaa7d5.zip |
[Minor] Return policy in DMARC_POLICY_ACCEPT options
-rw-r--r-- | src/plugins/lua/dmarc.lua | 8 |
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 |