On Thu, Mar 12, 2009 at 02:16:22PM +0100, Angel L. Mateo wrote: > El jue, 12-03-2009 a las 09:00 -0400, Wietse Venema escribi??: > > > Postfix virtual alias table lookups are documented in virtual(5). > > http://www.postfix.org/virtual.5.html. > > > > See also ldap_table(5) for details specific to LDAP lookups. > > http://www.postfix.org/ldap_table.5.html > > > I know them. I have read them serveral times. But I don't know why > postfix is looking por mail @<mydomain> (without any local user). If I > try to enter any such address in the rcpt to field of the smtp dialog, I > get an error, without any search in the ldap.
You are focusing on the wrong symptom. The real problem is that you are using "bare" LDAP tables: ldap:... not proxymap LDAP tables: proxy:ldap:... You'll find your LDAP servers are much happier, once you are using proxymap. Yes, you can also tweak the query patterns a bit, by setting the "domain = ... " attribute in the LDAP tables, but this is rarely necessary, just a useful optimization if you only query for full addresses in an a-priori fixed set of domains. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.