Author Topic: IMAP test = ok, logins fail  (Read 4444 times)

Offline terryit3

  • Jr. Member
  • **
  • Posts: 12
IMAP test = ok, logins fail
« on: November 25, 2013, 11:34:41 AM »
I have setup Roundcube 0.8.7 on my mail server. (Can't run newer due to outdated MySQL version)

During the install, everything verifies, sends test emails, connects properly.

I try to login to www.mydomain.com/email and get a Login Failed message.  I have set my Debug Level to 4 to gather more detailed info, so I'll post as much as I can.

I am running Dovecot and have my auth default as:
Code: [Select]
auth default {
mechanisms = plain login

If I append cram-md5 or digest-md5 after login, it no longer allows anyone to connect.

In my main.inc.php file, I have tried setting my imap_auth_type to:
Code: [Select]
$rcmail_config['imap_auth_type'] = LOGIN;
as well as
Code: [Select]
$rcmail_config['imap_auth_type'] = PLAIN;
and
Code: [Select]
$rcmail_config['imap_auth_type'] = null;
hoping my server would pick up the correct auth method.

The error message my browser gives me upon the failed login is:
MAP Error in /var/www/email/program/include/rcube_imap.php (191): Login failed for xxxxx@xxxl.org from 55.55.55.xx. AUTHENTICATE PLAIN: Authentication failed.

Roundcube's IMAP log file shows:
Code: [Select]
[25-Nov-2013 10:24:10 -0500]: [5439] S: * OK Dovecot ready.
[25-Nov-2013 10:24:10 -0500]: [5439] C: A0001 CAPABILITY
[25-Nov-2013 10:24:10 -0500]: [5439] S: * CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS STARTTLS AUTH=PLAIN AUTH=LOGIN
[25-Nov-2013 10:24:10 -0500]: [5439] S: A0001 OK Capability completed.
[25-Nov-2013 10:24:10 -0500]: [5439] C: A0002 AUTHENTICATE PLAIN AHRzdGV2ZW5zb25AeW91cnBwbC5vcmcAcmkha2p4bWM=
[25-Nov-2013 10:24:13 -0500]: [5439] S: A0002 NO Authentication failed.
[25-Nov-2013 10:24:13 -0500]: [5439] C: A0003 LOGOUT
[25-Nov-2013 10:24:13 -0500]: [5439] S: * BYE Logging out
[25-Nov-2013 10:24:13 -0500]: [5439] S: A0003 OK Logout completed.

My dovecot log shows:
Code: [Select]
dovecot: 2013-11-25 10:31:09 Info: imap-login: Aborted login (1 authentication attempts): user=<xxxxxx@xxxx.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Thanks for any assistance!

Offline terryit3

  • Jr. Member
  • **
  • Posts: 12
Re: IMAP test = ok, logins fail
« Reply #1 on: November 25, 2013, 11:35:48 AM »
Side note (if it helps):
When I setup my email account on my iPad, my incoming connection had to be setup as:

INCOMING SETTINGS
Use SSL = on
Authentication = Password
IMAP Path Prefix = /
Server Port = 143

or it will not work!

Offline terryit3

  • Jr. Member
  • **
  • Posts: 12
Re: IMAP test = ok, logins fail
« Reply #2 on: November 25, 2013, 01:11:20 PM »
Fixed by setting:
$rcmail_config['auto_create_user'] = true;