Author Topic: default_host has "tls://fqdn" but tries to authenticate with CRAM-MD5  (Read 1078 times)

Offline djmcq

  • Newbie
  • *
  • Posts: 6
Code: [Select]
$config['default_host'] = 'tls://fqdn';
This is the error message I get from dovecot when testing on the installation page:

Code: [Select]
Apr 11 16:10:24 fast dovecot: imap-login: Disconnected (auth failed, 1 attempts in 2 secs): user=<foo@bah.com>, 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.

Offline djmcq

  • Newbie
  • *
  • Posts: 6
Re: default_host has "tls://fqdn" but tries to authenticate with CRAM-MD5
« Reply #1 on: April 11, 2023, 02:54:49 AM »
Answering my own question....

I had to add

Code: [Select]
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?
« Last Edit: April 11, 2023, 03:54:53 AM by djmcq »