On Mon, Oct 08, 2012 at 08:59:58AM -0500, /dev/rob0 wrote: > On Mon, Oct 08, 2012 at 03:39:22PM +0200, Arantza Serrano wrote: > > I'd like to configure my postfix server to check the recipient > > address in several LDAP servers. I'd like that the recipients of > > domain X would be verify in LDAP server X, and the recipients of > > domain Y will been verify in LDAP Y. But I don't find how it can > > do that. > > > > My server works ok to verify first in LDAP X and, if the recipient > > is not found there, then is verified in LDAP Y. But I would like > > that the server be more efficient and avoid unnecessary searchs. > > See the "domain" parameter in the ldap_table(5) manual.
More specifically, any given LDAP table will be restricted to a set of domains and multiple LDAP tables are then used to cover all the domains. ldap = proxy:ldap:${config_directory}/ <mumble>_maps = ${ldap}ldap1.cf, ${ldap}ldap2.cf, ... Each .cf file specifies the correct servers, search base, ... and a "domain" constraint listing the relevant domains. -- Viktor.