Email restriction for registration (Domain whitelist)

Hello there,

We deployed a mastodon instance for university students. How can we restrict the registration process for a desired email domain (… so that only our university students can register?

I can see that i have the option to blacklist email domains on both admin panel and toothctl but coulnd’t find a way of whitelisting a specific domain.

1 Like


You can configure email whitelist in .env.production.

# Only allow registrations with the following e-mail domains||etc