From 1780118e6da3eb29f9890b62391b4ecdae01fd9b Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 14 Mar 2017 11:52:05 +0200 Subject: [PATCH] [Fix] DKIM signing: use domain-specific signing key Reported by: @jnhmn --- src/plugins/lua/dkim_signing.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/dkim_signing.lua b/src/plugins/lua/dkim_signing.lua index d439c5e58..954ce165f 100644 --- a/src/plugins/lua/dkim_signing.lua +++ b/src/plugins/lua/dkim_signing.lua @@ -104,8 +104,8 @@ local function dkim_signing_cb(task) end local p = {} if settings.domain[dkim_domain] then - p.selector = (settings.domain[dkim_domain] or E).selector - p.key = (settings.domain[dkim_domain] or E).key + p.selector = settings.domain[dkim_domain].selector + p.key = settings.domain[dkim_domain].path end if not (p.key and p.selector) and not settings.try_fallback then rspamd_logger.debugm(N, task, 'dkim unconfigured and fallback disabled') -- 2.39.5