Topic: Restrict email addresses

I mentioned this in passing before, but now I'm actually in the process of setting up my new forum. Is there a way to limit email addresses just to one domain, so that every registration has to have an address of @xyz.tld (or even @*xyz.tld)? I figure it must be a change to register.php, but I'm not up to the task of being able to figure it out.