> Mail is sent to [email protected] and forwarder to [email protected].
> In that case I want the mail from to be [email protected], I don't
> care about the original address in the mail from during the SMTP
> stage. Every other location where the original mail address is
> listed doesn't have to be changed (eg in the mail headers including
> the "From" line).

It's a bad idea, but you could do it with a Milter.  Extract the
recipient from the MTA-to-Milter SMFIC_RCPT command, and send that
in the Milter-to-MTA SMFIR_CHGFROM request. And do something sensible
if a message has more than one recipient.

The problem is that it changes the error reporting address in a way
that breaks error reporting; if [email protected] has a delivery
error, mail will loop between [email protected] and [email protected].

You might just as well specify the null sender in the SMFIR_CHGFROM
request, or add "NOTIFY=NEVER" to the SMFIR_CHGFROM request.

        Wietse

Reply via email to