I set imap_auth_type to PLAIN in main.inc.php, but RC still tries to use CRAM-MD5. I've tried every variant of PLAIN I could think of: plain, PLAIN, 'PLAIN', 'plain', "PLAIN", "plain". Nothing works.
In 0.3.x this problem required a change in imap.inc. That file's gone now, and all the bug reports surrounding it have been marked Fixed, so I guess this is a new bug, or a regression.
I finally kludged around it in frustration by adding this at line 465 of rcube_imap_generic.php:
function authenticate($user, $pass, $type='PLAIN')
{
[B] $type = 'PLAIN';[/B]
if ($type == 'CRAM-MD5' || $type == 'DIGEST-MD5') {
This forces the authentication type to PLAIN and bypasses the other types. But it's a nasty kludge. Anyone have a better way?