Skip to content

bug: lettre error wrong version number when configuring SMTP #169

@32cls

Description

@32cls

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:

[api.smtp]
# Email server configuration for verification
# Defaults to no email verification (host field is empty)
host = "smtp.mailersend.net"
username = "[email protected]"
password = "ZZZ"
from_address = "[email protected]"
reply_to = "[email protected]"
port = 587
use_tls = true
use_starttls = true

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 first

Also 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 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions