From fe98070fef85e1071d8367622d372dda56cecef1 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Mon, 24 Sep 2018 08:38:36 +0200 Subject: [PATCH] make dmarc report from address custom --- src/plugins/lua/dmarc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index aa6bb18a86..2d82768b1e 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, -- 2.47.3