Am 11.04.2019 um 11:48 schrieb luckydog xf luckydogxf@gmail.com:
As your statement, nothing speical is needed to do except setting up DNS MX records, right?
MX records are for incoming MAIL:
yourdomain.com http://yourdomain.com/ IN MX 100 mail1.yourdomain.com http://server1.yourdomain.com/ yourdomain.com http://yourdomain.com/ IN MX 100 mail2.yourdomain.com http://mail2.yourdomain.com/
-> both priority 100 = 50/50 load balancing (globally, not when checked on a single resolver!)
Then you need A Records (AAAA for ipv6)
mail1.yourdomain.com IN A 192.168.10.1 mail2.yourdomain.com http://mail2.yourdomain.com/ IN A 192.168.20.1
mail.yourdomain.com IN A 192.168.10.1 mail.yourdomain.com IN A 192.168.20.1
mail1/mail2 is for direct connection (MTAs)
Your users (outlook, thunderbird, ...) connect to mail.yourdomain.com http://mail.yourdomain.com/ which returns the two ip addresses.
In this scenario MUA just connects to mail.yourdomain.com http://mail.yourdomain.com/ and randomly uses one of the two ips. You can't control which one, but this gives you active/active loadbalancing. In case one server is down the MUA just uses the other ip. dsync replicates bi-directionally so that both servers are up-to-date.
You don't need shared storage, every server is a copy of the other. If you want to use shared storage, then dsync is not for you because there is nothing to sync at that stage.
I would use shared storage only if you need to have more than two servers. The above setup has no locking problems and is performant due to local filesystems. It depends on how many users you have and how much storage you need. You could buy two 2HE servers with 24 2.5" disks each (up to 96 with 4 HE), which may be sufficient for your needs.
User's mail store is running on shared storage, basically user's MUA connects to primary MX , the backup one is used once Primary is down.
If you're not using Maildir beware of locking issues with concurrent access. It could crash indices.
It's a native HA of email system? I'll test those solution out.
Yes, it works well with small setups. For big setups you'd typically use dovecot director, shared storage, object storage ... but you need more servers and it is way more complex and expensive.
Best regards Gerald