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. [Solved] Docker email not working

[Solved] Docker email not working

Added by Rajko Albrecht over 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)

  1. how can we fix this? Inside the openproject container of course no smtp daemon is running
  2. for what is the smtp host setting in configuration page when not used for sending emails?

Bye

Rajko


Replies (4)

RE: Docker email not working - Added by Greg Glockner over 4 years ago

I work with Rajko Albrecht and can add the following details:

  • We configured the email settings in the URL /admin/mail_notifications and the test email is working
  • We also tried setting the following inside the Docker compose file:
SMTP_ADDRESS=smtp.ourdomain.com
SMTP_HOST=smtp.ourdomain.com
SMTP_PORT=25
SMTP_DOMAIN=ourdomain.com

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)"

  • Project status emails do not seem to be sending, even after verifying email settings in an individual profile

RE: Docker email not working - Added by Greg Glockner over 4 years ago

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.

RE: [Solved] Docker email not working - Added by Max Mutzge over 4 years ago

Hi Greg,
Great that you could solve it. Thank you for posting the solution here!

Kind regards

Matthias

RE: [Solved] Docker email not working - Added by 柯 末末 almost 4 years ago

Hi Greg,

     修改上游smtp服务器,是怎么做的?能指导一下吗?

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