# (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:** 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

<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?
