Hi - understood. Now, as the messages are received from other hosts, I can't
change the MAIL FROM part of the conversation. Also, as they are sent from
.net (using system.net.mail) the sender application can't change the
envelope sender without changing the From: line too (it's a limitation of
that class). The alternatives now are to
1. not use system.net.mail, and write another smtp class in .net
2. somehow make postfix insert a header that makes other mailer-daemons
bounce NDRs/out-of-offices/etc to it, instead of the From: address.
#1 is far from trivial for various reasons, so any hints towards #2 would be
very helpful

On Fri, May 28, 2010 at 2:26 AM, Wietse Venema <wie...@porcupine.org> wrote:

> Razvan Cosma:
> >  /^Return-Path: (.*)/            REPLACE X-Original-Return-Path: $1
> >  /^X-bounces-to: (.*)/        REPLACE Return-Path: $1
>
> The Return-Path: header DOES NOT CONTROL delivery of bounce messages.
>
> Instead, bounce messages are sent to the envelope sender address
> (the address in the MAIL FROM command).
>
>        Wietse
>

Reply via email to