It searches for mail=prisci...@domain.com and mail=Priscilla. With the present ldap.cf it returns the username only for mail=prisci...@domain.com and does not return anything for mail=Priscilla. This is the reason for the error "User unknown in local recipient table". The following is the ldap log written while send email.
LDAP log Mar 30 09:53:21 intml slapd[3104]: conn=1060 fd=15 ACCEPT from IP=127.0.0.1:5779 9 (IP=0.0.0.0:389) Mar 30 09:53:21 intml slapd[3104]: conn=1060 op=0 BIND dn="cn=Manager,o=domain.com" method=128 Mar 30 09:53:21 intml slapd[3104]: conn=1060 op=0 BIND dn="cn=Manager,o=domain.com" mech=SIMPLE ssf=0 Mar 30 09:53:21 intml slapd[3104]: conn=1060 op=0 RESULT tag=97 err=0 text= Mar 30 09:53:21 intml slapd[3104]: conn=1060 op=1 SRCH base="o=domain.com" sc ope=2 deref=0 filter="(mail=prisci...@domain.com)" Mar 30 09:53:21 intml slapd[3104]: conn=1060 op=1 SRCH attr=uid Mar 30 09:53:21 intml slapd[3104]: conn=1060 op=1 SEARCH RESULT tag=101 err=0 ne ntries=1 text= Mar 30 09:53:21 intml slapd[3104]: conn=1061 fd=16 ACCEPT from IP=127.0.0.1:5780 0 (IP=0.0.0.0:389) Mar 30 09:53:21 intml slapd[3104]: conn=1061 op=0 BIND dn="cn=Manager,o=domain.com" method=128 Mar 30 09:53:21 intml slapd[3104]: conn=1061 op=0 BIND dn="cn=Manager,o=domain.com" mech=SIMPLE ssf=0 Mar 30 09:53:21 intml slapd[3104]: conn=1061 op=0 RESULT tag=97 err=0 text= Mar 30 09:53:21 intml slapd[3104]: conn=1061 op=1 SRCH base="o=domain.com" sc ope=2 deref=0 filter="(mail=priscilla)" Mar 30 09:53:21 intml slapd[3104]: conn=1061 op=1 SRCH attr=uid Mar 30 09:53:21 intml slapd[3104]: conn=1061 op=1 SEARCH RESULT tag=101 err=0 ne ntries=0 text= END of LDAP log Kindly suggest some change. Regards Priscilla -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Nikolaos Milas Sent: Thursday, March 29, 2012 5:15 PM To: 'Postfix users' Subject: Re: FW: Postfix delivery to openldap users On 29/3/2012 2:13 μμ, Priscilla V wrote: > Even after changing it to %u the postmap command is not returning any value. You could run: postmap -vvv -q ldapuser ldap:/etc/postfix/ldap.cf and try to see where is the problem. Also, try to run a simple ldapsearch on the same machine with the same parameters (search key, server, credentials, binddn, return attributes etc.) and see if it works. Nick