commit 530e595: [Minor] Dkim_signing: Add exclusion for sign networks
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Apr 9 11:49:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-04-09 12:47:40 +0100
URL: https://github.com/rspamd/rspamd/commit/530e595772bf0a1aa9d8be715da6ab4987d4ecae (HEAD -> master)
[Minor] Dkim_signing: Add exclusion for sign networks
---
lualib/lua_dkim_tools.lua | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lualib/lua_dkim_tools.lua b/lualib/lua_dkim_tools.lua
index bdfd8abfc..b996e96a4 100644
--- a/lualib/lua_dkim_tools.lua
+++ b/lualib/lua_dkim_tools.lua
@@ -204,6 +204,12 @@ local function prepare_dkim_signing(N, task, settings)
if settings.signing_table and settings.key_table then
-- OpenDKIM style
+ if settings.sign_networks and not is_sign_networks then
+ lua_util.debugm(N, task,
+ 'signing_table: sign networks specified but IP is not from that network, skip signing')
+ return false,{}
+ end
+
if not hfrom or not hfrom[1] or not hfrom[1].addr then
lua_util.debugm(N, task,
'signing_table: cannot get data when no header from is presented')
More information about the Commits
mailing list