diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-29 14:52:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-29 14:52:50 +0100 |
commit | 07f9ed4ebf00a615b1a5c7f5ca35d99c6b07bf3f (patch) | |
tree | 3e96f8405c051fccc3c1be5a53f0365295e6f9aa /lualib/lua_dkim_tools.lua | |
parent | 18e95de8f1fb5f5d756d3bf4db168ad96cd5f954 (diff) | |
download | rspamd-07f9ed4ebf00a615b1a5c7f5ca35d99c6b07bf3f.tar.gz rspamd-07f9ed4ebf00a615b1a5c7f5ca35d99c6b07bf3f.zip |
[Minor] Distinguish vault usage
Diffstat (limited to 'lualib/lua_dkim_tools.lua')
-rw-r--r-- | lualib/lua_dkim_tools.lua | 8 |
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', |