]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] use_domain_sign_inbound
authorbjoe2k4 <bjoe2k4@users.noreply.github.com>
Mon, 16 Apr 2018 19:03:30 +0000 (21:03 +0200)
committerGitHub <noreply@github.com>
Mon, 16 Apr 2018 19:03:30 +0000 (21:03 +0200)
lualib/lua_dkim_tools.lua

index ce37d3af2e746315f6dfd141307e1d303ed0eafc..151f34e73b584b3cc88c86ffda8688a6a1fb7376 100644 (file)
@@ -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',