# Task OP-11298 - mail: FAILED ActionMailer::Base at localhost:25 is not accepting connections: 'Network is unreachable - connect(2) for "localhost" port 25' (0.002s)

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-11298

## Details

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Date |  |
| Priority | Medium |
| Target versions |  |
| Category |  |
| Labels |  |

## Description

Hi,

I've installed a docker openproject and I'm having issues to send emails. On test UI everything works fine.

  - I've added environment variables.
  - I've exposed port 25 in all the containers.
  - If I use the ports setup below it says the port is already in use.
      - ports:
          - \- "${PORT:-25}:25"

mail: FAILED ActionMailer::Base at localhost:25 is not accepting connections: 'Network is unreachable - connect(2) for "localhost" port 25' (0.002s)

Nothing solved by now. Do you have an idea?

Thanks in advance.
