From: Jan-Philipp Benecke Date: Mon, 24 Sep 2018 06:38:36 +0000 (+0200) Subject: make dmarc report from address custom X-Git-Tag: 1.8.0~12^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe98070fef85e1071d8367622d372dda56cecef1;p=rspamd.git make dmarc report from address custom --- diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index aa6bb18a8..2d82768b1 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -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,