-
Notifications
You must be signed in to change notification settings - Fork 148
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
bug: Revolt docker container cannot talk to postfix smtp server at localhost:25 #62
Comments
I went and checked the code, and the problem seems to be due to the fact that quark panics if all of the SMTP variables are not set and the |
I could move this to the backend repo |
If I set the password to an empty string, it doesn't crash, and can attempt to send emails, but it doesn't appear to succeed in sending them:
|
Apparently, this is due to a service running in a docker container not being able to recognize
|
I don't know how to resolve this error, but it doesn't seem to step from Revolt. |
Okay, so I resolved all the explicit errors, so Revolt SAYS that it was successful in sending the email, but nothing ever happens. What assumptions does it make about the setup of the SMTP server that might be causing this? |
|
@alexispurslane I spent a few days troubleshooting this very recently, if you didn't get your setup working you may be interested. Docker usually assigns the IP 172.17.0.1 to its host network. You can check this for yourself by telnetting from the container (using docker exec -it /bin/bash) to the host. You can use this as the hostname, assuming that postfix and dovecot run on the same machine. Note: You'll need to also see the revised approach to configuring Revolt, as well as implementing the extra parameters that I noted here: #89 |
Since this issue seems unrelated to Revolt, I'm going to close it out. |
What happened?
In order to allow Revolt to send emails, I set up a postfix server for outgoing emails on the same server the Revolt docker container is running on, listening on the standard port 25. There's no username and password, so no authentication to speak of, and I've opened that port on the firewall. I can connect to it and send emails from both my local computer and on the same server outside the docker container, and I've added the docker0 address to the list of networks the postfix accepts, so it should work, but when I try to turn emails on, I just get this:
over and over.
The text was updated successfully, but these errors were encountered: