Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] - Unknown mailsmtp error 27 (SSL Error) when adding IMAP/SMTP account #2004

Open
zeph opened this issue Apr 19, 2024 · 2 comments
Open
Labels

Comments

@zeph
Copy link

zeph commented Apr 19, 2024

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

@zeph zeph added the bug label Apr 19, 2024
@zeph
Copy link
Author

zeph commented Apr 19, 2024

wait... is this related to #2002 ?
...as I see this statement https://community.getmailspring.com/t/mailspring-doesnt-support-tlsv1-3/4914

the endpoint I'm having issues with is indeed TLSv1.3

Post-Handshake New Session Ticket arrived:
SSL-Session:
    Protocol  : TLSv1.3
    Cipher    : TLS_AES_256_GCM_SHA384

@zeph
Copy link
Author

zeph commented Apr 19, 2024

(thoughts/investigation/notes)
ok, seems to be al going around https://github.com/Foundry376/Mailspring-Sync
...let me see if it is using a too old version of mailcore2 or this is really a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant