Exim speed up mails send/recieve mechanism

exim

We are using Exim on CPANEL server with CENTOS 5. We have only one mail server hosted on US databasecenter contains all user mailboxes.

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. Because China users have to connect to US DC SMTP server and because of slow connectivity issues users suffers a lot.

At this point, I am trying to achieve functionality like China users will connect to China DC for sending emails I am looking to configure secondary SMTP server on china DC. China SMTP server will then send relay emails to main SMTP server in US DC which will responsible to send emails finally.

Please let me know this will improve email sending from China? How to accomplish this or is there any better solution to resolve this issue?

Currently main mail server which hosts all users mailboxes and I don't want to separate domain name between two datacenters. I still think separate SMTP server on both datacenters can solve email sending issues but how to accomplish this without changing any user email domain e.g. abc@example.com or any other idea ? enter image description here

Best Answer

I did this the following way: I have setup a machine in London and China. I have setup mirror GlusterFS for /home were accounts are using Maildir (1 file per email) and it's configured with standard Virtualmin. This way, each email message is replicating from London to China upon delivery or deletion. LDAP is also replicated between sites (the user database). With GeoIP DNS, if I am in China, I download or send to my mail from China server and vice-versa by having the same settings. So this is a working way of doing this for 10.000+ mailboxes. This is not that difficult to setup and works well. With your configuration, you could setup a plain postfix server with virtualmin, which gives you all sort of virus and anti-spam scanning, and then you simply relay all mail to US. The authentication you can make yourself via https query to your CPANEL server, but I never did something like this.