Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: djmcq on April 11, 2023, 02:38:09 AM

Title: default_host has "tls://fqdn" but tries to authenticate with CRAM-MD5
Post by: djmcq on April 11, 2023, 02:38:09 AM
$config['default_host'] = 'tls://fqdn';

This is the error message I get from dovecot when testing on the installation page:

Apr 11 16:10:24 fast dovecot: imap-login: Disconnected (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=CRAM-MD5 ..... etc

I know the tls authentication works.... I use it all the time from Thunderbird. Why does roundcube try CRAM-MD5?

I've tested SMTP on the same system - same "tls://FQDN" - and it works.

In case it matters, I didn't at first realise that I needed the tls:// when setting up and changed it later in config/config.inc.php
I also tried re-running the installation and changing it there. Nothing so far seems to work.

In the config file  (line 61 in my version) there is a cryptic note about hostname/users in the database, but so far that table is empty so I assume that's not the problem.
Title: Re: default_host has "tls://fqdn" but tries to authenticate with CRAM-MD5
Post by: djmcq on April 11, 2023, 02:54:49 AM
Answering my own question....

I had to add

config['imap_auth_type'] = 'PLAIN';

Obviously I'm not an expert. It took me 4 hours to figure that out  >:(

Is there any truth in the axiom that asking the  question often gives you the answer?