On 31/08/2025 17:02, Gerben Wierda via dovecot wrote:
Will doveadm sync in a cron job give me something resembling HA? Don't
think so. Replicator does. So, read my question not as 'syncing' is
deprecated, but HA-syncing (via replicator) is.
As far as I understand it, replicator sends the message immediately to the
other side as it arrives. A, say, once every 15 minutes cron job running a
new doveadm sync doesn't match that.
So yes, syncing is not deprecated (I wrote that incorrectly). Doesn't
change my situation as replicator is, and I want a true HA solution.
G
Hi Gerben
it's clear that starting from Dovecot 2.4 the Community Edition is not
meant to support a HA scenario. Dovecot Pro does, but it's not aimed at
SoHo as far as I am aware.
Personally I have never had an HA solution (with dovecot Director etc)
since for me it was overkill. I have always used Dovecot with
replication as a Disaster Recovery solution - so a backup server that
could be brought on line manually and that contained almost all the
email history, with exception of limited amount of email that arrived
while the disaster was happening. With replication I probably would have
had a very small window of email that could be lost, but considering my
volumes, expanding that window is not particularly risky.
I have abandoned replication (which if I remember had some unaddressed
issues anyway), and am now doing periodic syncs. I do them every 10
minutes, but I guess it could be done more frequently too providing
there is some locking logic in the cron job to avoid running multiple
syncs (as well as the doveadm sync -l (lock) parameter that someone
pointed out to me too).
I don't believe that you will be able to make a truly HA solution from
Dovecot CE. If I'm wrong, I'd be glad to hear about it from anyone that
has done it. I think you could aim for a Disaster Recovery solution that
could be more automated the more effort is put into it.
John
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org