]> source.dussan.org Git - rspamd.git/commitdiff
Check for [ip.address]-style HELO and suppress lookups
authorAndrew Lewis <nerf@judo.za.org>
Fri, 31 Jan 2014 15:00:24 +0000 (17:00 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 31 Jan 2014 15:00:24 +0000 (17:00 +0200)
src/plugins/lua/rbl.lua

index 898da4e41ced45732a1996b1f9ec4d3693e5c036..b40278f5515b2f8badbe72f33132f2243bde765b 100644 (file)
@@ -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)