Hi,
I think the official discourse/mail-receiver:release Docker image may have been overlooked and has not been rebuilt for quite some time.
The GitHub repository is still actively maintained:
However, the official Docker image:
discourse/mail-receiver:release
appears to have been built almost 2 years ago.
This seems to cause compatibility problems with current versions of Discourse.
In my case, incoming email reaches the mail receiver successfully, but it is rejected during RCPT TO with:
450 4.7.1 Recipient address rejected: Internal error, API request failed
The old Docker image still appears to use the smtp_should_reject / fast-rejection mechanism.
However, the current Discourse source contains this comment:
# this endpoint has been broken for years
# and was used only in the public mail-receiver's fast rejection code,
# which is removed in https://github.com/discourse/mail-receiver/pull/33
PR #33 has already removed that fast-rejection code from mail-receiver, but those changes do not appear to be included in the currently published discourse/mail-receiver:release image.
The official mail-receiver documentation/README still instructs users to use:
discourse/mail-receiver:release
So I wonder if the Docker image publishing process was simply missed after the recent changes.
Could you please check whether a new discourse/mail-receiver:release image needs to be built and published?
Thanks!