From c944330ade0d72ee4ea84a64867ab1b9c0dd3980 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 20 Apr 2017 19:52:05 +0100 Subject: [PATCH] [Minor] Disable dkim_signing if redis is specified but not configured --- src/plugins/lua/dkim_signing.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/lua/dkim_signing.lua b/src/plugins/lua/dkim_signing.lua index 1c1bc2b57..71ec7fd38 100644 --- a/src/plugins/lua/dkim_signing.lua +++ b/src/plugins/lua/dkim_signing.lua @@ -230,7 +230,8 @@ if settings.use_redis then redis_params = rspamd_parse_redis_server('dkim_signing') if not redis_params then - rspamd_logger.infox(rspamd_config, 'no servers are specified, disable redis') + rspamd_logger.errx(rspamd_config, 'no servers are specified, but module is configured to load keys from redis, disable dkim signing') + return end end if settings.use_domain ~= 'header' and settings.use_domain ~= 'envelope' then -- 2.39.5