User based routing in EXIM WHM

Azim

Well-Known Member
Oct 16, 2015
67
0
6
India
cPanel Access Level
Website Owner
Hello Everyone,

I have done a routing in my WHM exim configuration where it says, If a destination address is Gmail.com then it will deliver the email from a different transport.However is it possible to do this on a user based. Like if a destination address is [email protected] then it will go from the particular transport. Please find below configuration done by me and suggest me how can I do that. Thank you.

Routerstart :

smarthost_gmail:
driver = manualroute
domains = !+local_domains
senders = !*@server.domain.com
# Exclude null sender messages from relaying via the smarthost
condition = ${if or {{!eq{$sender_address}{}} {!eq{$sender_host_address}{}}}}
transport = remote_smtp_smart_gmail
route_list = gmail.com mail.mailgun.com

Transportstart :

remote_smtp_smart_gmail:
driver = smtp
port = 25
interface = <; 10.10.10.10

Please suggest.