Content
[Solved] Docker email not working
We start using openproject therefore we setup a docker container.
But no emails are send. We configured an outbound smtp server but it does not send any email.
in uri /health_check_/_all it tells us that openproject is ignoring the smtp settings but tries to send emails to localhost - inside a docker container a bit a problem: mail: FAILED ActionMailer::Base at localhost:25 is not accepting connections: 'Cannot assign requested address - connect(2) for "localhost" port 25' (0.000s)
- how can we fix this? Inside the openproject container of course no smtp daemon is running
- for what is the smtp host setting in configuration page when not used for sending emails?
Bye
Rajko
I work with Rajko Albrecht and can add the following details:
- We configured the email settings in the URL /admin/mail_notifications and the test email is working
- We also tried setting the following inside the Docker compose file:
SMTP_ADDRESS=smtp.ourdomain.com
SMTP_HOST=smtp.ourdomain.com
SMTP_PORT=25
SMTP_DOMAIN=ourdomain.com
The SMTP server on our LAN does not use authentication. Nevertheless, the URL /admin/mail_notifications still shows the error: "mail: FAILED ActionMailer::Base at localhost:25 is not accepting connections: 'Cannot assign requested address - connect(2) for "localhost" port 25' (0.001s)"
- Project status emails do not seem to be sending, even after verifying email settings in an individual profile
We solved the problem: OpenProject isn't compatible with an SMTP server that has no authentication. We reconfigured to our upstream SMTP server, and it's working now.
Hi Greg,
Great that you could solve it. Thank you for posting the solution here!
Kind regards
Matthias
Hi Greg,
修改上游smtp服务器,是怎么做的?能指导一下吗?