OK.. How about this example.

1) You have an alias /var/qmail/alias/.qmail-ppp  (in this file you have
&[EMAIL PROTECTED]).
2) You also have an alias /var/qmail/alias/.qmail-pppindia (in this file you
have [EMAIL PROTECTED]).
3) you have /home/ksamy/ as your real account.

An email is sent to [EMAIL PROTECTED]

The mail gets delivered to ppp (then the Delivered-To: ppp header is added).
qmail then sends this to [EMAIL PROTECTED]).

When the mail gets to pppindia another Delivered-To header is added (because
it was delivered to pppindia).

Then the mail gets sent to [EMAIL PROTECTED] where a third header is added
(Delivered-To: ksamy@localhost)

Does this clear it up ?

The gist of it is, whenever qmail delivers a piece of mail (be it to a real
account or a .qmail alias) it adds a delivered-to header to suppress mail
loops.

Matt Soffen 
        Web Intranet Developer
        http://www.iso-ne.com/
==============================================
Boss    - "My boss says we need some eunuch programmers."
Dilbert - "I think he means UNIX and I already know UNIX."
Boss    - "Well, if the company nurse comes by, tell her I said 
             never mind."
                                       - Dilbert -
==============================================



> -----Original Message-----
> From: PPPindia [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 04, 2000 3:24 PM
> To:   Dave Sill
> Cc:   [EMAIL PROTECTED]
> Subject:      Re: Two Delivered-To headers - Why ?
> 
> Dave Sill wrote:
> > 
> > [EMAIL PROTECTED] wrote:
> > 
> > >If there are two headers, how does a mail server
> > >(say running in a remote place in an intranet) identify to whom
> > >it is sent to ?
> > >Or is it "legal" to have more than one delivered-to header ?
> > 
> > There can be as many Delivered-To fields as necessary. What's
> > "illegal" is two identical Delivered-To fields, which means a message
> > is looping.
> > 
> > -Dave
> 
> But only one delivered-to is generated if i use vpopmail !
> If i create an alias .qmail-alias by myself from the command line
> i have this two deliv.to header problem ?
> In my case, there is only one message to a single recipient.
> But the Delivered header shows - one to recipient and other 
> delivered-to to list address !!
> 
> Otherwise, is it possible to config. qmail so that only one 
> delivered-to (that of final recipient) is generated ?
> I have seen so many headers of the mails generated by qmail
> from different providers and i don't see two delivered-to headers there
> ?
> 
> I am confused now.
> ksamy

Reply via email to