This may be slightly off-topic for this list, but I have searched high and
low for the answer to this, and I think I'm just looking in the wrong
places.  So here I am...

I am working on relaying manually created mail files through MS's SMTP
service (part of the IIS Option pack) to a Qmail server for final delivery.
I'm trying to properly format headers to that if a message bounces it is
returned to the "sender", not the "reply-to", "from", or any other address.

For a short while I tried setting the "Return-Path:" header to the
bounceback address, but then I saw that RFC822 states the "Return-Path:"
value is supposed to be "added by the final transport system that delivers
the message to its recipient".  So I am assuming I should mess with that
header, and let the server add it.

>From what I can tell in the RFCs, I am supposed to use the "Sender:" header
to set the bounceback address and let the mail server handle the rest.  From
what I can tell, the placement of the "Sender:" header is not mandatory, but
unless I place it at the very top of the headers (sample one below), it
doesn't appear to work.  This is a small problem because the program I am
using to generate the messages inserts it after the "From:" header (sample
two below).

So I guess my questions are:
Is the placement of the "Sender:" header *supposed* to be relevant?
Is this problem being cause by something else entirely that I am missing?
Is there a better place to look for these answers?

-Cameron


<sample one>
Sender: [EMAIL PROTECTED]
Content-type: text/plain
Date: Thu, 30 Aug 2001 11:32:56 -0400
From: [EMAIL PROTECTED]
Subject: test
To: [EMAIL PROTECTED]

this is a test
</sample one>

<sample two>
Content-type: text/plain
Date: Thu, 30 Aug 2001 11:32:56 -0400
From: [EMAIL PROTECTED]
Sender: [EMAIL PROTECTED]
Subject: test
To: [EMAIL PROTECTED]

this is a test
</sample two>

Reply via email to