aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-24 10:50:27 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-24 10:50:27 +0200
commit63e5a6fa8dd538eecccd7c3edeeeebb75bd6a0d7 (patch)
tree6e3b5ea30278b04c3dbce87097ba7f66d5123a62 /src
parent90237d0d4b0196171226801438b70f8fd3f69686 (diff)
downloadrspamd-63e5a6fa8dd538eecccd7c3edeeeebb75bd6a0d7.tar.gz
rspamd-63e5a6fa8dd538eecccd7c3edeeeebb75bd6a0d7.zip
[Minor] Fix logging in emails/asn modules
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/asn.lua2
-rw-r--r--src/plugins/lua/emails.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/asn.lua b/src/plugins/lua/asn.lua
index c632ae182..7595e1114 100644
--- a/src/plugins/lua/asn.lua
+++ b/src/plugins/lua/asn.lua
@@ -56,7 +56,7 @@ local function asn_check(task)
local asn_check_func = {}
function asn_check_func.rspamd(ip)
local function rspamd_dns_cb(_, _, results, dns_err)
- if dns_err then
+ if dns_err and (dns_err ~= 'requested record is not found' and dns_err ~= 'no records with this name') then
rspamd_logger.errx(task, 'error querying dns: %s', dns_err)
end
if not (results and results[1]) then return end
diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua
index 83eb34ed0..25e9ff88c 100644
--- a/src/plugins/lua/emails.lua
+++ b/src/plugins/lua/emails.lua
@@ -25,7 +25,7 @@ local logger = require "rspamd_logger"
-- Check rule for a single email
local function check_email_rule(task, rule, addr)
local function emails_dns_cb(_, to_resolve, results, err)
- if err then
+ if err and (err ~= 'requested record is not found' and err ~= 'no records with this name') then
logger.errx(task, 'Error querying DNS: %1', err)
elseif results then
logger.infox(task, '<%1> email: [%2] resolved for symbol: %3',