On Tue, 28 Nov 2000 16:10:12 +0000
Ruth Ivimey-Cook <Ruth.Ivimey-Cook@???> wrote:
> At 03:57 PM 11/28/00, Emmanuel Lacour wrote:
> > I want to specify a mail address in case of invalid To: when I
> > send a mail via smtp. To do that, I set "Return-path: tutu@???"
> > after DATA, but the message go back to the sender with adying a second
> > Return-path and not the specified one.
>
> Return path is written by the final recipient MTA (i.e. the one that
> delivers the message) based on the FROM: address in the SMTP envelope.
> Placing a Return-Path in a message before that is, AFAIK, invalid.
>
> You could use "Sender:" perhaps?
>
> What exactly are you trying to achieve?
I'm triyng to send all undelivred messages (bad To:) to specified user.
example: mail to tyty@??? (address invalid) from me@??? must go back to returnmails@???
--
---------------
Emmanuel Lacour
---------------
Easter-eggs Spécialiste GNU/Linux
44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 41 35 00 76
mailto:elacour@easter-eggs.com - http://www.easter-eggs.com