commit 2aaf45f: [Fix] RBL: Fix behaviour of emails_domainonly

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Sep 30 15:14:07 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-30 16:07:22 +0100
URL: https://github.com/rspamd/rspamd/commit/2aaf45f8f38ace7fa6b39d5e161d5389c1d52e40

[Fix] RBL: Fix behaviour of emails_domainonly

---
 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 cf474f69c..59ac8f7e1 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -589,7 +589,7 @@ local function gen_rbl_callback(rule)
 
     for _,email in ipairs(emails) do
       local email_tbl = {
-        domain = email:get_tld(),
+        domain = (rule.emails_domainonly and email:get_tld()) or email:get_host(),
         user = email:get_user(),
         addr = tostring(email),
       }


More information about the Commits mailing list