Roundcube Community Forum

 

IMAP Error: Login failed for

Started by Evolutio, July 23, 2013, 09:44:47 AM

Previous topic - Next topic

Evolutio

Hello,
I have a problem with the setup of Roundcube.
On the installer/index.php?_step=3 page I have all things okay.

stmp:
Trying to send email...
SMTP send:  OK


imap:

Connecting to tls://127.0.0.1...
IMAP connect:  OK(SORT capability: yes)


but when I want to login in the Roundcube I ghet the message "Die Anmeldung ist fehlgeschlagen."

in the /logs/error file it says:
[23-Jul-2013 15:45:59 +0200]: IMAP Error: Login failed for [email protected] from IP.4. AUTHENTICATE PLAIN: authentication failure in /var/www/webdata/mail.domain.de/htdocs/program/lib/Roundcube/rcube_imap.php on line 184 (POST /?_task=login&_action=login)


what is wrong and how I can solve the Problem?
I use the same login detials as I use it in thunderbird

SKaero

Make sure your authentication is correct, your mail server may not support plain authentication.

Evolutio

#2
in what File I must change the Authentication?
It says: no mechanism available in /var/www/webdata/mail.domain.de/htdocs/program/lib/Roundcube/rcube_imap.php on line 184 (POST /?_task=login&_action=login)
But I change in the main.inc.php this variables:
$rcmail_config['imap_auth_type'] = 'CRAM-MD5';
$rcmail_config['smtp_auth_type'] = 'CRAM-MD5';

here the imap log

[24-Jul-2013 18:02:13 +0200]: [AD65] S: * OK evolutio Cyrus IMAP4 v2.2.13-Debian-2.2.13-19+squeeze3 server ready
[24-Jul-2013 18:02:13 +0200]: [AD65] C: A0001 CAPABILITY
[24-Jul-2013 18:02:13 +0200]: [AD65] S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS
[24-Jul-2013 18:02:13 +0200]: [AD65] S: A0001 OK Completed
[24-Jul-2013 18:02:13 +0200]: [AD65] C: A0002 STARTTLS
[24-Jul-2013 18:02:13 +0200]: [AD65] S: A0002 OK Begin TLS negotiation now
[24-Jul-2013 18:02:13 +0200]: [AD65] C: A0003 CAPABILITY
[24-Jul-2013 18:02:13 +0200]: [AD65] S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=PLAIN SASL-IR
[24-Jul-2013 18:02:13 +0200]: [AD65] S: A0003 OK Completed
[24-Jul-2013 18:02:13 +0200]: [AD65] C: A0004 ID ("name" "Roundcube" "version" "0.9.2" "php" "5.3.3-7+squeeze16" "os" "Linux" "command" "/")
[24-Jul-2013 18:02:13 +0200]: [AD65] S: * ID ("name" "Cyrus IMAPD" "version" "v2.2.13-Debian-2.2.13-19+squeeze3 2006/12/19 19:32:59" "vendor" "Project Cyrus" "support-url" "http://asg.web.cmu.edu/cyrus" "os" "Linux" "os-version" "2.6.32-16-pve" "environment" "Built w/Cyrus SASL 2.1.23; Running w/Cyrus SASL 2.1.23; Built w/Berkeley DB 4.7.25: (May 15, 2008); Running w/Berkeley DB 4.7.25: (May 15, 2008); Built w/OpenSSL 0.9.8o 01 Jun 2010; Running w/OpenSSL 0.9.8o 01 Jun 2010; CMU Sieve 2.2; TCP Wrappers; NET-SNMP; mmap = shared; lock = fcntl; nonblock = fcntl; idle = poll")
[24-Jul-2013 18:02:13 +0200]: [AD65] S: A0004 OK Completed
[24-Jul-2013 18:02:13 +0200]: [AD65] C: A0005 AUTHENTICATE CRAM-MD5
[24-Jul-2013 18:02:16 +0200]: [AD65] S: A0005 NO no mechanism available

SKaero

You can change the authentication in the main.inc.php. The "NO no mechanism available" means that your mail server doesn't support the authentication type (CRAM-MD5) according to the capability string it supports PLAIN authentication so try that and post the IMAP log.

Evolutio


[25-Jul-2013 00:23:22 +0200]: [EBC8] S: * OK evolutio Cyrus IMAP4 v2.2.13-Debian-2.2.13-19+squeeze3 server ready
[25-Jul-2013 00:23:22 +0200]: [EBC8] C: A0001 CAPABILITY
[25-Jul-2013 00:23:22 +0200]: [EBC8] S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS
[25-Jul-2013 00:23:22 +0200]: [EBC8] S: A0001 OK Completed
[25-Jul-2013 00:23:22 +0200]: [EBC8] C: A0002 STARTTLS
[25-Jul-2013 00:23:22 +0200]: [EBC8] S: A0002 OK Begin TLS negotiation now
[25-Jul-2013 00:23:22 +0200]: [EBC8] C: A0003 CAPABILITY
[25-Jul-2013 00:23:22 +0200]: [EBC8] S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=PLAIN SASL-IR
[25-Jul-2013 00:23:22 +0200]: [EBC8] S: A0003 OK Completed
[25-Jul-2013 00:23:22 +0200]: [EBC8] C: A0004 ID ("name" "Roundcube" "version" "0.9.2" "php" "5.3.3-7+squeeze16" "os" "Linux" "command" "/")
[25-Jul-2013 00:23:22 +0200]: [EBC8] S: * ID ("name" "Cyrus IMAPD" "version" "v2.2.13-Debian-2.2.13-19+squeeze3 2006/12/19 19:32:59" "vendor" "Project Cyrus" "support-url" "http://asg.web.cmu.edu/cyrus" "os" "Linux" "os-version" "2.6.32-16-pve" "environment" "Built w/Cyrus SASL 2.1.23; Running w/Cyrus SASL 2.1.23; Built w/Berkeley DB 4.7.25: (May 15, 2008); Running w/Berkeley DB 4.7.25: (May 15, 2008); Built w/OpenSSL 0.9.8o 01 Jun 2010; Running w/OpenSSL 0.9.8o 01 Jun 2010; CMU Sieve 2.2; TCP Wrappers; NET-SNMP; mmap = shared; lock = fcntl; nonblock = fcntl; idle = poll")
[25-Jul-2013 00:23:22 +0200]: [EBC8] S: A0004 OK Completed
[25-Jul-2013 00:23:22 +0200]: [EBC8] C: A0005 AUTHENTICATE PLAIN PASSWORD
[25-Jul-2013 00:23:25 +0200]: [EBC8] S: A0005 NO authentication failure

SKaero

Interesting, you said that you got "IMAP connect:  OK(SORT capability: yes)" when you tested it in the installer. Can you post the log when you test it there?

Evolutio

#6
where I can find the imap log from the installer?
in the root/logs folder there isn't any entry from the installer :(

SKaero

If you have imap_debug enabled in the main.inc.php it should create a log in the logs folder.

Evolutio

I don't get any log. I've clean the folder but nothing after click "check login" inside the logs folder..

SKaero

Do you have access to the mail server? Can you get the log from that side?

Evolutio

#10
yes ;)

SKaero

I'm not familiar Cyrus to be able to tell you where but you need to enable IMAP conversation log to see whats going on.