Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. OP silently fails to send email with either sendmail or smtp

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)

RE: OP silently fails to send email with either sendmail or smtp - Added by Deleted user over 10 years ago

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 …

RE: OP silently fails to send email with either sendmail or smtp - Added by Deleted user over 10 years ago

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!

  • (1 - 2/2)
Loading...