commit 5b6f5b6: [Fix] Rbl: Fix emailbl functions

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jul 31 14:07:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-07-31 15:05:12 +0100
URL: https://github.com/rspamd/rspamd/commit/5b6f5b656ac2e43208acef801f8d1f0c1b3c9ddf (HEAD -> master)

[Fix] Rbl: Fix emailbl functions

---
 src/plugins/lua/rbl.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index 677496fa8..cf04b8abb 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


More information about the Commits mailing list