9 messages in net.sourceforge.lists.courier-maildropRE: [maildropl] Maildrop PostFix prob...
FromSent OnAttachments
Gurjiv SinghSep 30, 2005 4:08 am 
Tony EarnshawSep 30, 2005 5:03 am 
Sam VarshavchikOct 2, 2005 1:23 pm 
Gurjiv SinghOct 4, 2005 2:52 am 
Tony EarnshawOct 4, 2005 4:41 am 
Gurjiv SinghOct 4, 2005 8:52 pm 
Gurjiv SinghOct 4, 2005 9:15 pm 
Gurjiv SinghOct 4, 2005 11:40 pm 
Tony EarnshawOct 5, 2005 1:41 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [maildropl] Maildrop PostFix problem SOLVEDActions...
From:Gurjiv Singh (gur@dcmengg.co.in)
Date:Oct 4, 2005 11:40:28 pm
List:net.sourceforge.lists.courier-maildrop

Sorry to answer myself, maybe others find it helpful anyway:

Adding and setting the LDAP_FILTER correctly in the authldaprc as LDAP_FILTER (objectclass=iperson) in my case solved my problem.

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net] On Behalf Of Gurjiv Singh Sent: Wednesday, October 05, 2005 9:44 AM To: cour@lists.sourceforge.net Cc: ton@billy.demon.nl Subject: RE: [maildropl] Maildrop PostFix problem

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net] On Behalf Of Gurjiv Singh Sent: Wednesday, October 05, 2005 9:20 AM To: cour@lists.sourceforge.net Cc: ton@billy.demon.nl Subject: RE: [maildropl] Maildrop PostFix problem

The authldaprc reads as follows: LDAP_SERVER mail.example.com LDAP_PORT 389 LDAP_PROTOCOL_VERSION 3 LDAP_BASEDN dc=example, dc=com #LDAP_BINDDN cn=administrator, o=example, c=com #LDAP_BINDPW toto LDAP_TIMEOUT 10 LDAP_AUTHBIND 1 LDAP_MAIL mail LDAP_DOMAIN example.com LDAP_GLOB_UID vmail LDAP_GLOB_GID vmail LDAP_HOMEDIR homeDirectory LDAP_MAILDIR mailbox LDAP_DEFAULTDELIVERY defaultDelivery LDAP_FULLNAME cn LDAP_CLEARPW clearPassword LDAP_CRYPTPW userPassword LDAP_DEREF never LDAP_TLS 0

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net] On Behalf Of Tony Earnshaw Sent: Tuesday, October 04, 2005 4:17 PM To: cour@lists.sourceforge.net Subject: RE: [maildropl] Maildrop PostFix problem

On Tue, 2005-10-04 at 15:20 +0530, Gurjiv Singh wrote:

[...]

Oct 4 15:08:43 mail authdaemond: authuserdb: REJECT - try next module Oct 4 15:08:43 mail authdaemond: authpam: trying this module Oct 4 15:08:43 mail authdaemond: authpam: username 'ba@example.com' not found in password file Oct 4 15:08:43 mail authdaemond: authpam: REJECT - try next module

Of course not. Guess why? You've given it an email address instead of a UID.

Oct 4 15:08:43 mail authdaemond: authldap: trying this module Oct 4 15:08:43 mail authdaemond: selected ldap protocol version 3 Oct 4 15:08:43 mail authdaemond: binding to LDAP server as DN '<null>', password '<null>' Oct 4 15:08:43 mail authdaemond: using search filter: (mail=ba@example.com) Oct 4 15:08:43 mail authdaemond: ldap_search_st() failed

No idea, don't know what your authldaprc looks like.

[...]

Whereas the LDAP search is pretty fine:

# ldapsearch -x -LLL -b "uid=bammbamm,ou=it,ou=people,dc=example,dc=com" "(objectclass=*)" dn: uid=bammbamm,ou=it,ou=people,dc=example,dc=com uid: bammbamm givenName: Bamm sn: Bamm cn: Bamm Bamm userPassword:: YmFtbV9zZWNyZXQ= homeDirectory: /var/spool/mail/bammbamm mail: ba@example.com maildrop: post@example.com maildrop: bamm@example.com maildrop: abu@example.com objectClass: CourierMailAlias objectClass: CourierMailAccount objectClass: inetOrgPerson uidNumber: 1003 gidNumber: 1003 mailbox: /var/spool/mail/bammbamm/Maildir quota: 5120000S

So it's probably authldaprc that's wrong. Did you run 'authtest bammbamm [bammbammsPassword]'?

--Tonni