]> source.dussan.org Git - rspamd.git/commitdiff
Tune DMARC report 3202/head
authorVitaliy Vasilenko <vitalvas@users.noreply.github.com>
Wed, 1 Jan 2020 22:48:23 +0000 (00:48 +0200)
committerGitHub <noreply@github.com>
Wed, 1 Jan 2020 22:48:23 +0000 (00:48 +0200)
Add customization - message-id from

src/plugins/lua/dmarc.lua

index e6a520e8ea1f5f00c182e3527444f4d485c48603..390abd41c7fb5204e0fc6a0572f40de053365149 100644 (file)
@@ -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)