OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: 'Delivered-To:' mail headers

From: Wietse Venema (wietseporcupine.org)
Date: Wed Feb 04 2004 - 13:55:55 CST


Gareth:
> Hi Guys
>
> I've been running Postfix (2.0.16) on Debian Woody successfully for
> sometime, how ever I keep getting 'Delivered-To' headers that don't seem to
> be correct.
>
> Typically, every incoming email I receive has 'Delivered-To:
> garethmailgate.bim7.com' and sometimes also 'X-Original-To:
> garethmailgate.bim7.com'.
>
> This occurs no matter what address the sender uses...

Nonsense, the X-Original-To: is always the unmodified address.

> garethvirtualdomain1.com, garethvdomain2.com, garethvirtdomain.net etc...
>
> Shouldn't the 'Delivered-To:' contain the alias and domain relevant to where
> the email was sent...?

Delivered-To: contains the address that Postfix delivered to.
If the address were different then Postfix would lie, because
that would not be the address that it delvered the mail to.

> If someone sends me an email to one of my virtual domains, I would expect to
> see....
>
> 'Delivered-To: garethvirtual-domain.com'.

The mail is not delivered to the virtual address. The mail is
delivered to whatever the alias expands to.

        Wietse