"Must issue a STARTTLS command first"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

"Must issue a STARTTLS command first"

Jonathan Nichols
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
_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: "Must issue a STARTTLS command first"

A.L.E.C
On 12/31/2017 09:19 PM, Jonathan Nichols wrote:

>
> $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
_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: "Must issue a STARTTLS command first"

Jonathan Nichols
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. :)

> On Jan 1, 2018, at 2:25 AM, A.L.E.C <[hidden email]> wrote:
>
> On 12/31/2017 09:19 PM, Jonathan Nichols wrote:
>
>>
>> $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.
>
> --
_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users