The discussion revolves around the best practice for handling users whose emails are rejected by recipients in Discourse. honeymoose initially asks for a solution in Chinese, but later rephrases the question in English. The issue arises when emails sent from Discourse are rejected by the user’s mail server, resulting in no record of bounced emails on the Discourse Admin/Emails/Bounced page.
simon suggests checking the bounced email records, but honeymoose clarifies that the issue is not with bounced emails, but rather with email rejections that are only visible in the email server logs. In such cases, simon recommends manually deactivating the user from the admin page to prevent further email rejections.
Unfortunately, there is no automatic way to deactivate users in this scenario, as Discourse relies on bounce notifications from the mail server to temporarily stop sending emails. The only solution is manual deactivation, as suggested by simon.
English Title: 【How to Handle Undeliverable Emails for Discourse Users】
Discourse is highly dependent on email.
Usually, users might reject emails because your website sends too many. If you are using a third-party email server, the logs will typically show a rejection.
For rejected emails, we usually want to retain the user and not delete them.
After digging into the Discourse backend, we discovered a “Deactivate Account” feature.
This feature should deactivate the user, so they stop receiving emails. However, their data will still be on the website, and they can reactivate their account via email to continue using it.
Is the problem that emails sent from Discourse to the user are bouncing? If it is, you can find a record of the bounced email on your site’s Admin / Emails / Bounced page. If you click the link that is displayed in the last column on that page (the Email Type column), the bounce message that was returned from the user’s mail server will be displayed. That bounce message will often give details about what need to be done to resolve the issue on the mail server so that emails from Discourse can be delivered to the user.
It is unfortunate that the emails are not being marked as bounced by the mail server. If that was the case, Discourse would automatically stop sending them emails for a period of time after a few emails sent from Discourse had bounced.
For your case you may have to manually deactivate the user from their admin page.