]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] DMARC reporting: support copying reports
authorAndrew Lewis <nerf@judo.za.org>
Tue, 6 Jun 2017 15:16:56 +0000 (17:16 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 6 Jun 2017 15:16:56 +0000 (17:16 +0200)
src/plugins/lua/dmarc.lua

index 8345936bf49972902e843d2e9a1a437febe6e13c..5afda58a3c42ec3ae747ed4874845122ed8cbf8d 100644 (file)
@@ -894,6 +894,9 @@ if opts['reporting'] == true then
         if type(report_settings.override_address) == 'string' then
           reporting_addr = {[report_settings.override_address] = true}
         end
+        if type(report_settings.additional_address) == 'string' then
+          reporting_addr[report_settings.additional_address] = true
+        end
         rspamd_logger.infox(ev_base, 'sending report for %s <%s>', reporting_domain, table.concat(reporting_addr, ','))
         local dmarc_xml = dmarc_report_xml()
         local dmarc_push_cb