]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] DMARC: require report_settings for sending reports only
authorAndrew Lewis <nerf@judo.za.org>
Tue, 27 Feb 2018 11:58:36 +0000 (13:58 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 27 Feb 2018 12:48:13 +0000 (14:48 +0200)
src/plugins/lua/dmarc.lua

index 46509039df93b9241cd1cc4b5bbffc59cc1ba6be..efca8850014be62498f48ce40a6a2030ad53c90d 100644 (file)
@@ -1189,7 +1189,7 @@ if type(opts['report_settings']) == 'table' then
     report_settings[k] = v
   end
 end
-if dmarc_reporting then
+if opts['send_reports'] then
   for _, e in ipairs({'email', 'domain', 'org_name'}) do
     if not report_settings[e] then
       rspamd_logger.errx(rspamd_config, 'Missing required setting: report_settings.%s', e)