I currently have all emails from Exim being forwarded to an outbound STMP server on our network. Here is a section of my Exim config that is sending mail out:
send_to_gateway:
driver = manualroute
transport = remote_smtp
route_list = * outbound-stmp.domain.com
This works great for emails that are sent out to external addresses from our web server. Where it doesn't work is when cron jobs send an email to the local root account. These local emails are being sent to our outbound server and bounced because they can't be sent to something like "root@localhost".
Is it possible through Exim to send emails destined for local accounts to stay on the local machine, and for any emails that are not local to have them go through the relay?