We have a cluster of 2 Dovecot servers, both on v2.3.13 (89f716dc2),
using dsync to sync the messages between them.
Previously, we used TCPS to sync the messages, but after some
testing, we concluded that syncing over SSH resulted in a lot less
failed syncs, so we started using SSH.
The change has been a success, but I now notice a issue when a email
client immediately moves a messages to a separate folder while
Dovecot is syncing, where the message is seen twice in the folder
(with the exact same headers/content).
For example, I have set a filter in my email client, Thunderbird, to
immediately move all emails coming from this list to a separate
folder. When opening that folder, I do not see one, but two unread
messages, both identical to each other.
When checking the directories on the server, I see this:
mx1:
/var/vmail/example.com/joe/Maildir/.Subdir.Subdir/cur/1652615808.M190190P990486.mx2,S=19089,W=19384:2,S
/var/vmail/example.com/joe/Maildir/.Subdir.Subdir/cur/1652615811.M180050P1376677.mx1,S=19089,W=19384:2,S