Inbound Mail or MX Load Balancing

Inbound Mail or MX Load Balancing

Why load balance inbound emails?

if we have thousands of emails to receive per hour, one single server may get exhausted by queuing and processing all these emails.

by deploying multiple MX servers we can evenly distribute the inbound email load to all of them. MX servers at the front, are responsible for email protection also, the email filtering process is time-consuming.

If there is a heavy load like spam attacks, mail delivery will delay, and email missing can occur, to overcome these situations, we must load balance the inbound flow to the other servers for quick processing and smoother delivery.

Design1, Load balancing with MX Record

Email load balance with DNS round-robin

in the above diagram, we have three MX servers mailx1, mailx2, and mailx3. For DNS round-robin to work, we have to declare all of them with the same MX priority. if MX records have the same priority values, DNS will deliver the server IPs in a round-robin fashion. whenever any sender tries to find our mail server, it will ask our DNS server, and the DNS will answer with all these 3 servers in a round-robin fashion, later we will see this in practice.

Let’s say these servers’ IPs are,,, and and we want to receive emails for the domain We have to setup the DNS A and MX record’s this way:

mailx1             IN           A     
mailx2             IN           A     
mailx3             IN           A     

@             IN           MX         10 
@             IN           MX         10 
@             IN           MX         10 

To learn More about DNS Round-Robin Please watch This video

To learn DNS Round-Robin Setup on Godaddy DNS Please watch this video

Configure Email Routing

After setting up the DNS Part, we need to configure the Email routing to deliver the inbound emails to the respective mailbox server because all user’s inboxes are in the mailbox server. In the 1st diagram, we received mail for a single domain. all the MX servers routed mail to the backend mailbox server.

Email Routing for multiple domains

in this 2nd diagram, we are receiving mail for multiple domains, now all the MX servers must make a routing decision based on the recipient’s domain name or recipient email address. Here, we can see all incoming servers are delivering emails based on the recipient domain to a different server.

Later I will show you how to configure the email routing on the servers.

Thanks !!


Get Special Free Tips, Tricks, Tutorials, and Case Studies, that I Only Share with Email Subscribers.


We respect your privacy. Unsubscribe at any time.

Related Articles


Leave a Reply

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