Re: FW: Postfix delivery to openldap users

2012-03-30 Thread Nikolaos Milas
On 30/3/2012 7:43 πμ, Priscilla V wrote: With the present ldap.cf it returns the username only formail=prisci...@domain.com and does not return anything for mail=Priscilla. Since alias_maps need simple username, I guess you could try for example: query_filter = (uid=%u) If your mail use

RE: FW: Postfix delivery to openldap users

2012-03-29 Thread Priscilla V
nge. 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 μμ, Pri

Re: FW: Postfix delivery to openldap users

2012-03-29 Thread Nikolaos Milas
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 s

RE: FW: Postfix delivery to openldap users

2012-03-29 Thread Priscilla V
7; Subject: Re: FW: Postfix delivery to openldap users On 29/3/2012 9:03 πμ, Priscilla V wrote: > Postmap -q ldap:/etc/postfix/ldap.cf > > Is not giving any output. > It returns silently. Have you changed: query_filter = (mail=%s) to: query_filter = (mail=%u) as was sugge

Re: FW: Postfix delivery to openldap users

2012-03-29 Thread Nikolaos Milas
On 29/3/2012 9:03 πμ, Priscilla V wrote: Postmap -q ldap:/etc/postfix/ldap.cf Is not giving any output. It returns silently. Have you changed: query_filter = (mail=%s) to: query_filter = (mail=%u) as was suggested (if you are still using alias_maps)? Ref: http://www.postfix.org/ld

RE: FW: Postfix delivery to openldap users

2012-03-28 Thread Priscilla V
: postfix-users@postfix.org Subject: Re: FW: Postfix delivery to openldap users On 3/28/2012 5:19 AM, Priscilla V wrote: > We have configured to consider ldap users also in /etc/nsswitch.conf. I'm not an LDAP expert, but it seems as if you are looking up a full email address. Please be aw

Re: FW: Postfix delivery to openldap users

2012-03-28 Thread Wietse Venema
Brian Evans - Postfix List: > On 3/28/2012 5:19 AM, Priscilla V wrote: > > We have configured to consider ldap users also in /etc/nsswitch.conf. > > I'm not an LDAP expert, but it seems as if you are looking up a full > email address. > Please be aware that alias_maps lookups only send the bare us

Re: FW: Postfix delivery to openldap users

2012-03-28 Thread Brian Evans - Postfix List
On 3/28/2012 5:19 AM, Priscilla V wrote: > We have configured to consider ldap users also in /etc/nsswitch.conf. I'm not an LDAP expert, but it seems as if you are looking up a full email address. Please be aware that alias_maps lookups only send the bare user name. Queries targeting "j...@exampl

FW: Postfix delivery to openldap users

2012-03-28 Thread Priscilla V
-Original Message- From: Priscilla V [mailto:prisci...@bheltry.co.in] Sent: Wednesday, March 28, 2012 2:40 PM To: 'Nikolaos Milas'; 'postfix-users@postfix.org' Subject: RE: Postfix delivery to openldap users We have configured to consider ldap users also in /etc/nsswitch.conf. : files