# Email-in Discourse::InvalidAccess \[min\_topic\_title\_length\]

**URL:** https://meta.discourse.org/t/email-in-discourse-invalidaccess-min-topic-title-length/289654
**Category:** Support
**Created:** [December 23, 2023, 9:12pm UTC](https://meta.discourse.org/t/email-in-discourse-invalidaccess-min-topic-title-length/289654 "2023-12-23T21:12:39Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [December 23, 2023, 9:12pm UTC](https://meta.discourse.org/t/email-in-discourse-invalidaccess-min-topic-title-length/289654/1 "2023-12-23T21:12:39Z")

</div>

When testing email-in to a category, I get `Discourse::InvalidAccess` in the rejected emails tab.

The category is set to receive emails from any address.  
The security of the category does not include `everyone`, but this is on purpose.

Is that the cause of the error?

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [December 23, 2023, 11:42pm UTC](https://meta.discourse.org/t/email-in-discourse-invalidaccess-min-topic-title-length/289654/2 "2023-12-23T23:42:53Z")

</div>

@anon36555649 has some recent XP with reply/post by email.

---

<div class="post-metadata">

### Author: ![anon36555649](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@anon36555649](https://meta.discourse.org/u/anon36555649)
#### Post date: [December 24, 2023, 2:21am UTC](https://meta.discourse.org/t/email-in-discourse-invalidaccess-min-topic-title-length/289654/3 "2023-12-24T02:21:28Z")

</div>

Uh is that with discoursemail or different server system?

There will be an error if you are trying to reply to e-mail with different address than what notification mail was sent to.

If you are trying to start a new topic there may be some other problem.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [December 24, 2023, 2:30am UTC](https://meta.discourse.org/t/email-in-discourse-invalidaccess-min-topic-title-length/289654/4 "2023-12-24T02:30:52Z")

</div>

Yes this is supposed to create a new topic…

---

<div class="post-metadata">

### Author: ![anon36555649](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@anon36555649](https://meta.discourse.org/u/anon36555649)
#### Post date: [December 24, 2023, 2:38am UTC](https://meta.discourse.org/t/email-in-discourse-invalidaccess-min-topic-title-length/289654/5 "2023-12-24T02:38:53Z")

</div>

That is supposed to work regardless of if security of category is not open to everyone, e-mails will create a new topic post.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [December 24, 2023, 2:40am UTC](https://meta.discourse.org/t/email-in-discourse-invalidaccess-min-topic-title-length/289654/6 "2023-12-24T02:40:26Z")

</div>

Changing `min_topic_title_length` solved the issue: the default is 15 characters, but incoming emails had shorter subject lines.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [December 24, 2023, 2:43am UTC](https://meta.discourse.org/t/email-in-discourse-invalidaccess-min-topic-title-length/289654/7 "2023-12-24T02:43:13Z")

</div>

It would be useful to test and reproduce this issue to verify there is no bug… I’m going to reset the setting and retry… Duh… The default was 15 characters, not 10. (Edited solution above.)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [January 23, 2024, 2:43am UTC](https://meta.discourse.org/t/email-in-discourse-invalidaccess-min-topic-title-length/289654/8 "2024-01-23T02:43:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
