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

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Email Notifications

Email Notifications

Added by Dan W about 4 years ago

Hi all, I have installed openproject on my linux server using docker compose, following the instructions on https://docs.openproject.org/development/development-environment-docker/ and all the containers and running and working. However, I am having trouble with outbound emails. I have set up the email SMTP settings in the openproject web portal and it connects fine and when I sent a test email, it works. However, when I subsequently send email invitations nothing is sent, even though the interface reports back that the email was sent successfully. I have googled the issue and it seems a lot of people have experienced the same problem, however none of the answers I have found seemed to rectify this issue. Please could I get some help with this as I am not sure if there is something I'm missing.


Replies (2)

RE: Email Notifications - Added by Max Mutzge about 4 years ago

Hi Dan,
let me try to help you here:

There are two different types of emails in OpenProject: One sent directly within the request to the server (this includes the test mail) and one sent asynchronously, via a background job from the backend. The majority of mail sending jobs is run asynchronously to facilitate a faster response time for server request.

Use a browser to call your domain name followed by "health_checks/all" (e.g. https://myopenproject.com/health_checks/all). There should be entries about "delayed_jobs_backed_up" and "delayed_jobs_never_ran". If PASSED is written behind it, everything is good.

If the health check does not return satisfying results, have a look if the background worker is running by entering ps aux | grep jobs on the server. If it is not running, no entry is returned. If it is running an entry with "jobs:work" at the end is displayed.

If the worker is not running please try a restart with sudo openproject restart worker. 
If that doesn't help it could be that the worker is scaled to 0 for some reason, so please try sudo openproject scale worker=1.
If that doesn't help either, please have a look at your [logs](../operation/monitoring), which are accessible with sudo openproject logs.

Another approach would be to restart OpenProject completely, especially after changing the configuration of your SMTP server: sudo openproject restart.

Kind regards

Matthias

RE: Email Notifications - Added by WSE User 12 months ago

I have the same problem.

full

database: PASSED Schema version: 20240307190126 (0.004s)

default: PASSED Application is running (0.000s)

delayed_jobs_backed_up: PASSED Delayed Jobs with priority lower than '0' at reasonable level (0) (0.002s) (OPTIONAL)

delayed_jobs_never_ran: PASSED All previous jobs have completed within the past 5 minutes. (0.001s)

mail: FAILED ActionMailer::Base at localhost:25 is not accepting connections: 'localhost is not accepting connections on port 25: Connection refused - connect(2) for "localhost" port 25' (0.000s)

puma: PASSED Backlog ok (0.000s) (OPTIONAL)

We not use the port 25.

With command ps aux | grep jobs I get "jobs:work".

With command sudo openproject scale worker=1 I get "nothing to do".

Form the logs with sudo openproject logs I don't understand nothing.

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