I have newly installed roundcube version 0.3.1, to work along with
postfix-mysql and
dovecot, the setup handles virtual domains. The system works with horde and squirrelmail. However, I am facing IMAP authentication issues with Roundcube login.
Php version is 5.2.1
This is the imap log produced by roundcube:
[23-Nov-2009 13:16:48 +0530]: S: * OK Dovecot ready.
[23-Nov-2009 13:16:48 +0530]: C: cp01 CAPABILITY
[23-Nov-2009 13:16:48 +0530]: S: * CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5
[23-Nov-2009 13:16:48 +0530]: S: cp01 OK Capability completed.
[23-Nov-2009 13:16:48 +0530]: C: a000 AUTHENTICATE CRAM-MD5
[23-Nov-2009 13:16:48 +0530]: S: + PDExOxxxxxxxxxxxxMTI1ODk2MjQwOEBhdmkubXlwaG9uZWJvb2suY28uaW4+
[23-Nov-2009 13:16:48 +0530]: C: YWRtaW5Acxxxxxxxxxxxxxxxx3ZjZkZjI1MDBiMzA5MzkwYzlhYWEzNDIzYmRhNWQ4Nw==
[23-Nov-2009 13:16:49 +0530]: S: a000 NO Authentication failed.
-----------------------------------------------------------------------------
This is the "error" file in the logs of Roundcube:
[23-Nov-2009 13:16:49 +0530]: IMAP Error: Authentication for
[email protected] failed (AUTH): "a000 NO Authentication failed.^M
" (POST /roundcube/?_task=&_action=login)
---------------------------------------------------------------------------------
I made one change in the main.inc.php file
$rcmail_config['default_host'] = 'localhost';
and in the db.inc.php file:
$rcmail_config['db_dsnw'] = 'mysql://user:xxxxx@localhost/database';
where user has all rights to the database.
---------------------------------------------------------------------------------------
I have also created a file to register an alias in my web server, so that
//www.domain.com/roundcubemail points to the login page of roundcube.
In squirrelmail and in horde, my users login with "
[email protected]", I have tried both
"user" and "
[email protected]" login in roundcube, both have failed.
Further enquiries on google have revealed that there are issues with Roundcube and CRAM-MD5 authentication (Dovecot). I don't want to set Dovecot auth to plain.
Can anybody help me out with this?
Thanks.
There is only been one recent problem with CRAM-MD5 and RoundCube (#1486308 (imap_auth_type config value ignored) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1486308)) and that's been fixed in the latest SVN.
Thanks for the reply.
I made the necessary change as per #1486308 (imap_auth_type config value ignored) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1486308). However, the same error pops up as mentioned earlier.
In addition to the above logs this is the dovecot log:
dovecot: Nov 23 15:22:52 Info: imap-login: Disconnected: user=, method=CRAM-MD5, rip=127.0.0.1, lip=127.0.0.1, secured
I was able to to resolve the issue by using the PLAIN IMAP authentication option.
I have a similar login problem.
In my case, Postfix log says the authentication was successful but Roundcube displays the "login failed" popup.
The connection between Postfix and Rouncube should be OK. If I enter a bad login mail.log says "LOGIN FAILED" and if it's good I get LOGIN and LOGOUT. In both cases Roundcube says "Login Failed"
I use MySQL / Plain text passwords and everything works OK from Outlook.