Mail routing through a wan and the internet

Is there a switch or a setting that will allow you to tell a Domino server that if a message is going to domain aaa, route it this way, and if going to anywhere else, route it to the internet? We have been requested to keep all internal communications within our WAN, and the rest of the mail can go through the internet. Any ideas on how to do this? TIA