summaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-29 14:52:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-29 14:52:50 +0100
commit07f9ed4ebf00a615b1a5c7f5ca35d99c6b07bf3f (patch)
tree3e96f8405c051fccc3c1be5a53f0365295e6f9aa /lualib
parent18e95de8f1fb5f5d756d3bf4db168ad96cd5f954 (diff)
downloadrspamd-07f9ed4ebf00a615b1a5c7f5ca35d99c6b07bf3f.tar.gz
rspamd-07f9ed4ebf00a615b1a5c7f5ca35d99c6b07bf3f.zip
[Minor] Distinguish vault usage
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_dkim_tools.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/lualib/lua_dkim_tools.lua b/lualib/lua_dkim_tools.lua
index 6220c0162..3ef2eec30 100644
--- a/lualib/lua_dkim_tools.lua
+++ b/lualib/lua_dkim_tools.lua
@@ -287,12 +287,18 @@ local function prepare_dkim_signing(N, task, settings)
sign_entry, key_entry, hdom)
return false,{}
end
- else
+ elseif settings.use_vault then
-- Sign table is presented, the rest is covered by vault
+ lua_util.debugm(N, task, 'check vault for %s, by sign entry %s, key entry is missing',
+ hdom, sign_entry)
return true, {
domain = sign_entry,
vault = true
}
+ else
+ logger.errx(task, 'missing key entry for sign entry %s; when signing %s domain',
+ sign_entry, hdom)
+ return false,{}
end
else
logger.errx(task, 'cannot get key entry for signing entry %s, when signing %s domain',