Skip to content
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

Can't create user when SMTP is enabled #124

Open
michelleDeko opened this issue Jan 22, 2025 · 2 comments
Open

Can't create user when SMTP is enabled #124

michelleDeko opened this issue Jan 22, 2025 · 2 comments

Comments

@michelleDeko
Copy link

michelleDeko commented Jan 22, 2025

Hi,

I tried setting up Revolt on my server with an SMTP server (mailcow on the same server)
But I can't register an account because of the following error:

INFO  rocket::server                                                   > POST /auth/account/create application/json:
 INFO  rocket::server::_                                                > Matched: (create_account) POST /auth/account/create
 ERROR authifier::config::email_verification                            > Failed to send email to [email protected]!
lettre error: Connection error: Network is unreachable (os error 101)
 INFO  rocket::server::_                                                > Outcome: Success(500 Internal Server Error)
 WARN  rocket::server::_                                                > Remote left: client disconnect before response started.

I'm 100% sure I the smtp settings were set correctly.
This is the error I'm getting on the website:

Image

I also saw this error in the browser console:

Image

Is there a way to fix this?

@insertish
Copy link
Member

It appears to be struggling to connect to your mail server, have you verified the connection manually?
If you specify "localhost", it won't work because that will refer to the internal Docker network.
You can use this trick for example: https://stackoverflow.com/a/62431165

@michelleDeko
Copy link
Author

It appears to be struggling to connect to your mail server, have you verified the connection manually? If you specify "localhost", it won't work because that will refer to the internal Docker network. You can use this trick for example: https://stackoverflow.com/a/62431165

I used the domain name (mail.domain.com), not something local. I also used the same options like I do in Nextcloud for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Untriaged
Development

No branches or pull requests

2 participants