On Sat, May 30, 2009 at 07:16:35PM +0200, S?bastien WENSKE wrote: > When I run /usr/sbin/postmap -vq "sebast...@wenske.fr" > ldap:/etc/postfix/ldap-aliases.cf > > ---------------- > postmap: dict_open: ldap:/etc/postfix/ldap-aliases.cf > postmap: dict_ldap_lookup: In dict_ldap_lookup > postmap: dict_ldap_lookup: No existing connection for LDAP source > /etc/postfix/ldap-aliases.cf, reopening > postmap: dict_ldap_connect: Connecting to server ldap://10.0.1.4:389 > postmap: dict_ldap_connect: Actual Protocol version used is 3. > postmap: dict_ldap_connect: Binding to server ldap://10.0.1.4:389 as dn > cn=canardwc, cn=Users, dc=wenske, dc=local > postmap: dict_ldap_connect: Successful bind to server ldap://10.0.1.4:389 as > cn=canardwc, cn=Users, dc=wenske, dc=local > postmap: dict_ldap_connect: Cached connection handle for LDAP source > /etc/postfix/ldap-aliases.cf > postmap: dict_ldap_lookup: /etc/postfix/ldap-aliases.cf: Searching with > filter (proxyAddresses=smtp:sebast...@wenske.fr) > postmap: warning: dict_ldap_lookup: Search error 1: Operations error > ---------------- > > My /etc/postfix/ldap-aliases.cf file: > > server_host = 10.0.1.4 > search_base = dc=wenske, dc=local > version = 3 > bind_dn = cn=canardwc, cn=Users, dc=wenske, dc=local > bind_pw = ***** > #query_filter = mailAlternateAddress=%s > query_filter = (proxyAddresses=smtp:%s) > result_attribute = mail > #domain = wenske.local > > What's wrong? THANKS,
Get the query working with ldapsearch first. Does the LDAP server in question (presumably MSFT Active Directory) actually have a "proxyAddresses" attribute? I believe this is added to the directory schema when MSFT Exchange is installed. Post all the relevant attributes from the LDIF of the user in question. You should uncomment the "#domain = ..." line, though it won't fix the problem, you won't be making useless queries for domains not listed in LDAP. -- 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.