# (Can we?) Redirect all unrouted incoming emails to a category

**URL:** <https://meta.discourse.org/t/can-we-redirect-all-unrouted-incoming-emails-to-a-category/186931>\
**Category:** Product Support\
**Created:** [April 15, 2021, 9:20am UTC](https://meta.discourse.org/t/can-we-redirect-all-unrouted-incoming-emails-to-a-category/186931 "2021-04-15T09:20:18Z")\
**Posts on this page:** 3\
**Page:** 1

## AI-generated summary

In a support discussion titled "(Can we?) Redirect all unrouted incoming emails to a category," [oca](/t/-/186931/1) describes challenges managing incoming emails on their Discourse forum, including hidden email headers, moderate spam scores, and misconfigured category settings — leading to bounced emails and confused senders. They propose a failsafe: redirecting all non-spam, unrouted emails to a dedicated "uncategorized incoming emails for manual review" category, asking if it’s possible to set `*@forum.mysite.org` as a category email or achieve this via a plugin, ideally compatible with the [Direct Delivery Incoming Email](https://meta.discourse.org/t/direct-delivery-incoming-email-for-self-hosted-sites/49487) app. [pfaffman](/t/-/186931/2) suggests exploring [IMAP support for group inboxes](https://meta.discourse.org/t/imap-support-for-group-inboxes/160588) and notes that such a feature might require a complex plugin, though they’re unsure of the implementation difficulty. [Globulle](/t/-/186931/3) adds a related issue: emails sent via the CCI field (instead of TO/CC) trigger "BadDestinationAddress" bounces, asking if Discourse can be configured to accept such messages. The thread seeks technical solutions to improve email handling and reduce user confusion for non-user correspondents.

<div class="post-metadata">

**Author:** ![oca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oca/32/156060_2.png) [@oca](https://meta.discourse.org/u/oca)\
**Post date:** [April 15, 2021, 9:20am UTC](https://meta.discourse.org/t/can-we-redirect-all-unrouted-incoming-emails-to-a-category/186931/1 "2021-04-15T09:20:18Z")

</div>

On a forum I manage, we have some trouble with incoming emails:

- the townhall send us email hiding the To:, the Cc: and the other fields
- some senders have a moderate spam score
- our settings are changing quite fast, and sometime we miss a category setting in our setup

For those reason, some emails bounce back, and some non-user correspondent are surprised to get an automatic reply from Discourse (they though we were just a regular mailbox).

We would like to redirect all incoming email (that is not marked as obvious spam) and that could not find a proper category on a «uncategorized incoming emails for manual review» category. Some kind of failsafe, or of «else» clause. Is it possible to add `*@forum.mysite.org` as a category email ? Is it possible with a plugin ?

We are using the [Configure direct-delivery incoming email for self-hosted sites with Mail-Receiver](https://meta.discourse.org/t/direct-delivery-incoming-email-for-self-hosted-sites/49487) app, so a method using this tool would be perfect.

Thanks for your help !

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [April 15, 2021, 11:20am UTC](https://meta.discourse.org/t/can-we-redirect-all-unrouted-incoming-emails-to-a-category/186931/2 "2021-04-15T11:20:49Z")

</div>

Maybe check out [IMAP support for group inboxes](https://meta.discourse.org/t/imap-support-for-group-inboxes/160588).

I think what you’re asking would take a somewhat complicated plugin (but I don’t know that code well, so it might be easier than I think).

---

<div class="post-metadata">

**Author:** ![Globulle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/globulle/32/98005_2.png) [@Globulle](https://meta.discourse.org/u/Globulle)\
**Post date:** [October 9, 2021, 5:45pm UTC](https://meta.discourse.org/t/can-we-redirect-all-unrouted-incoming-emails-to-a-category/186931/3 "2021-10-09T17:45:18Z")

</div>

Similar problem here: when a mail is sent to Discourse using CCI field (instead of TO or CC) and the sender receive a BadDestinationAddress email. Is it possible to make Discourse accept such a mail?
