I never used exim. My faviorate MTA is postfix. But this time I needed to configure exim MTA (mail transfer agent used in Unix-like operating systems) to router all mails using a smarthost called mta3.somewhere.com
Open exim configuration file i.e. begin routers section and add or modify it as follows:
smarthost:
driver = manualroute
domains = *
transport = remote_smtp
route_data = "mta3.somewhere.com"
Restart exim to take effect.
Check out following sites for more more information:
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins

- My 10 UNIX Command Line Mistakes
- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
Facebook it - Tweet it - Print it -
We're here to help you make the most of sysadmin work. So, subscribe!

{ 2 comments… read them below or add one }
the domains should be domains = ! +local_domains otherwise mail for the local machine could be sent out to the smarthost then back.
Dear friends,
I am new with EXIM.
Do you know how to configure EXIM to route mails to another SMTP address for specific domain destination?
Example:
The primary EXIM domain is @abc.com,
The EXIM should route all mails to host server01.abc.com that email destination’s domain with @server01.abc.com
Do you know how to accomplish it with EXIM?
note: the domain @server01.abc.com is not registered in DNS
Thank you very much
Tjilik@gmail.com