# Non-users can't post by email even with Accept emails from anonymous users with no accounts checked

**URL:** https://meta.discourse.org/t/non-users-cant-post-by-email-even-with-accept-emails-from-anonymous-users-with-no-accounts-checked/39890
**Category:** Bug
**Created:** [20 בפברואר,‏ 2016,‏ 11:08am UTC](https://meta.discourse.org/t/non-users-cant-post-by-email-even-with-accept-emails-from-anonymous-users-with-no-accounts-checked/39890 "2016-02-20T11:08:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![wityr](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wityr](https://meta.discourse.org/u/wityr)
#### Post date: [20 בפברואר,‏ 2016,‏ 11:08am UTC](https://meta.discourse.org/t/non-users-cant-post-by-email-even-with-accept-emails-from-anonymous-users-with-no-accounts-checked/39890/1 "2016-02-20T11:08:35Z")

</div>

I have a category with post by email enabled and with the Accept emails from anonymous users with no accounts box checked, yet when non users try to post by emailing the appropriate address they get an error email in repose, and their message is not posted.

> We’re sorry, but your email message to [“info@ourdomain.ca”] (titled test message) didn’t work.

> Your account does not have the privileges to post new topics in that  
> category. If you believe this is in error, contact a staff member.

Warnings in the logs contain:

> Email can not be processed: can\_create? failed  
> _full email headers blah blah blah_  
> from a non user

This worked fine until about two weeks ago. I don’t know when exactly when it stopped working because we don’t get many non-user posts by email, but after two weeks of nothing I decided to test things and discovered the problem.

---

<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: [20 בפברואר,‏ 2016,‏ 2:37pm UTC](https://meta.discourse.org/t/non-users-cant-post-by-email-even-with-accept-emails-from-anonymous-users-with-no-accounts-checked/39890/2 "2016-02-20T14:37:55Z")

</div>

@zogstrip can you repro this? Are you on latest code? What version are you on?

---

<div class="post-metadata">

### Author: ![wityr](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wityr](https://meta.discourse.org/u/wityr)
#### Post date: [20 בפברואר,‏ 2016,‏ 9:06pm UTC](https://meta.discourse.org/t/non-users-cant-post-by-email-even-with-accept-emails-from-anonymous-users-with-no-accounts-checked/39890/3 "2016-02-20T21:06:52Z")

</div>

On version v1.5.0.beta10 +29. I’ve also just noticed that any of the non-users who do try emailing end up with a staged account in the pending users list.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [22 בפברואר,‏ 2016,‏ 10:09am UTC](https://meta.discourse.org/t/non-users-cant-post-by-email-even-with-accept-emails-from-anonymous-users-with-no-accounts-checked/39890/4 "2016-02-22T10:09:40Z")

</div>

I can’t reproduce but I’m not sure I have the same site settings. Can you tell me which site settings you changed that affect logins/users?

**_EDIT:_** I could reproduce it on **private categories** , like suggested in that topic

> [@Allowing anonymous e-mails for private category prevents e-mails from existing users](https://meta.discourse.org/t/allowing-anonymous-e-mails-for-private-category-prevents-e-mails-from-existing-users/33421):
>
> If I use “Accept emails from anonymous users with no accounts” for a category that only staff has access to it can correctly receive e-mails from anonymous users (they are submitted via the “system” user and a quote tag). I expected that this accepts e-mails from existing users since it does not reduce the security in any way. Unfortunately it does not - instead a rejection e-mail is sent back to the user. My use case - as many others I am trying to use Discourse to replace our ticketing syste…

Is that the same use case?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [22 בפברואר,‏ 2016,‏ 6:58pm UTC](https://meta.discourse.org/t/non-users-cant-post-by-email-even-with-accept-emails-from-anonymous-users-with-no-accounts-checked/39890/5 "2016-02-22T18:58:52Z")

</div>

Just pushed a fix 😉

[https://github.com/discourse/discourse/commit/5415b2666df8e16978b06b386eac0b035918bc02](https://github.com/discourse/discourse/commit/5415b2666df8e16978b06b386eac0b035918bc02)

---

<div class="post-metadata">

### Author: ![wityr](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wityr](https://meta.discourse.org/u/wityr)
#### Post date: [23 בפברואר,‏ 2016,‏ 1:26am UTC](https://meta.discourse.org/t/non-users-cant-post-by-email-even-with-accept-emails-from-anonymous-users-with-no-accounts-checked/39890/6 "2016-02-23T01:26:40Z")

</div>

Yes that was the use case. Just updated and your fix is working. Non-users’ emails are being posted in the correct category, and now with their name rather than by system. Thanks!

---

<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 בפברואר,‏ 2016,‏ 7:30pm UTC](https://meta.discourse.org/t/non-users-cant-post-by-email-even-with-accept-emails-from-anonymous-users-with-no-accounts-checked/39890/7 "2016-02-24T19:30:18Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
