# Bug OP-18693 - Cannot update email header/footer due to emission address being 'not a valid email address' when mail_from setting is pinned via env

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Email notifications |
| Target versions | 17.1.0 |
| Observed in versions | 17.0.0 |
| Sprint | 17.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.0.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 | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

Boot OpenProject with the ENV for the setting `mail_from` set to some value. Without this it works fine. E.g. start like this:

```bash
docker run --rm -e OPENPROJECT_HTTPS=false -e OPENPROJECT_HOST__NAME=localhost:8080 -e OPENPROJECT_MAIL__FROM=notifications@openproject.com -p 8080:80 -it openproject/openproject:17.0.1
```

1.  After starting OpenProject as shown above, navigate to Administration -&gt; Email &amp; notifications -&gt; Email notifications
    
2.  Try updating the email footer
    

### What is the buggy behavior?

*   error: &quot;Emission email address is not a valid email address.&quot;
    

### What is the expected behavior?

*   The update should be successful
    

### Environment information

**OpenProject installation type**

*   [x] Hosted cloud edition
*   [x] Packaged installation
*   [x] Docker All-in-one container
*   [x] Docker-compose installation

**OpenProject version**

17.0.1
