# Bug OP-15866 - Docker all in one: Inbound mail not working

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 16.2.0 |
| Observed in versions | 14.5.0 |
| Sprint | 16.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.5.x |
| 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.  Set up a OpenProject instance via docker all in one

2.  Enable in bound mail via env variables as described in the docs (<https://www.openproject.org/docs/installation-and-operations/configuration/incoming-emails/#setup>)

3.  Send a mail to create a work package to your IMAP-Server

### What is the buggy behavior?

*Please describe the bug in as much detail as possible. Example:*

  - The cronjob for receiving mails is not running

  - You can't use inbound mails

### What is the expected behavior?

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

1.  The cronjob is running when env variables are set correctly

2.  You can use inbound mails as expected

### 

### Workaround

Download the supervisord.conf.erb from GitHub:

<https://github.com/opf/openproject/blob/v14.5.0/docker/prod/supervisord.conf.erb#L53>

Replace line 53 of that file with the following line:

``` erb
autostart=<%= (ENV['IMAP_ENABLED'] == "true").to_s %>
```

Create a Docker file with the following content:

``` dockerfile
FROM openproject/openproject:14

COPY ./supervisord.conf.erb ./docker/prod/supervisord.conf.erb
```

Build a new Image with that Docker file and use it instead of the openproject/openproject:14 image.

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