diff options
author | Vitaliy Vasilenko <vitalvas@users.noreply.github.com> | 2020-01-02 00:48:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-02 00:48:23 +0200 |
commit | df32de0bf1c017802270fc4af17052d7c1b27242 (patch) | |
tree | 608aa428dde9597a922792f7f80e6b070949dbc1 /src/plugins | |
parent | 15f792603b88a09a3d84dccc2db1c253cf90a5b8 (diff) | |
download | rspamd-df32de0bf1c017802270fc4af17052d7c1b27242.tar.gz rspamd-df32de0bf1c017802270fc4af17052d7c1b27242.zip |
Tune DMARC report
Add customization - message-id from
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/dmarc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index e6a520e8e..390abd41c 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -44,6 +44,7 @@ local report_settings = { smtp_port = 25, retries = 2, from_name = 'Rspamd', + msgid_from = 'rspamd', } local report_template = [[From: "{= from_name =}" <{= from_addr =}> To: {= rcpt =} @@ -926,7 +927,7 @@ if opts['reporting'] == true then submitter = report_settings.domain, report_id = report_id, report_date = rspamd_util.time_to_string(rspamd_util.get_time()), - message_id = rspamd_util.random_hex(12) .. '@rspamd', + message_id = rspamd_util.random_hex(16) .. '@' .. report_settings.msgid_from, report_start = report_start, report_end = report_end }, true) |