Using RegEx with Rules to compare email addresses
You can use access rules which is built into core drupal. 

Go to "/admin/user/rules" and add a new rule, for example %@domain.com, this will allow anyone to register who has that specific domain.