Added a new configuration option exclude_rua_addresses in the dmarc reporting section.
See #5220
return
end
end
+ if policy.rua:match("^mailto:") and settings.reporting.exclude_rua_addresses then
+ local rua = policy.rua:gsub("^mailto:", "")
+ if settings.reporting.exclude_rua_addresses:get_key(rua) then
+ rspamd_logger.info(task, 'DMARC reporting suppressed for rua recipient %s', rua)
+ return
+ end
+ end
local function dmarc_report_cb(err)
if not err then
type = 'map',
description = 'Recipients not to store DMARC reports for'
},
+ exclude_rua_addresses = {
+ optional = true,
+ type = 'map',
+ description = 'RUA recipients not to store DMARC reports for'
+ },
only_domains = {
optional = true,
type = 'map',