<div dir="ltr">It seems that  we got 2 solutions.<div><br></div><div>1. use DNS MX record and dsync plugin of dovecot. No shared storage.</div><div>2. use VIP and shared storage.</div><div><br></div><div>I'll try both of them, thank you guys.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 11, 2019 at 8:45 PM Gerald Galster via dovecot <<a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> Am 11.04.2019 um 13:45 schrieb Patrick Westenberg via dovecot <<a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a>>:<br>
> <br>
> Gerald Galster via dovecot schrieb:<br>
> <br>
>> <a href="http://mail1.yourdomain.com" rel="noreferrer" target="_blank">mail1.yourdomain.com</a> <<a href="http://mail1.yourdomain.com" rel="noreferrer" target="_blank">http://mail1.yourdomain.com</a>> IN A 192.168.10.1<br>
>> <a href="http://mail2.yourdomain.com" rel="noreferrer" target="_blank">mail2.yourdomain.com</a> <<a href="http://mail2.yourdomain.com" rel="noreferrer" target="_blank">http://mail2.yourdomain.com</a>> IN A 192.168.20.1<br>
>> <br>
>> <a href="http://mail.yourdomain.com" rel="noreferrer" target="_blank">mail.yourdomain.com</a> <<a href="http://mail.yourdomain.com" rel="noreferrer" target="_blank">http://mail.yourdomain.com</a>>  IN A 192.168.10.1<br>
>> <a href="http://mail.yourdomain.com" rel="noreferrer" target="_blank">mail.yourdomain.com</a> <<a href="http://mail.yourdomain.com" rel="noreferrer" target="_blank">http://mail.yourdomain.com</a>>  IN A 192.168.20.1<br>
>> <br>
>> <br>
>> mail1/mail2 is for direct connection (MTAs)<br>
>> <br>
>> Your users (outlook, thunderbird, ...) connect to <a href="http://mail.yourdomain.com" rel="noreferrer" target="_blank">mail.yourdomain.com</a><br>
>> <<a href="http://mail.yourdomain.com" rel="noreferrer" target="_blank">http://mail.yourdomain.com</a>> which returns the two ip addresses.<br>
>> <br>
>> In this scenario MUA just connects to <a href="http://mail.yourdomain.com" rel="noreferrer" target="_blank">mail.yourdomain.com</a><br>
>> <<a href="http://mail.yourdomain.com" rel="noreferrer" target="_blank">http://mail.yourdomain.com</a>> and randomly uses one of the two ips. You<br>
>> can't control which one, but this gives you active/active loadbalancing.<br>
>> In case one server is down the MUA just uses the other ip.<br>
> <br>
> Are you sure that this is working?<br>
<br>
<br>
yes, I'm running a two node dsync cluster in production for a few years without issues.<br>
The system was even working during a whole datacenter outage because the nodes reside<br>
in different, distant locations. I would'nt use a filesystem like ceph with distant<br>
locations due to latency issues. dsync replication is asynchronous, so there is no problem.<br>
<br>
Most cluster systems that use drbd, ceph, keepalived, pacemaker, whatever are operated<br>
within a single datacenter or datacenter park. If the datacenter goes down, your<br>
cluster is not reachable anymore. This is a rare event but within 10-15 years it happens<br>
to a lot of datacenters.<br>
<br>
Best regards<br>
Gerald<br>
<br>
<br>
</blockquote></div>