well here is an explanation step-by-step, im sure u can write the code
$email = "you@yourdomain.com";
$position = strpos($email,"@"); // gives location of @
u have the string which is $email and the position $position, use the function to extract "yourdomain.com" from "you@yourdomain.com". using substr()
http://ca.php.net/manual/en/function.substr.php
now u have the domain, check using if-statement to see if it matches the domains allowed
try it, if u get errors then get back wiht ure error and code
reg
kevin