mirfan

Active Member
Nov 24, 2008
27
0
51
We are using Exim on CPANEL server with CENTOS 5.
Problem is that our users are in two different data centers in US and China. And china datacenter users having difficulties for sending emails along with attachments most of the time because of slow connectivity between US and China datacenters.
Can someone please help me for what's the best solution to resolve this issue ? Currently i am thinking to configure seperate SMTP server on china datacenter so chinese users can send email from there rather than email route to US data center. but again problem is that US data center is currently main mail server which hosts all users mailboxes. and i don't want to seperate domain name between two datacenters.
I still think seperate SMTP server on both datacenters can solve email sending issues but how to accomplish this without changing any user email domain e.g. [email protected] or anyohter idea ?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
You could set two MX records where the primary MX for the Chinese users is a Chinese-based server for email, then set the U.S. server as the secondary MX record to fall back to if the primary MX fails (it would simply hold the emails in the queue until the primary MX became reachable).

By changing the MX this way, you wouldn't have to worry about propagation issues, since you'd still have the emails held during the DNS changes for the MX by the U.S. machine.

Unfortunately, you will end up having to configure email accounts on both machines, but you could use an API-based script to handle that during email account creation.
 

mirfan

Active Member
Nov 24, 2008
27
0
51
Thanks for the reply.
Well, emails are still in queue during the time when link down between china and US datacenter. we are managing this to make sure no emails will be lost.
But my main objective is to speed up emails delievery from china data center this get delayed because all emails route from US data center and it holds all users mail boxes.
I am looking to send/recieve emails from both data centers independently to eliminate china to US route.
But still not sure, how to accomplish this without changing user domain from address.
Might be subdomain or mail forwarder or something else ?