]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] DKIM signing: use domain-specific signing key 1522/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 14 Mar 2017 09:52:05 +0000 (11:52 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 14 Mar 2017 09:52:05 +0000 (11:52 +0200)
 Reported by: @jnhmn

src/plugins/lua/dkim_signing.lua

index d439c5e586015ae36a4041f498c16bf075f15cc0..954ce165f2062710cca9ccbadd156972fe314367 100644 (file)
@@ -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')