duplicating/reopening here as it seems to be the core of this issue Foundry376/Mailspring#341
Summary
Mailspring, which is using this library, is failing in negotiating TLS to some servers. An example, as it is the one I stumbled on ... is the one provided by the Free Software Foundation Europe to its fellows https://wiki.fsfe.org/action/login/TechDocs/SMTP
Connection Logs
----------SMTP----------
connect mail.fsfe.org 587
220 mail1.fsfe.org ESMTP Postfix (Debian/GNU)
init
EHLO fluffy.local
250-mail1.fsfe.org
250-PIPELINING
250-SIZE 20971520
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 CHUNKING
start TLS
STARTTLS
220 2.0.0 Ready to start TLS
QUIT
SASL_PATH:
SMTP Last Response Code: 220
SMTP Last Response: 2.0.0 Ready to start TLS
mailsmtp Last Error Code: 27
mailsmtp Last Error Explanation: MAILSMTP_ERROR_SSL
mailsmtp Last Error Location: 3
mailsmtp Last Auth Type: 0
I see if I can create a unittest for it... BRB