Content
Issues with email notifications
Added by Arwen Drew over 3 years ago
So I have a new openproject container setup using docker compose. I went to admin portal and added the settings for emails to be sent. Sent a successful test, but was not able to get notifications sent to me. Going to URL/health_checks/all I get this:
full database: PASSED Schema version: 20210219092709 (0.017s) default: PASSED Application is running (0.000s) delayed_jobs_backed_up: PASSED Delayed Jobs with priority lower than '0' at reasonable level (0) (0.011s) (OPTIONAL) delayed_jobs_never_ran: PASSED All previous jobs have completed within the past 5 minutes. (0.002s) mail: FAILED ActionMailer::Base at localhost:25 is not accepting connections: 'Cannot assign requested address - connect(2) for "localhost" port 25' (0.012s) puma: PASSED Backlog ok (0.000s) (OPTIONAL)
Reading some stuff, it sounds like I need to add something to the .yml file ? Not 100% sure. Also, do I need postfix installed?
Replies (4)
Hi Arwen hope you are well - May I ask you if you have solved this as I have exactly the same issue, I have installed it manually on two systems and now on docker. Every installation I cannot get email notifications other than the email test, new users etc. which work fine. The logs show our testing emails leaving from the system but nothing about work packages being updated etc. which is why I think something is simply missing as nothing occurs. I compared the logs between the three deploys and they are identical so I think the issue is with the version (OP 11) rather than method of deploy. Literally one of the worst issues I have had to look into for a long time. If there are errors, I can find/fix them... if no errors are logged I have zero idea what needs to be updated/changed etc!
Hi David,
I have not found a fix for this yet. Have you attempted installing some email sender like postfix?
Hi - I haven't no Arwen, have you attempted? I emailed the community email address but all I got sent was the email setup guide which I have already done, along with the option to purchase the Enterprise with installation support!!
I was given this below, but I get a syntax error. Any thoughts?
In the docker installation, you can use our process control guide to spawn an interactive shell and run the following command:
ActionMailer::Base.mail(
from: "the openproject SMTP email",
to: "username@yourdomain.com",
subject: "Test email",
body: "This is a test"
).deliver_now
and from there, observe the console output to see the actual error that might occur.