I wrote a small patch for Mastodon that got accepted yesterday. It lets you set up an email domain whitelist for your instance. For example, if your school wants to set up an instance just for students, they can do it by limiting signups to addresses at `whatever.edu`.
@pete This is fantastic, this is exactly what I needed. Thank you!