User based routing in EXIM WHM
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 tom@gmail.com 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.
-
Hello, You may find the following thread helpful: Routing email to external server using EXIM smarthost config. Thank you. 0
Please sign in to leave a comment.
Comments
1 comment