Am 27.08.21 um 15:35 schrieb Effendy Abdullah via Exim-users:
Hi,
How do I route to one Smart Host for certain domain and all other domain route
to another Smart Host. Using WHM/cPanel with Exim.
The answere you seek is in the default config:
# Alternatively, comment out the above router and uncomment this one to
# route all mail to a smarthost instead of sending it directly to the
# intended recipients. If your smarthost requires authentication, change
# 'remote_smtp' to 'remote_msa' and set up the 'client_auth' authenticator
# later in this file. You might need to change the port number in the
# remote_msa transport.
#
begin routers
smarthost:
driver = manualroute
domains = ! +local_domains
condition = ${if eq{"domainname.target"}{${domain}}}
transport = remote_smtp
route_data = smarthost.myisp.net
no_more
...{repeat as often as needed}...
dnslookup:
driver = dnslookup
domains = ! +local_domains
...
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/