Content
OP silently fails to send email with either sendmail or smtp
Added by Deleted user over 10 years ago
Hello, I’m setting up OP as a replacement for some SaaS project management crap that we were using
I’ve found that my installation fails to send email using either SMTP or Sendmail. I’ve tried both, I’ve verified through the shell that mails can be sent using the specified setups. I was able to send email from the command line invoking sendmail as the openproject user, and the smtp server is a simple postfix install on localhost that i was able to send mail through using telnet localhost 25 && EHLO etc
Every time, I get this in openproject log file:
Sent mail to dmoore@example.com (26.0ms)
(actual domain name redacted)
There are no indications in any relevant MTA log files that OP ever attempted to send an email.
Any suggestions would be graciously welcomed
Replies (2)
Progress! I’ve set log level to debug and found this
Rendered user_mailer/_issue_details.html.erb (22.2ms)
Rendered user_mailer/work_package_updated.html.erb within layouts/user_mailer (35.0ms)
Rendered user_mailer/_issue_details.text.erb (6.9ms)
Rendered user_mailer/work_package_updated.text.erb within layouts/user_mailer (7.8ms)
Sent mail to dmoore@example.com (26.9ms)
2014-08-30T20:21:48-0500: [Worker(delayed_job host:Deb-OpenProject pid:20089)] Class#work_package_updated failed with Errno::EPIPE: Broken pipe - 0 failed attempts
Rendered user_mailer/_issue_details.html.erb (22.2ms)
Rendered user_mailer/work_package_updated.html.erb within layouts/user_mailer (28.6ms)
Rendered user_mailer/_issue_details.text.erb (7.4ms)
Rendered user_mailer/work_package_updated.text.erb within layouts/user_mailer (8.4ms)
Sent mail to dmoore@example.com (30.0ms)
2014-08-30T20:21:48-0500: [Worker(delayed_job host:Deb-OpenProject pid:20089)] Class#work_package_updated completed after 0.1711
2014-08-30T20:21:48-0500: [Worker(delayed_job host:Deb-OpenProject pid:20089)] 2 jobs processed at 2.8854 j/s, 1 failed …
aaaand i’ve made it work.
RAILS_ENV=production bundle exec script/delayed_job stop
RAILS_ENV=production bundle exec script/delayed_job start
after restarting this delayed job daemon, mails are sending properly. huzzah!