I need to allow users to register for a Drupal-6 site, but only if their email contains a specific domain. For example, only allow users with whatever.com in their email address to register; a user with the email bob@whatever.com can register for the site, but bob@something.com cannot register for the site.
Is there a module for this? If not, which file would the PHP need to be altered for this?