大网数据广告活动
服务器运维问答

What happens with Dovecot dsync replication if the other server is unavailable?

· 52CE 我爱测

I'm looking at setting up another mailserver at one of our other offices using Postfix and Dovecot. We have a third party spam filter that can relay incoming mail to two servers using SMTP, and if one of the servers is unavailabl…

问题原文

原帖链接 · Gav A · CC BY-SA 3.0

I'm looking at setting up another mailserver at one of our other offices using Postfix and Dovecot. We have a third party spam filter that can relay incoming mail to two servers using SMTP, and if one of the servers is unavailable it will queue the mail until it's back online.

I was wondering if something similar happens when using dsync to synchronise two Dovecot instances. I've not been able to find a definitive answer online.

If I set up master/master relication with dsync I understand that changes a user makes with their IMAP client on one server (A) will then be replicated over to the other server (B). But if B goes offline and the user carries on making changes on A, will those changes automatically be replicated to B when it come back online? Or will A and B then be out of sync and require some sort of manual intervention?

已采纳解答

原帖链接 · Steve Shipway · CC BY-SA 3.0

dsync is 'idempotent' and will synchronise from whatever state you are currently in; there is no queue of pending changes as there is with something like MySQL replication.

This means that, when server B comes back up, the next time a dsync is triggered, you will end up with both servers back in sync. No manual intervention is required, and they will get back into sync even if all the mails filesystem on B was wiped (though it might take a bit of time to achieve this).

You would probably want to have users normally access only via server A, and in the event of A failing and your proxy redirecting them to B, remove A from the proxy pool until your dsync has completed and A is once again in sync.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。