]> source.dussan.org Git - rspamd.git/commitdiff
make dmarc report from address custom 2521/head
authorJan-Philipp Benecke <jpb@cleverreach.com>
Mon, 24 Sep 2018 06:38:36 +0000 (08:38 +0200)
committerJan-Philipp Benecke <jpb@cleverreach.com>
Mon, 24 Sep 2018 06:38:36 +0000 (08:38 +0200)
src/plugins/lua/dmarc.lua

index aa6bb18a868af69c78e67281da2c1c5ca26dd831..2d82768b1e6ecbfa273ea7359006e37cac6439ee 100644 (file)
@@ -46,8 +46,9 @@ local report_settings = {
   smtp = '127.0.0.1',
   smtp_port = 25,
   retries = 2,
+  from_name = 'Rspamd',
 }
-local report_template = [[From: "Rspamd" <%s>
+local report_template = [[From: "%s" <%s>
 To: %s
 Subject: Report Domain: %s
        Submitter: %s
@@ -814,6 +815,7 @@ if opts['reporting'] == true then
               end
               local addr_string = table.concat(atmp, ', ')
               local rhead = string.format(report_template,
+                 report_settings.from_name,
                   report_settings.email,
                   addr_string,
                   reporting_domain,