Email is not allowed

AI-generated summary

The discussion, titled “Email is not allowed,” addresses an issue where users cannot change their email addresses, receiving an error message despite using a valid Gmail address. hellekin reports the problem occurs both via the web interface and API, using Discourse v2.0.0.beta10 +279. After investigation, hellekin discovers the email was listed in the ‘screened_emails’ database, which blocks certain addresses. Removing the email from this list resolves the issue. Julian_Somoza asks how to access the ‘screened_emails’ table, and mikechristopher clarifies it can be managed via the admin panel under Logs > Screened Emails. Julian_Somoza confirms this solution worked for them.

Hello,

I’m trying to change a user’s email but it fails. Here’s what I tried…

  • through the Web at /users/foo/preferences/email where I get “Email is not allowed.” on a Gmail address (although Gmail is not in the list of forbidden domains). I test with an admin account and impersonating the user.
  • through the API with:
    curl -v -X PUT "https://#{api_host}/users/#{username}/preferences/email" -H "Content-Type: multipart/form-data;" -F "api_key=#{client.api_key}" -F "api_username=#{client.api_username}" -F email=#{new_email}

I’m using v2.0.0.beta10 +279. This used to work, or am I doing something wrong?

I found out the email was in the ‘screened_emails’. I removed it from there and that solved the issue. Thank you very much!

And what’s screened_emails? How to access this table? via rails c?

@Julian_Somoza
In Your Admin area within the forum

Logs > Screened Emails

/admin/logs/screened_emails

I see that! And the emails was there… Thanks a lot!