OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Using virtual_alias_domains

From: Wietse Venema (wietseporcupine.org)
Date: Mon Sep 03 2007 - 14:20:54 CDT


Michael Rommel:
> Ralf Hildebrandt <Ralf.Hildebrandt <at> charite.de> writes:
> > virtual_alias_domains = cena.dgac.fr
> > virtual_alias_maps = hash:/etc/postfix/virtual_alias
> >
> > virtual_alias:
> > <at> cena.dgac.fr <at> cena.fr
> >
>
>
> Hi,
>
> I have been dealing with virtual_alias_domains and virtual_alias_maps
> these days, but didn't find anything about what happens in the
> following situation:
>
> 1) virtual_alias_domains has not been declared in main.cf (and therefore
> equals $virtual_alias_maps)
> 2) virtual_alias_maps = ldap:/etc/postfix/sender.ldap
> The LDAP contains lots of domains with various key,value pairs:
> userdomain.com -> accountname
> domain2.com -> otheraccountname
> userdomain3.com -> otheruserother.domain.de
> but NEVER an entry like
> domain.com -> anything

AS DOCUMENTED virtual aliasing works EVEN when the domain
is not declared a virtual alias domain.

        Wietse

> So I thought, that the virtual_alias_domains list will be considered
> "empty" as no search for a pure domain name returns any data.
>
> But still: the aliasing defined in the alias_maps DOES work. Can
> anybody explain that to me (well, I am happy about it, but I usually
> want to know why it works or not works). Which behaviour would change
> if I put a "domain.com -> anything" entry in the LDAP?
>
> Many thanks in advance,
>
> Michael.
>
>
>
>
>