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 ([EMAIL PROTECTED]).

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" <[EMAIL PROTECTED]>
To: "Benoit Blanchon" <[EMAIL PROTECTED]>
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
> [EMAIL PROTECTED]
>
> 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: [EMAIL PROTECTED]
> 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 :
> >
> > # [EMAIL PROTECTED], example.com, top
> > dn: [EMAIL PROTECTED],o=example.com,o=top
> > objectClass: MyMailAccount
> > cn: Benoit
> > mailbox: /var/mail/example.com/benoitb
> > userPassword: *********
> > mail: [EMAIL PROTECTED]
> >
> > 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" <[EMAIL PROTECTED]>
> > To: "Benoit Blanchon" <[EMAIL PROTECTED]>
> > Sent: Thursday, January 16, 2003 2:49 AM
> > Subject: Re: [courier-users] courier-mta + LDAP
> >
> >
> >> Hello,
> >>
> >> Do you have an account '[EMAIL PROTECTED]' ? 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 '[EMAIL PROTECTED]'
> >> (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=<[EMAIL PROTECTED]>,mod
> >> > ule=esmtp,host=example.com,addr=<[EMAIL PROTECTED]>
> >> > courierd: Waiting.  shutdown time=none, wakeup time=Wed Jan 15
> >> 22:03:04
> >> > 2003, queuedelivering=8, inprogress=1
> >> > courieresmtp:
> >> >
> >
id=0000B907.3E25CC14.00006B49,from=<[EMAIL PROTECTED]>,addr=<benoi
> >> > [EMAIL PROTECTED]> : Operation now in progress
> >> > courieresmtp:
> >> >
> >
id=0000B907.3E25CC14.00006B49,from=<[EMAIL PROTECTED]>,addr=<benoi
> >> > [EMAIL PROTECTED]>,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
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >> --
> >> nic-hdl oku11
> >
> >
>
>
> --
> nic-hdl oku11



-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to