C. V. a écrit :
> Hi,
> 
> i've setup my mailsystem a while ago and query MySQL and LDAP vor address and 
> domain mappings. 
> 
> Since both of them (database and directory) are more likely to be down of 
> many reasons (network, connection overload etc.) i want to add a "backup" 
> with hash files (hash:/some/file).
> To reduce the queries i need to know the order in which postfix uses the 
> lists. After a lot of searching without success, i now ask you:
> 


there's no backup. you have the choice between:

- accepting temp failures if the backend is down
- using a backedn that doesn't get down (hash, cdb, ...)


> Here my first try:
> 
> virtual_mailbox_domains = hash:/etc/postfix/generated-ldap-domains 
> mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf 
> ldap:/etc/postfix/ldap-zimbra-domains.cf
> 
> Alternatively:
> 
> virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf 
> ldap:/etc/postfix/ldap-zimbra-domains.cf 
> hash:/etc/postfix/generated-ldap-domains 
> 


Multiple maps support is not meant for fail-over of one map. it's like
if they were concatenanted: if no match is found, move to the next map.

Reply via email to