diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-03 10:50:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-03 10:50:33 +0100 |
commit | 664dbc8cea53912e925d64527a57e7acb2e81174 (patch) | |
tree | b551dace523082d79210258deb84a43ed0f4969d /src | |
parent | 004766024eb38fe21d859a8ca65fc87bd952cd19 (diff) | |
parent | 30443544a321d540f7046b001caf97f3f1d5e2ef (diff) | |
download | rspamd-664dbc8cea53912e925d64527a57e7acb2e81174.tar.gz rspamd-664dbc8cea53912e925d64527a57e7acb2e81174.zip |
Merge pull request #793 from fatalbanana/dmarc
[Fix] Fix DMARC_BAD_POLICY symbol
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/dmarc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |