diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-09-27 16:03:24 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-09-27 16:03:24 +0200 |
commit | 298b017d8d46d0120a35bbe4ad71795d5e2ea187 (patch) | |
tree | 3594bc7911a5c3c7ecf5714d43691251c09a46e7 /src/plugins/lua/dmarc.lua | |
parent | 8afaa80ad5eb23d2b9feb575f9ef4d7bef7b1e85 (diff) | |
download | rspamd-298b017d8d46d0120a35bbe4ad71795d5e2ea187.tar.gz rspamd-298b017d8d46d0120a35bbe4ad71795d5e2ea187.zip |
[Minor] Fix DMARC after the recent RDNS changes
Diffstat (limited to 'src/plugins/lua/dmarc.lua')
-rw-r--r-- | src/plugins/lua/dmarc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index 718eb309b..caf20b2fd 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -102,10 +102,10 @@ local function dmarc_callback(task) local function dmarc_dns_cb(resolver, to_resolve, results, err, key) local lookup_domain = string.sub(to_resolve, 8) - if err and err ~= 'requested record is not found' then + if err and (err ~= 'requested record is not found' and err ~= 'no records with this name') then task:insert_result(dmarc_symbols['dnsfail'], 1.0, lookup_domain .. ' : ' .. err) return maybe_force_action('dnsfail') - elseif err == 'requested record is not found' and + elseif err and (err == 'requested record is not found' or err == 'no records with this name') and lookup_domain == dmarc_domain then task:insert_result(dmarc_symbols['na'], 1.0, lookup_domain) return maybe_force_action('na') |