From: Andrew Lewis Date: Tue, 14 Mar 2017 09:52:05 +0000 (+0200) Subject: [Fix] DKIM signing: use domain-specific signing key X-Git-Tag: 1.5.3~35^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1522%2Fhead;p=rspamd.git [Fix] DKIM signing: use domain-specific signing key Reported by: @jnhmn --- 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')