# Email with correct incoming email address in bcc is being rejected

**URL:** https://meta.discourse.org/t/email-with-correct-incoming-email-address-in-bcc-is-being-rejected/131003
**Category:** Feature
**Created:** [15 באוקטובר,‏ 2019,‏ 2:26am UTC](https://meta.discourse.org/t/email-with-correct-incoming-email-address-in-bcc-is-being-rejected/131003 "2019-10-15T02:26:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![k4rtik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/k4rtik/32/119508_2.png) [@k4rtik](https://meta.discourse.org/u/k4rtik)
#### Post date: [15 באוקטובר,‏ 2019,‏ 2:26am UTC](https://meta.discourse.org/t/email-with-correct-incoming-email-address-in-bcc-is-being-rejected/131003/1 "2019-10-15T02:26:37Z")

</div>

At [Do we still want to reject CC or Bcc emails in?](https://meta.discourse.org/t/do-we-still-want-to-reject-cc-or-bcc-emails-in/25985/8), it says:

> [@Do we still want to reject CC or BCC emails in?](https://meta.discourse.org/t/do-we-still-want-to-reject-cc-or-bcc-emails-in/25985/8):
>
> When an email is received, we look for email addresses in all the destinations fields ( `To` , `Cc` and `Bcc` ). If **at least one** matches a reply address, a group or a category incoming email address, then the mail will be processed.

When I send an email To someone (unrelated to my Discourse instance) and BCC a category incoming email address on my instance, I see the following error:

> ### Incoming Email Details
> 
> Error
> 
> Email::Receiver::BadDestinationAddress
> 
> Happens when none of the email addresses in To/Cc/Bcc fields matched a configured incoming email address.

The rejection email that is sent only includes the address used in the To field:

> We’re sorry, but your email message to [“[xyz@gmail.com](mailto:xyz@gmail.com)”] (titled Test event email) didn’t work.
> 
> None of the destination email addresses are recognized, or the Message-ID header in the email has been modified. Please make sure that you are sending to the correct email address provided by staff.

Is this expected behavior? If so, how do I use an incoming email address for a use case where I am sending an email to someone or some list and also want to create a topic in a category on my Discourse instance?

PS: I tested with Cc field and that works. So perhaps, the logic to process emails is only looking at message headers that do not include the Bcc field (for obvious reasons). It will be great if we could use Bcc, however, to prevent people from replying all to Discourse instance (if we do not want them to by bcc’ing).

---

<div class="post-metadata">

### Author: ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)
#### Post date: [24 באוקטובר,‏ 2019,‏ 11:32am UTC](https://meta.discourse.org/t/email-with-correct-incoming-email-address-in-bcc-is-being-rejected/131003/2 "2019-10-24T11:32:06Z")

</div>

I think that by convention for BCC emails your address will be on the SMTP envelope, but not in the actual message headers, even though the standards do define a BCC header. The error message should probably be changed to just say To/Cc.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [24 באוקטובר,‏ 2019,‏ 5:43pm UTC](https://meta.discourse.org/t/email-with-correct-incoming-email-address-in-bcc-is-being-rejected/131003/3 "2019-10-24T17:43:19Z")

</div>

Sure can you make that copy change please @tshenry

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [24 באוקטובר,‏ 2019,‏ 6:17pm UTC](https://meta.discourse.org/t/email-with-correct-incoming-email-address-in-bcc-is-being-rejected/131003/5 "2019-10-24T18:17:32Z")

</div>

Done!

[https://github.com/discourse/discourse/commit/5d1b34e1b93469333100a78851614caf2d3d59c8](https://github.com/discourse/discourse/commit/5d1b34e1b93469333100a78851614caf2d3d59c8)

---

<div class="post-metadata">

### Author: ![k4rtik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/k4rtik/32/119508_2.png) [@k4rtik](https://meta.discourse.org/u/k4rtik)
#### Post date: [8 בנובמבר,‏ 2019,‏ 8:37pm UTC](https://meta.discourse.org/t/email-with-correct-incoming-email-address-in-bcc-is-being-rejected/131003/6 "2019-11-08T20:37:12Z")

</div>

Thanks for getting the copy fixed. But I’d still prefer to have the BCC field supported. Are there any plans to bring it back? (I also left some code investigation notes [at the original topic earlier](https://meta.discourse.org/t/do-we-still-want-to-reject-cc-or-bcc-emails-in/25985/13).)
