Discussion:
[RCU] "Must issue a STARTTLS command first"
Jonathan Nichols
2017-12-31 20:19:41 UTC
Permalink
This might be a really simple issue, but my searches haven’t come up with a solution yet. (only one thread where a guy said he solved it but never elaborated.)

Roundcube gives an error of "SMTP Error (250): Authentication failed.” and the log has "Must issue a STARTTLS command first."

PHP 5.6.4
Postfix 2.11.3
Roundcube 1.3.3

Things used to work just fine but it’s been a while since I’ve used roundcube to send any emails, so i haven’t noticed until now.. No self-signed certificate. Thunderbird/Apple Mail work ok.

config.inc.php has:

$config['default_host'] = 'tls://%n’; #I’ve tried ‘tls://pile.pbp.net' as well

$config['smtp_port'] = 587;

$config['smtp_user'] = '%u';

$config['smtp_pass'] = '%p’;

smtp_debug shows:

[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 220 pile.pbp.net ESMTP Postfix (Ubuntu)
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Send: EHLO pile.pbp.net
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 250-pile.pbp.net
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 250-PIPELINING
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 250-SIZE 30480000
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 250-ETRN
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 250-STARTTLS
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 250-ENHANCEDSTATUSCODES
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 250-8BITMIME
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 250 DSN
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Send: RSET
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 530 5.7.0 Must issue a STARTTLS command first
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Send: QUIT
[31-Dec-2017 14:13:15 -0600]: <jlfk3bmj> Recv: 221 2.0.0 Bye

Anything else that I should check? it is a slightly older ubuntu release (15.04) at this point. I’m looking at moving webmail to another machine with a newer install.

Thank you!

jonathan
A.L.E.C
2018-01-01 08:25:00 UTC
Permalink
Post by Jonathan Nichols
$config['default_host'] = 'tls://%n’; #I’ve tried ‘tls://pile.pbp.net' as well
default_host is for IMAP, you have to set smtp_server.
--
Aleksander 'A.L.E.C' Machniak
Kolab Groupware Developer [http://kolab.org]
Roundcube Webmail Developer [http://roundcube.net]
----------------------------------------------------
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
Jonathan Nichols
2018-01-02 20:20:21 UTC
Permalink
It really was that simple. Sorry about that! I accidentally had duplicate configuration files too.

All fixed, and works great, and now I understand how i can move my roundcube install to a different machine too. :)
Post by A.L.E.C
Post by Jonathan Nichols
$config['default_host'] = 'tls://%n’; #I’ve tried ‘tls://pile.pbp.net' as well
default_host is for IMAP, you have to set smtp_server.
--
Loading...