# Email-in : accept mail with error Email::Receiver::BadDestinationAddress and put it in a «to be sorted» category

**URL:** <https://meta.discourse.org/t/email-in-accept-mail-with-error-email-baddestinationaddress-and-put-it-in-a-to-be-sorted-category/194688>\
**Category:** Feature\
**Created:** [June 22, 2021, 2:57pm UTC](https://meta.discourse.org/t/email-in-accept-mail-with-error-email-baddestinationaddress-and-put-it-in-a-to-be-sorted-category/194688 "2021-06-22T14:57:42Z")\
**Posts on this page:** 1\
**Page:** 1

## AI-generated summary

[oca](/t/-/194688/1) reports issues with the email-in feature, where Discourse rejects emails with the error `Email::Receiver::BadDestinationAddress`. This occurs when senders use mailing lists that omit the `To:` field, or due to obsolete addresses and failed settings. The user proposes a solution to redirect all rejected emails, or those with specific errors, into a special "to be sorted" category for admins and moderators to review. They ask if this functionality exists, whether it should be implemented in core or as a plugin, or if it requires changes to the mail-receiver container.

<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:** [June 22, 2021, 2:57pm UTC](https://meta.discourse.org/t/email-in-accept-mail-with-error-email-baddestinationaddress-and-put-it-in-a-to-be-sorted-category/194688/1 "2021-06-22T14:57:42Z")

</div>

I’ve got some trouble with the email in function.  
Some of our correspondents send us email via a mailing list that does not include the To: field.  
So when the email arrives in the mailbox, Discourse affect them the Email::Receiver::BadDestinationAddress and reject it.

There is also some other problems with obsolete addresses, some failed settings from our team, etc.

A solution to all those problem would be to be able to redirect all «rejected emails», or all «rejected email with these specific errors» into a special category that the admins and moderators would sort out.

Is this something we can already do ? (I can’t find how).  
Is this something core material, or plugin material ?

Or maybe something to be added in the mail-receiver container ?

Thx for your help
