I would like to automatically assign users to a certain role if their email domain matches.
For example:
Users with email @test.com are automatically assigned the role companytest.com.
Is there any option on how to do this? Or a plugin which allows this?