diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-02 12:43:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-02 12:43:39 +0100 |
commit | 38a7c9073a03014a2a46ef02bea227775a8b3863 (patch) | |
tree | f53dfaa73d6515a152ee12b91a396fc4b97ec866 /src | |
parent | 4d74d08408196235bfb7f4c9fcbc48c4329ca5a1 (diff) | |
download | rspamd-38a7c9073a03014a2a46ef02bea227775a8b3863.tar.gz rspamd-38a7c9073a03014a2a46ef02bea227775a8b3863.zip |
[Fix] Fix DMARC_NA behaviour in case of no valid policies
Issue: #2955
Submitted by: @mguesdon
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/dmarc.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index e9524c0b5..b2175a331 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -663,6 +663,11 @@ local function dmarc_callback(task) end end end + + if not has_valid_policy then + policy_target.err = lookup_domain .. ':' .. ' no valid DMARC record' + policy_target.symbol = dmarc_symbols['na'] + end end end |