diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-15 15:29:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-15 15:29:16 +0000 |
commit | fc406133889dc128f44e351c3198994c2e8d1b8e (patch) | |
tree | cc0f27bd13b999c210d0baa85c4e1b4775136d7b /src/plugins/lua/once_received.lua | |
parent | 9e517e2fc15cb56dc48059fa3c80a4fb96e838b6 (diff) | |
parent | a9dd24b1723ab920039b930791ef154a4476f30b (diff) | |
download | rspamd-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.lua | 4 |
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() |