aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_dkim_tools.lua
diff options
context:
space:
mode:
authorbjoe2k4 <bjoe2k4@users.noreply.github.com>2018-04-16 21:03:30 +0200
committerGitHub <noreply@github.com>2018-04-16 21:03:30 +0200
commit4b484e29fa420bc65a85c87b0dd8df432ffecef7 (patch)
treeb757cd4410cc8199b1a7758f32975def1bece6eb /lualib/lua_dkim_tools.lua
parent474a85f597791f1ed885b8b6ed9b0419b3bec46e (diff)
downloadrspamd-4b484e29fa420bc65a85c87b0dd8df432ffecef7.tar.gz
rspamd-4b484e29fa420bc65a85c87b0dd8df432ffecef7.zip
[Feature] use_domain_sign_inbound
Diffstat (limited to 'lualib/lua_dkim_tools.lua')
-rw-r--r--lualib/lua_dkim_tools.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lualib/lua_dkim_tools.lua b/lualib/lua_dkim_tools.lua
index ce37d3af2..151f34e73 100644
--- a/lualib/lua_dkim_tools.lua
+++ b/lualib/lua_dkim_tools.lua
@@ -98,6 +98,10 @@ local function prepare_dkim_signing(N, task, settings)
dkim_domain = get_dkim_domain('use_domain_sign_local')
rspamd_logger.debugm(N, task, 'local: use domain(%s) for signature: %s',
settings.use_domain_sign_local, dkim_domain)
+ elseif settings.use_domain_sign_inbound and not is_local and not auser then
+ dkim_domain = get_dkim_domain('use_domain_sign_inbound')
+ rspamd_logger.debugm(N, task, 'inbound: use domain(%s) for signature: %s',
+ settings.use_domain_sign_inbound, dkim_domain)
else
dkim_domain = get_dkim_domain('use_domain')
rspamd_logger.debugm(N, task, 'use domain(%s) for signature: %s',