The discussion highlights a bug where the Allowed Email Domains setting blocks inbound emails from anonymous users, even when the Accept emails from anonymous users with no accounts feature is enabled on a category. Stephen explains that this caused a client’s support inbox to silently drop external emails, as staged users were affected by the domain restriction despite not being full users. Supermathie suggests a warning in the admin panel for rejected emails and proposes a clearer warning message. Pmusaraj notes that the original rationale for this behavior was to prevent spam via staged accounts, referencing a related meta-discourse topic. The group agrees that the current wording is misleading and proposes rewording the setting to clarify that it applies to both regular and staged user accounts.
There’s a conflict between the Allowed Email Domains setting and the staged users created by the per-category Accept emails from anonymous users with no accounts.
Just troubleshot this on a clients’ site. They enabled the setting to ensure that the only registered users accessing their Discourse site were employees with corporate email accounts.
A few days later they realize their support inbox hasn’t received any new messages, but hadn’t connected the dots between the two.
That setting also affects the creation of staged users when inbound email from anonymous users is enabled on a category. I can’t be sure if this is a regression, but it definitely feels like a valid use case.
@Stephen, could you please share the steps to reproduce the issue? It is not clear to me which settings are on and what is happening compared to the expected behavior. Let me know and I will check it out.
If Allowed Email Domains has a domain in it (discourse.org for example) then external users on other email services can’t send email to categories creating staged users in the normal way.
A pipe-delimited list of email domains that users MUST register accounts with. Subdomains are automatically handled for the specified domains. Wildcard symbols * and ? are not supported. WARNING: Users with email domains other than those listed will not be allowed!
to:
A list of the email domains allowed when creating user accounts. When set, any email with a domain not listed in this list will not be valid for account creation (including staged user accounts). Subdomains are automatically handled for the specified domains. Wildcard symbols * and ? are not supported.