SMTP Error Outlook.com - tls_validate_record_header:wrong version number #341
Labels
No labels
bug
chore
documentation
enhancement
help
in-progress
question
ready-for-release
released
translation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
adam/gate#341
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug:
Sending Mails from an outlook.com Account fails with the following error in Debug Log
SMTP email connection failed; ERROR: [Error: 5012ED7242150000:error:0A00010B:SSL routines:tls_validate_record_header:wrong version number:../../deps/openssl/openssl/ssl/record/methods/tlsany_meth.c:77: ] { library: 'SSL routines', reason: 'wrong version number', code: 'ESOCKET', command: 'CONN' }To Reproduce:
Use an Outlook.com Account with the following Environment Vars
-e 'SMTP_HOST'='smtp-mail.outlook.com' -e 'SMTP_PORT'='587' -e 'SMTP_USER'='Diggen85@outlook.de' -e 'SMTP_PASS'='###########' -e 'SMTP_FROM'='Diggen85@outlook.de' -e 'SMTP_SECURE'='true'Expected behavior:
The connection should be sucessful
Database Driver:
sqllite
Additional context:
Outlook.com seems to need SSLV3 / minTLS1.2
Use the following values with the TLS Key of SMTPTransport.Options
tls: { ciphers: "SSLv3", minVersion: "TLSv1.2", // Use TLS 1.2 or higher },Maybe make them configurable over the environment like the rest
Feel free to contact me for testing or feedback
Now available in release v1.12.0