Hello,

My Postfix is 3.4.23-0+deb10u2. It's old.

I got a rare mail with the Resent-Sender header and no other Resent- headers.

Since I configured the local_header_rewrite_clients, cleanup(8) insert the 
missing Resent- headers for this mail.

According to RFC 5322 Appendix A.3. 
(https://datatracker.ietf.org/doc/html/rfc5322#appendix-A.3)

    resent fields are prepended to the message:
   ----
   Resent-From: Mary Smith <m...@example.net>
   Resent-To: Jane Brown <j-brown@other.example>
   Resent-Date: Mon, 24 Nov 1997 14:22:01 -0800
   Resent-Message-ID: <78...@example.net>
   From: John Doe <jdoe@machine.example>
   To: Mary Smith <m...@example.net>
   Subject: Saying Hello
   Date: Fri, 21 Nov 1997 09:55:06 -0600
   Message-ID: <1234@local.machine.example>

   This is a message just to say hello.
   So, "Hello".
   ----

However cleanup(8) didn't prepend but append. It's like below:
   ----
   From: John Doe <jdoe@machine.example>
   To: Mary Smith <m...@example.net>
   Subject: Saying Hello
   Date: Fri, 21 Nov 1997 09:55:06 -0600
   Message-ID: <1234@local.machine.example>
   Resent-From: Mary Smith <m...@example.net>
   Resent-To: Jane Brown <j-brown@other.example>
   Resent-Date: Mon, 24 Nov 1997 14:22:01 -0800
   Resent-Message-ID: <78...@example.net>

   This is a message just to say hello.
   So, "Hello".
   ----


There is another interesting behavior that if there is no Message-Id header, 
cleanup(8) won't insert the Message-Id header and append all missing Resent- 
headers.

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to