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:


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • Topdog Dec 10, 2008 @ 11:17

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

  • Tjilik Aug 9, 2010 @ 10:54

    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 Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum