|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: mouss (mlist.only
free.fr)
Date: Mon Sep 03 2007 - 14:55:22 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Michael Rommel wrote:
> 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:
> user
domain.com -> accountname
>
domain2.com -> otheraccountname
> user
domain3.com -> otheruser
other.domain.de
> but NEVER an entry like
> domain.com -> anything
>
> 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?
>
- virtual_alias_maps apply to _all_ mail. the domain need not be listed
anywhere. try adding an alias for rommel
yahoo.com and see it working.
- if a domain is not listed in mydestination, relay_domains,
virtual_alias_domains, virtual_mailbox_domains, then
reject_unauth_destination will apply (only trusted senders can send to
the domain, unless you are an open relay).
- you can list the domain under mydestination for example. This will
solve the issue of relay. but then addresses like user
domain where
'user' is a valid user will be considered valid. if the domain was
listed under virtual_alias_domains, then only addresses found in
virtual_alias_maps would be accepted.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]