From: Andrew Lewis Date: Wed, 28 Jun 2017 08:33:53 +0000 (+0200) Subject: [Fix] RBL: Fixed hashed email address lookups X-Git-Tag: 1.6.2~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b0cc9edf791fb10e8c55ce8cc521607868a6779;p=rspamd.git [Fix] RBL: Fixed hashed email address lookups --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 0f02d5457..f5d8d1bf8 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -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