Allow/deny by name?

Hi all,
Is there a way to allow or deny based on name? For instance, I currently
have my site restricted to intranet traffic only, but I need to allow a
remote SMTP server access. Can I do something like
allow smtp.mysmtp.com;
Thanks.