From c0225faa034f4116dbed4ed9436678a1e88879f8 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 31 Jan 2014 17:00:24 +0200 Subject: [PATCH] Check for [ip.address]-style HELO and suppress lookups --- src/plugins/lua/rbl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 898da4e41..b40278f55 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) -- 2.39.5