Load balancing MagicMail

Updated on April 2, 2025
Published on April 2, 2025

About MagicMail

MagicMail is the carrier-grade email platform for ISPs and Telcos. It provides email identity security through secured mailbox access and tools for maintaining IP reputation for uninterrupted email deliveries.

Key benefits of load balancing

Here are a few key benefits:

  • Ensures the application is always available
  • Provides stable, optimal performance
  • Ability to isolate servers which reduces risk when performing upgrades/maintenance
  • Scalability

How to load balance MagicMail

The load balancer can be deployed in four fundamental ways: Layer 4 DR mode, Layer 4 NAT mode, Layer 4 SNAT mode, and Layer 7 SNAT mode.

For MagicMail, Layer 4 NAT mode is recommended.

Layer 4 NAT mode  

Layer 4 NAT mode is a high performance solution, although not as fast as layer 4 DR mode. This is because real server responses must flow back to the client via the load balancer rather than directly as with DR mode.

The load balancer translates all requests from the Virtual Service to the Real Servers. NAT mode can be deployed in two-arm (using 2 interfaces), or one-arm (using 1 interface). If you want Real Servers to be accessible on their own IP address for non-load balanced services, e.g. RDP, you will need to setup individual SNAT and DNAT firewall script rules for each Real Server or add additional VIPs for this.  Port translation is possible with Layer 4 NAT mode, e.g. VIP:80 → RIP:8080 is supported. NAT mode is transparent i.e. the Real Servers will see the source IP address of the client.