# Incoming mail is rejected if in-reply-to a post in a non-accessible topic even if sent to a group inbox

**URL:** <https://meta.discourse.org/t/incoming-mail-is-rejected-if-in-reply-to-a-post-in-a-non-accessible-topic-even-if-sent-to-a-group-inbox/49711>\
**Category:** Bug\
**Created:** [Setembro 4, 2016, 4:23pm UTC](https://meta.discourse.org/t/incoming-mail-is-rejected-if-in-reply-to-a-post-in-a-non-accessible-topic-even-if-sent-to-a-group-inbox/49711 "2016-09-04T16:23:43Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [Setembro 4, 2016, 4:23pm UTC](https://meta.discourse.org/t/incoming-mail-is-rejected-if-in-reply-to-a-post-in-a-non-accessible-topic-even-if-sent-to-a-group-inbox/49711/1 "2016-09-04T16:23:43Z")

</div>

[As recommended](https://meta.discourse.org/t/mysteriously-rejected-mails/49544/4) by @mpalmer, here’s a bug report for a phenomenon that [caused some confusion for me](https://meta.discourse.org/t/mysteriously-rejected-mails/49544):

**How to reproduce:**

- Produce a messaging topic T that is inaccessible to user A, but deliver a mail from that topic to this user without Discourse knowing, e.g. by replying to the topic via mail and CCing a mailing list containing user A. (See [here](https://meta.discourse.org/t/mysteriously-rejected-mails/49544/5) for a description of a real-world occurrence of this.)
- As user A, reply to this message, addressing it **to** the group inbox address of group G. Use a mail client that adds an `In-Reply-To` header to do this.

**Expected behavior:**

Discourse creates a new message between group G and user A. (It may try to post a reply in topic T instead because it sees the `In-Reply-To` header, but falls back to the new message because user A lacks permissions for a reply.)

**Actual behavior:**

Discourse sees the `In-Reply-To` header and tries to post a reply from user A in topic T. Because A lacks permissions to do so, Discourse sends him an email explaining that the topic was probably closed or deleted, and does not deliver that message.

---

_[View the full topic](https://meta.discourse.org/t/incoming-mail-is-rejected-if-in-reply-to-a-post-in-a-non-accessible-topic-even-if-sent-to-a-group-inbox/49711)._
