----- "mouss" <[email protected]> schrieb:
> 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, ...) > ok, i am all for "by the book" but postfix has to have some kind of order. as in the other answer to my question, a behavior like described (if one of the map fails _caused by a network error_ and not the "there is no such domain in this map") is hopefully not really implemented. but if so i'd rather just use local files. > > > 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 > > > > 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. Using them as fail-over would really be nice to do and i think shoult work. postix does not concatenantes these maps because it trys them one by one - in which order? is there any documentation on that?
