mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-22 21:16:40 -04:00
bug: lettre error wrong version number when configuring SMTP #118
Reference in New Issue
Block a user
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?
Originally created by @32cls on GitHub (Sep 26, 2025).
What happened?
Hello,
When trying to self host an instance, with an external SMTP service like Mailsent, I get the following error each time I try to send an email for a password reset:
lettre error: Connection error: error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:354:I use the following SMTP configuration inside the Revolt.toml file:
I tried to play with both tls and starttls options by setting them to true and false and it only gave me a different error when setting tls to false:
lettre error: permanent error (538): Error: Must issue a STARTTLS command firstAlso note that the use_starttls option is not shown on https://github.com/revoltchat/backend/blob/main/crates/core/config/Revolt.toml.
From Mailsent documentation, it says they only support TLS versions 1.2 & 1.3, is Revolt using one of these?
Thank you for your help 🙏
@insertish commented on GitHub (Sep 26, 2025):
You have both TLS and STARTTLS enabled in your config, use one or the other.
Presumably you want just
use_tlsto be true and the port being set to the TLS endpoint.@32cls commented on GitHub (Sep 26, 2025):
I tried with the following configuration as Mailsend states they use STARTTLS and enable only ports 587 and 2525 from their documentation:
And still get the issue below, I could try to change the SMTP service but I think it should be possible to connect with my current configuration
@Daniel13850 commented on GitHub (Oct 1, 2025):
I had the same problem and i have found the solution (if your provider supports SMTPS).
You need to use the Port 465 for SMTPS, and then only enable the
use_tlsoption, leaveuse_starttlsdisabled.@32cls commented on GitHub (Oct 1, 2025):
I tried using port 465, enabling
use_tlsand disablinguse_starttls, but it seems my provider does not support SMTPS from the documentation I read and also because it gives me the following error trying so:I think Mailsend only supports the usage of starttls, for debugging purposes I tried with a short code I copy pasted from somewhere and it worked:
@32cls commented on GitHub (Oct 15, 2025):
Benefiting from the rebrand to up my issue