It works perfect!! Lot of Thanks!!
-----Mensaje original----- De: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] En nombre de Viktor Dukhovni Enviado el: lunes, 08 de octubre de 2012 18:58 Para: postfix-users@postfix.org Asunto: Re: Multiple domains - Multiple LDAPs 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.