5 messages in net.sourceforge.lists.courier-usersRe: [courier-users] courier-mta + LDAP
FromSent OnAttachments
Benoit BlanchonJan 15, 2003 1:30 pm 
Benoit BlanchonJan 16, 2003 7:52 am 
Benoit BlanchonJan 16, 2003 1:09 pm 
Benoit BlanchonJan 17, 2003 12:24 am 
Benoit BlanchonJan 18, 2003 2:44 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: [courier-users] courier-mta + LDAPActions...
From:Benoit Blanchon (beno@laposte.net)
Date:Jan 17, 2003 12:24:41 am
List:net.sourceforge.lists.courier-users

Thanks again.

I did as you said : I modified /etc/courier/authdaemonrc, I changed authmodulelist="authcram authldap" to authmodulelist="authldap" But, it made no change, message are still deferred and there still are no request to LDAP server.

I wonder if the authmodulelist is used since I don't use ESMTP authentification

----- Original Message ----- From: "Oleg Kobyakovskiy" <ok@ok-mail.da.ru> To: "Benoit Blanchon" <beno@laposte.net> Sent: Friday, January 17, 2003 2:02 AM Subject: Re: [courier-users] courier-mta + LDAP

Hmmm,

I tried it with mysql auth module. It worked for me without any problems.

One more idea.

Do yo use LDAP autherntification module only? Try to put LDAP auth module first in list. May be other auth module chatched this account and return the error? I had the same thing for mysqlauth. I do not remember details but I had to change the order of auth modules in list.

I'm not sure. Just idea.

Good luck.

Thanks again for your helping me.

I agree with you that, for domains in hosteddomains, auth modules look for full e-mail address. That's why users are identified by their full mail address in my LDAP directory (mail=beno@example.com).

I think that the problem doesn't come from the LDAP directory, because it seems that auth modules don't search in it at all. Indeed I verified with ethereal that courier doesn't try to contact LDAP server. This problem can happen to mysqlauth too, it's not LDAP dependant.

----- Original Message ----- From: "Oleg Kobyakovskiy" <ok@ok-mail.da.ru> To: "Benoit Blanchon" <beno@laposte.net> Sent: Thursday, January 16, 2003 7:55 PM Subject: Re: [courier-users] courier-mta + LDAP

Hi,

Sorry I do not know really how LDAP works. I didn't work with it. I just give you an idea. Because I saw it with userdb, mysqlauth, pgsqlauth etc. It was so:

after domains placed in hosteddomains auth modules do not look for username without domain info. Username is full email address like beno@example.com.

Unfortunately I worked with LDAP never so I can't tell you how to save this information there. But I think the mistake is here (in username).

So for your domains placed in the hosteddomains authentification data have to be:

login: beno@example.com password: passphrase but not login: benoitb password: passphrase It will failed. Last is good only for locals.

I hope it will help you.

Good luck.

Thanks for your response,

This is what I have in my LDAP directory :

# beno@example.com, example.com, top dn: mail=beno@example.com,o=example.com,o=top objectClass: MyMailAccount cn: Benoit mailbox: /var/mail/example.com/benoitb userPassword: ********* mail: beno@example.com

Actually, I think the problem is that courier-mta don't look in the LDAP directory when the domain is not in locals. (I verified this with "tethereal -i lo")

----- Original Message ----- From: "Oleg Kobyakovskiy" <ok@ok-mail.da.ru> To: "Benoit Blanchon" <beno@laposte.net> Sent: Thursday, January 16, 2003 2:49 AM Subject: Re: [courier-users] courier-mta + LDAP

Hello,

Do you have an account 'beno@example.com' ? Or 'benoitb' is the local machine account? If you put an example.com to hosteddomains it does not look for account 'benoitb' it looks for account 'beno@example.com' (with domain name). if you need to work with account 'benoitb' the you have to put example.com to locals file.

Good luck.

Hi,

I'm using LDAP authentification for courier-imap and courier-mta. It works fine when all my domains are listed in /etc/courier/locals. But when I move all my domains to hosteddomains, this happens :

courieresmtpd: started,ip=[::ffff:213.228.0.169] courierd: newmsg,id=0000B907.3E25CC14.00006B49 courierd:

started,id=0000B907.3E25CC14.00006B49,from=<beno@laposte.net>,mod

ule=esmtp,host=example.com,addr=<beno@example.com> courierd: Waiting. shutdown time=none, wakeup time=Wed Jan 15 22:03:04 2003, queuedelivering=8, inprogress=1 courieresmtp:

id=0000B907.3E25CC14.00006B49,from=<beno@laposte.net>,addr=<benoi

tb@example.com> : Operation now in progress courieresmtp:

id=0000B907.3E25CC14.00006B49,from=<beno@laposte.net>,addr=<benoi

tb@example.com>,status: deferred courierd: completed,id=0000B907.3E25CC14.00006B49 courierd: Waiting. shutdown time=Wed Jan 15 23:00:32 2003, wakeup time=Wed Jan 15 22:03:04 2003, queuedelivering=8, inprogress=0

Whereas, when example.com is in /etc/courier/locals, the mail is correctly delivered. I seems that courier just ignore my hosteddomains, although I called makehosteddomains.

Any help would be really appreciated Thanks