> Mail is sent to m...@mynoc.eu and forwarder to m...@streamservice.nl.
> In that case I want the mail from to be m...@mynoc.eu, 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 m...@streamservice.nl has a delivery
error, mail will loop between m...@mynoc.eu and m...@streamservice.nl.

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