]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Disable dkim_signing if redis is specified but not configured
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 20 Apr 2017 18:52:05 +0000 (19:52 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 20 Apr 2017 18:52:05 +0000 (19:52 +0100)
src/plugins/lua/dkim_signing.lua

index 1c1bc2b57c57a645105baf56fc4c85f24d9e8f9b..71ec7fd381cd47d1cf94e6ffc2f986a23ac5b669 100644 (file)
@@ -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