From eb71392c46fd5830b102315e0cc544788e48f19c Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 27 Feb 2018 13:58:36 +0200 Subject: [PATCH] [Fix] DMARC: require report_settings for sending reports only --- src/plugins/lua/dmarc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index 46509039d..efca88500 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -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) -- 2.39.5