summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-31 15:05:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-31 15:05:12 +0100
commit5b6f5b656ac2e43208acef801f8d1f0c1b3c9ddf (patch)
treefc6945118e434c09cc8d6dfafc898582c643658e /src
parentf2237ce39686967e00abb8886d21687fd22c5682 (diff)
downloadrspamd-5b6f5b656ac2e43208acef801f8d1f0c1b3c9ddf.tar.gz
rspamd-5b6f5b656ac2e43208acef801f8d1f0c1b3c9ddf.zip
[Fix] Rbl: Fix emailbl functions
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/rbl.lua4
1 files 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