commit 42b990a: [Minor] Rbl: Match old surbl behaviour for emails

Vsevolod Stakhov vsevolod at highsecure.ru
Sun Sep 1 08:42:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-01 09:35:31 +0100
URL: https://github.com/rspamd/rspamd/commit/42b990a458fbb81ad4d605755d8f7a8fd16d8e42 (HEAD -> master)

[Minor] Rbl: Match old surbl behaviour for emails

---
 lualib/lua_cfg_transform.lua | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index 07a53723e..32e1a2ee3 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -263,6 +263,11 @@ local function surbl_section_convert(cfg, section)
           converted.dkim_match_from = true
         end
 
+        if k == 'emails' and v then
+          -- To match surbl behaviour
+          converted.emails_domainonly = true
+        end
+
         converted[k] = lua_util.deepcopy(v)
       end
       rbl_section[name] = converted


More information about the Commits mailing list