我在两台服务器上都有邮箱,它们相互连接以进行 dovecot 复制。当邮件到达邮箱时,只有一台服务器上的复制工作正常,但当复制期间第二台服务器上有新邮件时,我收到此错误:
dovecot: dsync-server(<<MAILBOX>>): Warning: Mailbox INBOX doesn't match previous state: Unexpected GUID mismatch for UID=237805: 58703d2e76898b588d7a0000c278a7cb != 89545203226fed6a8a3cde4a98690e96(guid128, orig=89545203226fed6a8a3cde4a98690e96) (dsync must be run again without the state)
结果,我收到了这封邮件的两面复印件,一式两份。
知道原因吗?
我的复制器配置:
service replicator {
process_min_avail = 1
unix_listener replicator-doveadm {
mode = 0660
group = vmail
}
}
service aggregator {
fifo_listener replication-notify-fifo {
user = vmail
}
unix_listener replication-notify {
user = vmail
}
}
service doveadm {
inet_listener {
port = 8999
ssl = yes
}
}
service config {
unix_listener config {
user = vmail
}
}
插件配置文件
...
mail_replica = tcps:HOST_ONE
replication_max_conns = 1
# replication_sync_timeout = 2s
replication_dsync_parameters = -d -N -l 30 -U
...
两台服务器上的配置相同(除了邮件副本为每个主机设置指向另一个主机)