From: Vsevolod Stakhov Date: Mon, 30 Sep 2019 15:07:22 +0000 (+0100) Subject: [Fix] RBL: Fix behaviour of emails_domainonly X-Git-Tag: 2.0~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2aaf45f8f38ace7fa6b39d5e161d5389c1d52e40;p=rspamd.git [Fix] RBL: Fix behaviour of emails_domainonly --- 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), }