-
Notifications
You must be signed in to change notification settings - Fork 89
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
TLS issue / STARTTLS support #250
Comments
I've added some more information in dart-lang/sdk#52886 But the TL;DR is: Don't use There are very few ssl smtp servers. Usually smtp connections are started over insecure connections and then upgraded to secure ones, using the |
Cool, thanks. This issue pushed me into studying how SMTP works.
My server is one of them and it works great with So now I fully understand how this package works. Maybe would be a good idea to specify this info on the And thank you again :) |
I commented this issue here.
Thanks
Update I:
I think the issue can be related to STARTTLS. If I'm correct, this protocol starts in plain text and then it upgrades to TLS after negotiating it. So this library attempts to stablish a TLS connection when
ssl
is true. So seems that is not possible to connect to a Postfix server (at least I didn't found how to disable STARTTLS).Update II:
I thought that Dart didn't support STARTTLS but it seems it can be done this way:
https://stackoverflow.com/a/17643296/4681977
https://api.dart.dev/main/627cd3047d2b52e23ba0cd3e31782c0f5ac97e85/dart-io/SecureSocket/secure.html
The text was updated successfully, but these errors were encountered: