tobold.org

correct • elegant • free

△ comp.mail.* △

◅ underscore vs. dot

Q - Msg from Internet to X400? ▻

Error address

In article <4inu2q$25o@news.scruz.net>,
Thomas Leavitt <leavitt@armory.com> wrote:
>We send out a lot of programmatically generated email. For obvious
>reasons, we would like to be able to have replies to this mail sent
>to one address (and have the mail appear to be sent from that address)

That's what the `From:' line in the RFC 822 header is for.

>while having undeliverable mail sent to a standard mailbox on our
>system.

That's what the `MAIL FROM:' command in the SMTP envelope is for.
(Incidentally, the envelope address in `MAIL FROM:' is copied into
the header field `Return-Path:' by the agent that performs final
delivery of the message.)

Usually the addresses in the envelope `MAIL FROM:' and header
`From:' are the same, but only because that's what is usually
wanted.  The only requirement of the standards is that if you *do*
set them to different values, you should include a `Sender:' field
in the RFC 822 header which reflects the envelope address.

Exactly how to set them differently depends on your software, of
course.  With sendmail, or qmail's qmail-inject, you can use `-f'
to set the envelope `MAIL FROM:' address.

>I would like to do this in an Internet/standards friendly fashion.

Section 5.2 of RFC 1123 would be a good place to start reading.

Tim.
--
Tim Goodwin   | "Building an expert system in the Bourne
Cambridge, UK | shell is the pits, no?" -- Larry Wall

Original headers:

From: tim@pipex.net (Tim Goodwin)
Newsgroups: comp.mail.headers
Subject: Re: Error address
Date: 28 Mar 1996 11:37:04 GMT
Organization: Unipalm PIPEX
Message-ID: <4jdtl0$4c@wave.news.pipex.net>
References: <4inu2q$25o@news.scruz.net>

△ comp.mail.* △

◅ underscore vs. dot

Q - Msg from Internet to X400? ▻