Author Topic: IMAP Error: Login failed for  (Read 10449 times)

Offline Evolutio

  • Newbie
  • *
  • Posts: 6
IMAP Error: Login failed for
« 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
« Last Edit: July 23, 2013, 09:46:28 AM by Evolutio »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,517
    • http://SKaero.com/
Re: IMAP Error: Login failed for
« Reply #1 on: July 23, 2013, 11:11:29 AM »
Make sure your authentication is correct, your mail server may not support plain authentication.

Offline Evolutio

  • Newbie
  • *
  • Posts: 6
Re: IMAP Error: Login failed for
« Reply #2 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
« Last Edit: July 24, 2013, 12:03:41 PM by Evolutio »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,517
    • http://SKaero.com/
Re: IMAP Error: Login failed for
« Reply #3 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.

Offline Evolutio

  • Newbie
  • *
  • Posts: 6
Re: IMAP Error: Login failed for
« Reply #4 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,517
    • http://SKaero.com/
Re: IMAP Error: Login failed for
« Reply #5 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?

Offline Evolutio

  • Newbie
  • *
  • Posts: 6
Re: IMAP Error: Login failed for
« Reply #6 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 :(
« Last Edit: July 26, 2013, 07:33:16 AM by Evolutio »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,517
    • http://SKaero.com/
Re: IMAP Error: Login failed for
« Reply #7 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.

Offline Evolutio

  • Newbie
  • *
  • Posts: 6
Re: IMAP Error: Login failed for
« Reply #8 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..

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,517
    • http://SKaero.com/
Re: IMAP Error: Login failed for
« Reply #9 on: July 26, 2013, 12:35:10 PM »
Do you have access to the mail server? Can you get the log from that side?

Offline Evolutio

  • Newbie
  • *
  • Posts: 6
Re: IMAP Error: Login failed for
« Reply #10 on: July 26, 2013, 01:43:48 PM »
yes ;)
« Last Edit: July 26, 2013, 06:29:59 PM by Evolutio »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,517
    • http://SKaero.com/
Re: IMAP Error: Login failed for
« Reply #11 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.