Topic: Advice for running a master-master iRedMail cluster
Hello everyone!
I love iRedMail, and have been using it since April last year to host my personal e-mail. I *could* set up the whole thing myself from scratch, but iRedMail saves me an immense amount of time and energy! My single-node has been running fine, but my physical server setup features two machines, and I want to increase my reliability.
I'm interested in setting up a full high-availability cluster of two iRedMail instances, on Debian Wheezy VMs, which will operate in a master-master configuration. I wish to use LDAP as the authentication backend, ruling out all of the guides for this I've seen so far. This will be behind a Linux IPVS load balancer setup so that all connections on as many protocols as possible are distributed evenly between the two VMs, and a failed VM is automatically taken out of rotation (should I need to take down a physical node for maintenance, or due to a hardware or software failure of either node).
I've identified the following elements which need to be shared, and my solutions in [square brackets] for those that I already have:
vmail directories [use a shared NFS mountpoint containing Maildirs]
MySQL databases [use a separate MySQL cluster with a single load-balanced connection IP]
LDAP databases []
Dovecot configuration []
Everything else should work on either VM on its own and not need any explicit synchronization as far as I can tell.
I've been working first on LDAP syncrepl master-master setups, but I can't seem to get the standard LDAP HA guides to work with the iRedMail LDAP configuration. I haven't tried anything with Dovecot yet since LDAP is my first priority. I have a plan of attack to implement the first two with the solutions provided, but I have not actually begun yet.
Has anyone set something like this up, and are able to offer any advice? Is there anything I've missed?
Once I get this working I plan to post an in-depth guide on how I did it, so hopefully I can make it work!
==== Required information ====
- iRedMail version: latest
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian Wheezy amd64
- Related log if you're reporting an issue: N/A
====
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.