aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2014-01-31 17:00:24 +0200
committerAndrew Lewis <nerf@judo.za.org>2014-01-31 17:00:24 +0200
commitc0225faa034f4116dbed4ed9436678a1e88879f8 (patch)
treef691e38c9f53b53eada73902cc7a9ed415f56c52
parent32f1660faccc8e15e0de210d38757cf1328366cc (diff)
downloadrspamd-c0225faa034f4116dbed4ed9436678a1e88879f8.tar.gz
rspamd-c0225faa034f4116dbed4ed9436678a1e88879f8.zip
Check for [ip.address]-style HELO and suppress lookups
-rw-r--r--src/plugins/lua/rbl.lua2
1 files changed, 1 insertions, 1 deletions
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)