# Discourse/mail-receiver:release Docker image appears to be outdated

**URL:** https://meta.discourse.org/t/discourse-mail-receiver-release-docker-image-appears-to-be-outdated/411734
**Category:** Bug
**Tags:** mail-receiver
**Created:** [September 6, 2026, 4:30am UTC](https://meta.discourse.org/t/discourse-mail-receiver-release-docker-image-appears-to-be-outdated/411734 "2026-09-06T04:30:12Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![scavin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scavin/32/115938_2.png) [@scavin](https://meta.discourse.org/u/scavin)
#### Post date: [September 6, 2026, 5:04am UTC](https://meta.discourse.org/t/discourse-mail-receiver-release-docker-image-appears-to-be-outdated/411734/2 "2026-09-06T05:04:44Z")

</div>

## Update: I tested the current `main` branch

I built the current `main` branch locally and found another issue.

The old Docker Hub `release` image still runs the old fast-rejection code and fails during RCPT with:

```plaintext
450 4.7.1 Recipient address rejected: Internal error, API request failed

```

However, the current `main` branch has already removed the `smtp_should_reject` / fast-rejection implementation. After building `main`, Postfix instead fails with:

```plaintext
warning: connect to private/policy: No such file or directory
451 4.3.5 Recipient address rejected: Server configuration problem

```

I traced this to two remaining references in the `Dockerfile`:

```plaintext
check_policy_service unix:private/policy

```

The policy service itself has been removed, but `smtpd_recipient_restrictions` still references its socket.

I removed `unix:private/policy` from `smtpd_recipient_restrictions`, rebuilt the image, and incoming SMTP mail was then accepted successfully.

After switching to a Global API Key, delivery to Discourse also succeeded:

```plaintext
dsn=2.0.0, status=sent (delivered via discourse service)

```

So there seem to be two separate issues:

1. The published `discourse/mail-receiver:release` image is outdated and still contains the old fast-rejection implementation.
2. The current `main` branch removed that implementation, but the `Dockerfile` still configures Postfix to use `unix:private/policy`.

There may also be a separate issue with granular API keys: a key scoped only to `receive emails` returned HTTP 404 from `/admin/email/handle_mail`, while a Global API Key returned HTTP 200.

I can submit a PR for the two stale `private/policy` references in the `Dockerfile` if that would be helpful.

---

_[View the full topic](https://meta.discourse.org/t/discourse-mail-receiver-release-docker-image-appears-to-be-outdated/411734)._
