diff options
author | Andrew Lewis <nerf@judo.za.org> | 2018-02-27 13:58:36 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2018-02-27 14:48:13 +0200 |
commit | eb71392c46fd5830b102315e0cc544788e48f19c (patch) | |
tree | 4a1a31454370e16f0dd81c9614e8425a4eec5a29 /src/plugins | |
parent | e3c522b8e5702d6c187dd2d6b54b13c7e8f05e7e (diff) | |
download | rspamd-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.lua | 2 |
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) |