# Bug OP-11915 - [Docker] SMTP setup fails - (Net::ReadTimeout with #<Socket:(closed)>).

Project: OpenProject
Status: rejected
URL: https://community.openproject.org/work_packages/OP-11915

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions |  |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

*Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:*

1.  Setup Docker All-in-One OPF
2.  Setup mailing without auth
3.  No mails will be sent

### What is the buggy behavior?

*Please describe the bug with as most details as possible. Example:*

  - Mail are not sent

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  Mail should be sent

### Important note

*Please note that unless you are a contributor to OpenProject, you can no longer edit this bug report after saving. You can still add new comments, but no longer add any new images or other attachments. Please make sure that all necessary information and attachments are added, and the following attributes are set:*

### **Logs**

*Are there errors in the browser console? (*[*Click here for information on how to open your browser's console*](https://webmasters.stackexchange.com/a/77337)*) For a local installation: Are there relevant logs output by* `_openproject logs_` *(packaged installation) (*[*click here for details*](https://docs.openproject.org/installation-and-operations/operation/monitoring/#show-logs)*) or in a log/production.log or /var/log/openproject/ ? Please attach error output in these log files if applicable*

### Screenshots and other files

*If you have screenshots of the application's bug behavior or other relevant files, please drag them into this place or attach them using the "Files" section.*

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [ ] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [x] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

12.4.3

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

German

Hi.

We installed OP (12.4.3) via docker on a linux host:

`#!/bin/bash`  
`docker run -d -p 8080:80 \`  
`--name openproject \`  
`--restart unless-stopped \`  
 `-e OPENPROJECT_SECRET_KEY_BASE=secret \`  
 `-e OPENPROJECT_HOST__NAME=openproject.domain.de:8080 \`  
 `-e OPENPROJECT_HTTPS=false \`  
 `-e OPENPROJECT_LOG__LEVEL=debug \`  
 `-v /opt/docker/openproject/pgdata:/var/openproject/pgdata \`  
 `-v /opt/docker/openproject/assets:/var/openproject/assets \`  
`openproject/community:12`

I configured SMTP as follows:

  - Type: smtp
  - Server: our.mail.server
  - Port: 25
  - HELO: our-domain
  - Auth: none

Those settings are correct and working in many other applications. However, while testing, I just get `(Net::ReadTimeout with #<Socket:(closed)>).` after 3 secs.

accessing the container let me successfully ping the mail server and talk to it:

`root@7b8fcde72bd0:/# telnet mail.ourserver.de 25`  
`Trying x.x.x.x...`  
`Connected to mail.ourserver.de.`  
`Escape character is '^]'.`  
`220 xxx ESMTP Sendmail 8.15.2/8.15.2/Debian-3; Wed, 1 Feb 2023 14:25:48 +0100; (No UCE/UBE) logging access from: [](FAIL)-[]`  
`HELP`  
`214-2.0.0 This is sendmail version 8.15.2`  
`214-2.0.0 Topics:`  
`214-2.0.0       HELO    EHLO    MAIL    RCPT    DATA`  
`214-2.0.0       RSET    NOOP    QUIT    HELP    VRFY`  
`214-2.0.0       EXPN    VERB    ETRN    DSN     AUTH`  
`214-2.0.0       STARTTLS`  
`214-2.0.0 For more info use "HELP <topic>".`  
`214-2.0.0 To report bugs in the implementation see`  
`214-2.0.0       http://www.sendmail.org/email-addresses.html`  
`214-2.0.0 For local information send email to Postmaster at your site.`  
`214 2.0.0 End of HELP info`

So, where is the problem? The openproject docker log tells me nothing..

Thanks in advance\!
