SMTP Error Outlook.com - tls_validate_record_header:wrong version number #341

Closed
opened 2026-03-19 13:27:48 -05:00 by Diggen85 · 1 comment
Diggen85 commented 2026-03-19 13:27:48 -05:00 (Migrated from github.com)

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

### 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
notquitenothing commented 2026-04-26 09:35:31 -05:00 (Migrated from github.com)

Now available in release v1.12.0

Now available in release [v1.12.0](https://github.com/voidauth/voidauth/releases/tag/v1.12.0)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
adam/gate#341
No description provided.