OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: $myorigin, $mydestination, and local delivery

Victor.Duchovnimorganstanley.com
Date: Mon Jun 02 2003 - 09:19:28 CDT


On Sat, 31 May 2003, Joshua Myles wrote:

> My problem is that aliases on mail.bar.foo.edu are being ignored. For
> example, my aliases file includes
>
> root: jamyles
> postmaster: root
>
> If I send mail to postmastermail.bar.foo.edu, the message is sent to
> rootfoo.edu instead of jamylesfoo.edu (or, ideally, to
> jamylesmail.bar.foo.edu).
>

When $myorigin is not local (is not listed in $mydestination), you must
put a local domain qualified on all aliases that you want to deliver
locally:

        root: jamylessome.local.domain
        postmaster: rootsome.local.domain

This said, it is far better to set myorigin == $myhostname, and to
ensure that $myhostname is listed in $mydestination on any host
which performs local mail delivery.

Use masquerade_domains (and if necessary canonical_maps) to rewrite the
headers and envelope so that outbound mail carries the desired domain
qualifier.

--
        Viktor.