From: Vsevolod Stakhov Date: Thu, 20 Apr 2017 18:52:05 +0000 (+0100) Subject: [Minor] Disable dkim_signing if redis is specified but not configured X-Git-Tag: 1.5.7~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c944330ade0d72ee4ea84a64867ab1b9c0dd3980;p=rspamd.git [Minor] Disable dkim_signing if redis is specified but not configured --- 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