≡ Menu

Exim MTA: How do I route or relaying via a smarthost?

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:

Share this on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:



{ 2 comments… add one }
  • Topdog December 10, 2008, 11:17 am

    the domains should be domains = ! +local_domains otherwise mail for the local machine could be sent out to the smarthost then back.

  • Tjilik August 9, 2010, 10:54 am

    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

Leave a Comment