Content
You are here:
[Solved] Docker email not working
Added by Rajko Albrecht almost 4 years ago
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
Replies (4)
I work with Rajko Albrecht and can add the following details:
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)"
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服务器,是怎么做的?能指导一下吗?