I would like to know how to configure sendmail to only send emails to one domain.
I have a development server that might have customer email addresses in the database as the data is copied from the production server from time to time. I would like to make sure that the developement box (Redhat 5.3) does not send any mails externally but will send to my local users. For the sake of argument my domain is example.com and sendmail is currently set to relay mail to our SBS2008 exchange server.
So far I have not been able to find out how to do this.