Email settings
From MoodleDocs
Location: Administration > Server > Email
Allowed and denied email domains
Authentication may be restricted to a particular email domain when using Email-based self-registration so that, for example, only students with an university email can login.