Lennart Johansson:
> Hi all,
> 
> I have a Postfix server doing relaying for a Lotus Domino system,
> some (domino)users have there own mailbox + a  shared  mailbox
> with its own mail address.  From time to time users sends mail
> from the shared mailbox and the mail header look like this
> 
> sender: u...@example.com 
> from: shared-m...@example.com 
> return-path: u...@example.com 
> 
> There is nothing strange about this, and most of the time it works
> just fine. But if possible I would like to change return-path to
> the value of from field so that if somebody replies to a mail (or
> there is a bounce) the mail ends up in the shared mailbox and not
> in the sending users mailbox.
> Does anybody have any suggestions how to accomplish this in postfix?

Sender-dependent rewriting is not built into Postfix.   

You could use a header_checks rule to delete the "From: shared-mail"
header, and hope that something will insert a new From: header that
contains the envelope sender address (u...@example.com).

By the way, RFC-compliant mail system send bounces to the Envelope
sender address (usually shown as return-path) not the From: address.

        Wietse

Reply via email to