HaProxy/TProxy Load Balancing
I have been tasked with setting up load balancing for mail servers using HaProxy and TProxy (as well as keepalived) in a RHEL 7 environment. There seems to be limited documentation for this. Any suggestions on where to start?
Responses
Are you thinking about the MTA-side (SMTP servers like Sendmail, Postfix etc.), mailbox-service side (IMAP/POP servers) or both?
For whichever role, the load balancing of the network connections is probably the easiest part. Your first problem is setting up the shared mail spool and/or mailbox storage which is concurrently accessible from multiple mail servers and has enough I/O performance to warrant having multiple mail servers working at it. Once you have the storage solution figured out and have at least two servers working with it, you add the load balancing layer in front of them to make multiple servers seem like just one from the users' viewpoint.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
