OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: Aliasing whole domains, with exceptions

Re: Aliasing whole domains, with exceptions


Subject: Re: Aliasing whole domains, with exceptions
From: Wietse Venema (wietseporcupine.org)
Date: Sun Jan 16 2000 - 16:40:48 CST


Greg Prosser:
>
> Hi, I recently moved from qmail MTA to postfix, and having a few behaviour
> issues with the upgrade.
>
> In my virtual_map file, I have aliased off an entire domain, with the
> syntax 'froggystyle.org froggystyle'. However, having this entry also
> catches mail for userfroggystyle.org, rootfroggystyle.org,
> postmasterfroggystyle.org, etc.

Is this a surprise? 'froggystyle.org froggystyle' forwards *all*
addresses ending in froggystyle.org to the user froggystyle.

If you want mail for some froggystyle.org users to be delivered
elsewhere, you need to make more specific entries for those addresses.
Example:

    froggystyle.org froggystyle
    rootfroggystyle.org root
    postmasterfroggystyle.org postmaster

> It would be even more wonderful, if I could get postfix to check the
> /etc/aliases for a match first, before moving on to virtusertable, that way
> my aliases also get ensured delivery to all our domains.

Postfix processes the aliases maps only when the recipient resolves
locally (mydestination/inet_interfaces). The virtual maps are
applied much earlier, so they can affect delivery to other domains.

> Please cc: a reply to my mailbox, as I only read this list on the web
> archive, and may not get it in time for a response.

        Wietse



This archive was generated by hypermail 2b27 : Sun Jan 16 2000 - 16:43:20 CST