Category not accepting "anonymous email" from known users

(Michael Downey) #1


  1. Have a “private” category that only has create/reply/see access for members of a specific group. No other permissions.
  2. Enable “anonymous email in” for that specific via a unique working alias to the incoming POP account.
  3. Have a non-staff user that is not a member of the group send an email report in to the category email address from the email address associated with their account.
  4. Send in an email from an account not associated with any known Discourse account.

Expected Behavior:

  • Both #3 and #4 result in new topics in the private category, and the group can begin discussion.

Actual Behavior:

  • The email in #4 works but email in #3 is rejected with the can_create? failed error.
Can't forward an email to a group & preserve the content
Can't forward an email to a group & preserve the content
(Sam Saffron) #2

@zogstrip can you review this?

(Jeff Atwood) #3

Is this still a problem?

(Michael Downey) #4

I’m no longer running a site with incoming email enabled so unfortunately can’t reproduce to say either way.

(Régis Hanol) #5

Pretty sure #3 still isn’t working.

When we receive an email, we first try to associate it to a user, and then we check for permissions. Since the user isn’t part of the group, they can’t post.

The email_in_allow_strangers field on the category only works for staged users.

1 Like

Can confirm #3 still not working. Is the best workaround right now to have emails directed at a group rather than a category? Not my preferred arrangement but I can switch until a patch comes out.

1 Like
(Régis Hanol) #8

I don’t think we can ever support #3 unless we add another setting that opens up any incoming emails?

(Michael Downey) #9

This scenario seems to be replaced these days with the group functionality as a type of workaround, although I could see some use cases that it might still be just as valuable for categories/topics/discussions.

(Michael Stucki) #10

Sounds plausible. Is this a big thing to do?

(Michael Stucki) #11

Like you say, this is just a (bad) workaround. IMO this should be controllable on a per-category level. Clearly a bug that this works only for anonymous but not for known users.

1 Like