]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] RBL: Fixed hashed email address lookups
authorAndrew Lewis <nerf@judo.za.org>
Wed, 28 Jun 2017 08:33:53 +0000 (10:33 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 28 Jun 2017 08:33:53 +0000 (10:33 +0200)
src/plugins/lua/rbl.lua

index 0f02d54575a5f522681d6e61223dc91f206c8856..f5d8d1bf8ca8ceeaf7399ec3618143c09426e035 100644 (file)
@@ -333,7 +333,7 @@ local function rbl_cb (task)
       for _, email in ipairs(havegot['emails']) do
         local to_resolve
         if rbl['hash'] then
-          to_resolve = make_hash(tostring(email), rbl['hash']) .. '.' .. rbl['rbl']
+          to_resolve = make_hash(email:get_user() .. '@' .. email:get_host(), rbl['hash']) .. '.' .. rbl['rbl']
         else
           local upart = email:get_user()
           if validate_dns(upart) then