[SOLVED] Roundcube SMTP Authentication Error Fix


I’m sharing this as a fix I found for Roundcube SMTP authentication error.

Freedombox Version: Debian GNU/Linux trixie/sid and FreedomBox version 23.13.
Roundcube Version: Roundcube Webmail 1.6-git

On Debian Testing, if Roundcube is updated, you will likely get an SMTP authentication failure message if trying to send e-mail.

To fix the error, I applied the following.

  1. Edit the Roundcube configuration file with sudo nano /etc/roundcube/config.inc.php
  2. Replace $config['smtp_host'] = 'localhost:587'; with $config['smtp_host'] = 'tls://%n:587';
  3. Exit nano (ctrl+x) and restart apache with sudo systemctl restart apache2

Roundcube requires that smtp tls authentication aligns with your certificate. To provide this, I added tls:// followed by %n to specify my domain.

Hope this helps anyone that comes along.


Good stuff man. Everything was working perfectly and then today I noticed that this error popped on me. I’m running Virtualmin 7.10.0 Pro with Ubuntu Linux 22.04.4 and Roundbox 1.6.1

1 Like