From 8b0cc9edf791fb10e8c55ce8cc521607868a6779 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 28 Jun 2017 10:33:53 +0200 Subject: [PATCH] [Fix] RBL: Fixed hashed email address 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 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 -- 2.39.5