From: Vsevolod Stakhov Date: Wed, 31 Jul 2019 14:05:12 +0000 (+0100) Subject: [Fix] Rbl: Fix emailbl functions X-Git-Tag: 2.0~473 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b6f5b656ac2e43208acef801f8d1f0c1b3c9ddf;p=thirdparty%2Frspamd.git [Fix] Rbl: Fix emailbl functions --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 677496fa86..cf04b8abb9 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -336,11 +336,11 @@ local function gen_rbl_callback(rule) if rule.hash then -- Leave @ as is add_dns_request(string.format('%s@%s', - email:get_user(), email:get_domain()), false, requests_table) + email:get_user(), email:get_host()), false, requests_table) else -- Replace @ with . add_dns_request(string.format('%s.%s', - email:get_user(), email:get_domain()), false, requests_table) + email:get_user(), email:get_host()), false, requests_table) end end end