aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2018-02-27 13:58:36 +0200
committerAndrew Lewis <nerf@judo.za.org>2018-02-27 14:48:13 +0200
commiteb71392c46fd5830b102315e0cc544788e48f19c (patch)
tree4a1a31454370e16f0dd81c9614e8425a4eec5a29 /src/plugins
parente3c522b8e5702d6c187dd2d6b54b13c7e8f05e7e (diff)
downloadrspamd-eb71392c46fd5830b102315e0cc544788e48f19c.tar.gz
rspamd-eb71392c46fd5830b102315e0cc544788e48f19c.zip
[Fix] DMARC: require report_settings for sending reports only
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/dmarc.lua2
1 files changed, 1 insertions, 1 deletions
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)