Excuse me, I change the name of user and password for user1 pass1

 
On 6/9/06, Brian Candler <[EMAIL PROTECTED] > wrote:
On Wed, Jun 07, 2006 at 11:53:19PM +0200, Lobete Feroz wrote:
>    When I try to connect with IMAP:
>
>    #telnet localhost imap
>
>    1 LOGIN user user1
>
>    1 NO Login pass1.

That is clearly made-up.

Please show the exact, full transcript of your telnet session, as captured
by "script" or a copy-paste.

This will include the connect banner from the IMAP server, and also the
actual error message - which is not what you showed. Why would the IMAP
server include the string "pass1" in the response, where you did not include
it in the command??
  >    In mail.log:
>
>
>
>    localhost imaplogin: Connection, ip=[::ffff:[1]127.0.0.1]
>    localhost imaplogin: LOGIN: DEBUG: ip=[::ffff:[2]127.0.0.1],
>    command=LOGIN
>    localhost imaplogin: LOGIN: DEBUG: ip=[::ffff: [3]127.0.0.1],
>    username=user1
>    localhost imaplogin: LOGIN: DEBUG: ip=[::ffff:[4]127.0.0.1],
>    password=pass1
>    localhost imaplogin: authdaemon: starting client module
>    localhost imaplogin: authdaemon: REJECT
>    localhost imaplogin: LOGIN FAILED, ip=[::ffff:[5]127.0.0.1]

OK, then you can follow the debugging instructions at
http://www.courier-mta.org/authlib/README.authdebug.html
to find out why this login is being rejected.


Thank you, I put

DEBUG_LOGIN=1
DEBUG_LOGIN=2


in authdaemonrc

and the error was:

authdaemond.mysql: received auth request, service=login, authtype=login
authdaemond.mysql: authmysql: trying this module
authdaemond.mysql: SQL query: SELECT id, crypt, "", uid, gid, home, maildir , "", name, "" FROM passwd WHERE id = "[EMAIL PROTECTED]"
authdaemond.mysql: supplied password 'pass1' does not match encrypted password 'gd1sV/r.AI4B6'
authdaemond.mysql: authmysql: REJECT - try next module
authdaemond.mysql: FAIL, all modules rejected

I delete the user in mysql and write again with the command:
insert into passwd (id,crypt,name,uid,gid,home,maildir)
values("[EMAIL PROTECTED]",encrypt('pass1'),"user1",
"1002","8","/","/var/spool/mail/user1/Maildir/");


And works!!!!!

Thank you for all. I didn't knew how to turn on log's and debug and warnings, is the most important.

Thank you

>    courierauthtest also works:
>
>
>
>    # courierauthtest [8]user1
>
>    Trying authdaemon...
>    Authenticated: module authdaemon
>    Home directory: /
>    UID/GID: 1001/8
>    Maildir: /var/spool/mail/user1/Maildir/
>    [9]AUTHADDR=[EMAIL PROTECTED]
>
>    AUTHFULLNAME=user1
>    OPTIONS=<none>

Have you tried

  courierauthtest user1 pass1

?

Brian.

_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to