Roundcube Community Forum

 

IMAP test = ok, logins fail

Started by terryit3, November 25, 2013, 11:34:41 AM

Previous topic - Next topic

terryit3

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:

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:

$rcmail_config['imap_auth_type'] = LOGIN;

as well as

$rcmail_config['imap_auth_type'] = PLAIN;

and

$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:

[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:

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!

terryit3

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!

terryit3

Fixed by setting:
$rcmail_config['auto_create_user'] = true;