Closed msimerson closed 10 years ago
Haraka isn't ever the 'final' mail destination and does not carry out final delivery with possibly exception of queue/qmail-queue plugin users, so it shouldn't ever be adding 'Return-Path' headers. I'd be surprised if qmail-queue didn't add this itself though (I don't use qmail here, so I can't comment).
On my TODO list has been to implement LMTP support so that Haraka can do speak directly to Procmail (via procmail -x via inetd/xinetd) and do deliveries directly to the UNIX mail spool; however I'm certain that it's Procmail that would add the Return-Path as it is doing the final delivery and not Haraka.
Yes, qmail-queue does add the return-path header.
Closing this issue, as unless we implemented full storage (i.e. a built-in IMAP server) we would never need to add this header.
RFC 5321, Simple Mail Transfer Protocol (updates RFC 1123, 2821) https://tools.ietf.org/html/rfc5321#section-4.4 Trace Information
So far, so good. Haraka does this.
A few paragraphs later:
For (mostly my) reference these terms are synonymous: Return-Path, Reverse-PATH, Envelope FROM, RFC5321.MailFrom.
In further reading, we are advised that the "destination" SMTP server MAY (but later described as lower case should) remove any existing Return-Path headers. If the SMTP server is the last SMTP hop, they are also to populate a new Return-Path header, at the top of the headers.
....
It doesn't appear Haraka is doing this.