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. Cannot send test email SMTP

Cannot send test email SMTP

Added by Robert Alers about 5 years ago

Hoping anyone can help me with this.

I run openproject in a docker container on unraid.

When trying to connect my sendgrid account to OpenProject (free edition) i get the following error:

"An error occurred while sending mail (Cannot assign requested address - connect(2) for "localhost" port 587)"

The log says the following:

App 427 output: method=POST path=/admin/test_email format=html controller=AdminController action=test_email status=302 duration=42.77 view=0.00 db=2.86 location=https://MYDOMAIN/admin/mail_notifications user=2
App 427 output: method=GET path=/admin/mail_notifications format=html controller=Admin::MailNotificationsController action=show status=200 duration=133.09 view=118.09 db=7.94 user=2

Any idea how to solve this?

Thanks in advance!


Replies (2)

RE: Cannot send test email SMTP - Added by Cyril Rohr about 5 years ago

Hello,

It seems like you haven't properly set the SMTP server hostname. Maybe you can show a screenshot of your config (removing any secrets)?

RE: Cannot send test email SMTP - Added by Cyril Rohr about 5 years ago

You can also launch a console with docker-compose run web bundle exec rails c and then enter ActionMailer::Base.smtp_settings to view the configuration.

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