cPanel Exim route email to another server for single domain

Recently we migrated our site to a new server and updated the DNS. But as you all know it take some for time for it to propagate. And during that time the emails may still be sent to old server. So I added the below lines to exim to configuration on our old server. It will automatically route all the the emails sent to servertechsupport.com to our new server IP.

[plain]
domainlist sts_domains = servertechsuppot.com
[/plain]

In the routers section add the below lines

[plain]
sts:
driver = manualroute
domains = +sts_domains
transport = remote_smtp
route_list = +sts_domains NEW_SERVER_IP
[/plain]

Now even if the mails were sent to old server. It was automatically sent to new server.

Exim Mail Transfer Agent

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *



Deprecated: Implicit conversion from float 6.3 to int loses precision in /home/blogserv/public_html/wp-content/plugins/captcha/captcha.php on line 850
9 × = sixty three