summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/once_received.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-15 15:29:16 +0000
committerGitHub <noreply@github.com>2016-11-15 15:29:16 +0000
commitfc406133889dc128f44e351c3198994c2e8d1b8e (patch)
treecc0f27bd13b999c210d0baa85c4e1b4775136d7b /src/plugins/lua/once_received.lua
parent9e517e2fc15cb56dc48059fa3c80a4fb96e838b6 (diff)
parenta9dd24b1723ab920039b930791ef154a4476f30b (diff)
downloadrspamd-fc406133889dc128f44e351c3198994c2e8d1b8e.tar.gz
rspamd-fc406133889dc128f44e351c3198994c2e8d1b8e.zip
Merge pull request #1131 from fatalbanana/dns
[Minor] Fix DNS lookup errors
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r--src/plugins/lua/once_received.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua
index 5cce56f62..8c7ed0777 100644
--- a/src/plugins/lua/once_received.lua
+++ b/src/plugins/lua/once_received.lua
@@ -31,8 +31,8 @@ local function check_quantity_received (task)
local recvh = task:get_received_headers()
local function recv_dns_cb(_, to_resolve, results, err)
- if err then
- rspamd_logger.errx(task, 'DNS lookup error: %s', err)
+ if err and (err ~= 'requested record is not found' and err ~= 'no records with this name') then
+ rspamd_logger.errx(task, 'error looking up %s: %s', to_resolve, err)
end
task:inc_dns_req()