Roundcube Community Forum

 

AUTHENTICATE PLAIN: Authentication failed. (IMAP)

Started by Cidian, February 26, 2013, 11:01:14 AM

Previous topic - Next topic

Cidian

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)

Connecting to localhost...
IMAP connect:  NOT OK(Login failed for [email protected] 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.




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.

// 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.

SKaero

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.

hotstaff

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

auth_username_format = %n


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

in defaults.inc.php

$config['imap_debug'] = true;


I hope go well.



Green Giant

Thank you very much.
You would think such an issue as this would be better documented.

Again thanks.