Using the Mailtraq Cluster Gateway to load share a domain
This article assumes you have a Mailtraq already setup, and now wish to implement clustering to share the load across multiple machines.
The first stage will be to insert the Cluster Gateway into the mail flow. Then we will add another machine to act as the second mail server, and share the load.
In this example we will assume the existing mail server has an IP address of 192.168.1.10
Installing the Cluster Gateway
- First renumber the existing mail server to 192.168.1.11 (the other mail servers will later be given IP addresses of 192.168.1.12, 13, etc)
- Add a new machine to the network, give it IP address of 192.168.1.10, and install the Cluster Gateway software on it.
- Configure the Cluster Gateway to listen on 0.0.0.0 and with a Forward Host of the IP of 192.168.1.11
- Start the Cluster Gateway service
Email should now be routing via the Cluster Gateway to the original Mailtraq. (You can verify this is happening as the Cluster Gateway will be adding its own Received header to mail.)
Installing another Mail server
- Stop the Cluster Gateway to prevent mail entering the system whilst you are manipulating it.
- Now copy the existing Mailtraq installation from the existing machine onto a second machine. Follow the instructions at www.mailtraq.com/moving and ensure that each machine is running with a different Installation ID
Give the new machine an IP address of 192.168.1.12
- Now delete half the users from the Mailtraq on the first machine, and the other half from the second machine.
- On the Cluster Gateway, add a new Forward Host for the IP address of the new machine – 192.168.1.12
- Restart the Cluster Gateway service