That is correct. I’ve just checked this on my hosted Discourse site and it’s working without any problems. If your site is on the latest version of Discourse, I’m wondering is the issue is related to how your mail server handles forwarding the bounce message.
Thanks. For outgoing mail I’m using Mailgun. I think I used Discourse’s recommended settings.
For incoming mail I’m using this Straightforward direct-delivery incoming mail But I’ve never updated it since installation - might that be the problem? As it’s ./launcher rebuild app for Discourse, is it ./launcher rebuild mail-receiver?
Yes likely Discourse isn’t getting it from Mailgun. I don’t know how the webhooks work but suspect it just tells Discourse there has been a temporary/permanent failure without sending the bounce message.
Is there any way to make this Discourse feature work with Mailgun?
It should be possible to show at least the error code and message:
Both SMTP error code and SMTP error message are preserved
“error”: “Message was not accepted – invalid mailbox. Local mailbox 'firstname.lastname@example.org is unavailable: user not found”
After my own testing it seems in many cases, bounces are not received by the mail receiver at all. (I only found a connection attempt for one, which was promptly lost). I’m not seeing the Return-Path header being set at all (is it supposed to be?) which makes me think that they’re not even being sent back most of the time.
Still a problem here as well. Despite my earlier statement, it now appears that none of these links work, going back to site startup. Initially it only seemed to affect bounces from before we started handling bounces properly (Handling bouncing e-mails).
That is the expected behavior when the bounced response was not processed by Discourse. The feature is working fine if Discourse receives the bounces, otherwise it will show that response for all bounces.
In what circumstance would Discourse handle bounces rather than the external email service? (I know Discourse can bounce/reject emails, but I mean handling bounce messages received from intended email recipients.)