Roundcube Community Forum

Release Support => Pending Issues => Topic started by: Evolutio on July 23, 2013, 09:44:47 AM

Title: IMAP Error: Login failed for
Post by: Evolutio on July 23, 2013, 09:44:47 AM
Hello,
I have a problem with the setup of Roundcube.
On the installer/index.php?_step=3 page I have all things okay.

stmp:
Code: [Select]
Trying to send email...
SMTP send:  OK

imap:
Code: [Select]
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:
Code: [Select]
[23-Jul-2013 15:45:59 +0200]: IMAP Error: Login failed for evolutio@domain.de 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
Title: Re: IMAP Error: Login failed for
Post by: SKaero on July 23, 2013, 11:11:29 AM
Make sure your authentication is correct, your mail server may not support plain authentication.
Title: Re: IMAP Error: Login failed for
Post by: Evolutio on July 24, 2013, 11:45:20 AM
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
Code: [Select]
[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
Title: Re: IMAP Error: Login failed for
Post by: SKaero on July 24, 2013, 12:45:37 PM
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.
Title: Re: IMAP Error: Login failed for
Post by: Evolutio on July 24, 2013, 06:21:31 PM
Code: [Select]
[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
Title: Re: IMAP Error: Login failed for
Post by: SKaero on July 25, 2013, 06:12:25 PM
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?
Title: Re: IMAP Error: Login failed for
Post by: Evolutio on July 26, 2013, 07:28:52 AM
where I can find the imap log from the installer?
in the root/logs folder there isn't any entry from the installer :(
(http://abload.de/img/roundcubeb9lpg.png)
Title: Re: IMAP Error: Login failed for
Post by: SKaero on July 26, 2013, 10:40:16 AM
If you have imap_debug enabled in the main.inc.php it should create a log in the logs folder.
Title: Re: IMAP Error: Login failed for
Post by: Evolutio on July 26, 2013, 11:10:48 AM
I don't get any log. I've clean the folder but nothing after click "check login" inside the logs folder..
Title: Re: IMAP Error: Login failed for
Post by: SKaero on July 26, 2013, 12:35:10 PM
Do you have access to the mail server? Can you get the log from that side?
Title: Re: IMAP Error: Login failed for
Post by: Evolutio on July 26, 2013, 01:43:48 PM
yes ;)
(http://abload.de/img/aileql1c.png)
Title: Re: IMAP Error: Login failed for
Post by: SKaero on July 30, 2013, 10:21:06 PM
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.