From: Andrew Lewis Date: Fri, 31 Jan 2014 15:00:24 +0000 (+0200) Subject: Check for [ip.address]-style HELO and suppress lookups X-Git-Tag: 0.7.0~429^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0225faa034f4116dbed4ed9436678a1e88879f8;p=thirdparty%2Frspamd.git Check for [ip.address]-style HELO and suppress lookups --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 898da4e41c..b40278f551 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -78,7 +78,7 @@ local function rbl_cb (task) end local helo = task:get_helo() - if helo then + if helo and string.sub(helo,1,1) ~= '[' then for k,rbl in pairs(rbls) do if rbl['helo'] then task:get_resolver():resolve_a(task:get_session(), task:get_mempool(), helo .. '.' .. rbl['rbl'], rbl_dns_cb, k)