Roundcube Community Forum

Release Support => Pending Issues => Topic started by: Cidian on February 26, 2013, 11:01:14 AM

Title: AUTHENTICATE PLAIN: Authentication failed. (IMAP)
Post by: Cidian on February 26, 2013, 11:01:14 AM
Hi, not entirely sure if this is the correct place for this one, but this forum seemed most appropriate. Sorry if I got that wrong!

I've been battling with this error for a while now and still haven't managed to resolve it. I've just installed roundcube and am attempting to pass the configuration tests, specifically I'm stuck on 'Test IMAP config' (all the rest are passing fine)

Code: [Select]
Connecting to localhost...
IMAP connect:  NOT OK(Login failed for user@mydomain.com from <IP ADDRESS>. AUTHENTICATE PLAIN: Authentication failed.)

I've configured the dovecot installation and am getting the proper response on port 143 already.
I've also confirmed that dovecot appears to be allowing plaintext authentication. In fact, the dovecot configuration does appear to be fine.
(http://puu.sh/28IfT)

(http://puu.sh/28InV)

I've done my best to configure the main.inc.php file correctly, I originally believed the problem may lie with this section below. However, I've tried various values and even just left it empty without any luck.

Code: [Select]
// the mail host chosen to perform the log-in
// IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['imap_auth_type'] = 'plain';

Is this part of my main.inc.php config file correct? Have I perhaps missed something obvious elsewhere?
Any help on this matter would be greatly appreciated, thanks.
Title: Re: AUTHENTICATE PLAIN: Authentication failed. (IMAP)
Post by: SKaero on February 26, 2013, 07:56:20 PM
I think plain needs to be capitalized in $rcmail_config['imap_auth_type']. Try enabling imap_debug in main.inc.php and see what the log says.
Title: Re: AUTHENTICATE PLAIN: Authentication failed. (IMAP)
Post by: hotstaff on July 07, 2014, 10:53:21 AM
I saw the same problem.
In my case, putting the domain of the later of @ in the dovecot login was not allowed.
So, I've rewritten the config file of dovecot as follows.

in /etc/dovecot.conf
Code: [Select]
auth_username_format = %n

The following code may be helpful in problem solvingļ¼Ž

in defaults.inc.php
Code: [Select]
$config['imap_debug'] = true;

 I hope go well.


Title: Re: AUTHENTICATE PLAIN: Authentication failed. (IMAP)
Post by: Green Giant on November 17, 2014, 06:58:08 PM
Thank you very much.
You would think such an issue as this would be better documented.

Again thanks.