From: Alexey Date: Wed, 22 Jan 2014 18:07:39 +0000 (-0800) Subject: Fix hostname lookup for rdns rbl X-Git-Tag: 0.6.8~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F30%2Fhead;p=rspamd.git Fix hostname lookup for rdns rbl --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index c180898d4..0dcc48e7b 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -78,7 +78,7 @@ local function rbl_cb (task) end local sender_dns = task:get_hostname() - if sender_dns ~= nil then + if sender_dns ~= nil and sender_dns ~= 'unknown' then for k,rbl in pairs(rbls) do if rbl['rdns'] then task:get_resolver():resolve_a(task:get_session(), task:get_mempool(), sender_dns .. '.' .. rbl['rbl'], rbl_dns_cb, k)