summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/arc.lua8
-rw-r--r--src/plugins/lua/dkim_signing.lua9
2 files changed, 3 insertions, 14 deletions
diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua
index d3fe818da..5dfba662c 100644
--- a/src/plugins/lua/arc.lua
+++ b/src/plugins/lua/arc.lua
@@ -637,13 +637,7 @@ for k,v in pairs(opts) do
end
end
-if not (settings.use_redis or
- settings.path or
- settings.domain or
- settings.path_map or
- settings.selector_map or
- settings.use_http_headers or
- (settings.signing_table and settings.key_table)) then
+if not dkim_sign_tools.validate_signing_settings(settings) then
rspamd_logger.infox(rspamd_config, 'mandatory parameters missing, disable arc signing')
return
end
diff --git a/src/plugins/lua/dkim_signing.lua b/src/plugins/lua/dkim_signing.lua
index d8e1f7519..05a7739e7 100644
--- a/src/plugins/lua/dkim_signing.lua
+++ b/src/plugins/lua/dkim_signing.lua
@@ -138,17 +138,12 @@ for k,v in pairs(opts) do
end
end
-if not (settings.use_redis or
- settings.path or
- settings.domain or
- settings.path_map or
- settings.selector_map or
- settings.use_http_headers or
- (settings.signing_table and settings.key_table)) then
+if not dkim_sign_tools.validate_signing_settings(settings) then
rspamd_logger.infox(rspamd_config, 'mandatory parameters missing, disable dkim signing')
lua_util.disable_module(N, "config")
return
end
+
if settings.use_redis then
redis_params = lua_redis.parse_redis_server('dkim_signing')