I think the issue is with the regex: what you have written will allow
someone@abc.com
but not
someone@mailserver.abc.com
Try modding the regexp to something like
/\@[\w+\.]*abc\.com/
You are also missing escapes for the periods, so my version escapes the @-sign, the period(s) and allows for an arbitrary number of subdomain steps.
I love regex.