

This guarantees that everything will be synchronized, but it's unnecessarily slow for incremental synchronization.įast synchronization (default) first attempts to find mailboxes that have changed, and synchronize only those. There are also three different synchronization algorithms:įull synchronization (-f parameter) scans through all the messages in all the mailboxes. Thus, one-way sync begins to quickly diverge from the source mailbox once changes start to occur on either side one-way sync should therefore normally only be used within a short period of time after a doveadm backup or doveadm sync command was used to synchronize the mailboxes. If both source and destination have UID 6, but the messages are different, the headers don't match and both the messages are kept in the destination but they're given new UIDs 7 and 8 just to be sure any client didn't get confused about what UID 11 actually was. UID 6 is not seen in destination so it's copied. In this example, UID 1 is kept removed (in destination) because UID 1.5 have identical Date+Message-ID headers. Subsequently, UID 6 is delivered to the source mailbox and UID 1 is expunged from the destination mailbox. Only after the first mismatch will changes begin.Įxample: Source mailbox has messages UID 1.5 source mailbox is sync'd using doveadm backup to the destination. As long as the source and destination side has matching UIDGUID mapping, those emails are assumed to be synced correctly. It fetches the message's GUID (Global UID), which is used to identify any conflicting UIDs in messages. The one-way algorithm is the same as two-way dsync algorithm except the source account is not modified. Its main purpose is that during mailbox migration you can run doveadm backup multiple times, then switch mails to be delivered to the new mailbox and run doveadm sync -1 once more to transfer any last new mails from the old mailbox. This doesn't currently work perfectly, so its use should be limited.

Both the mailboxes will end up looking identical after the synchronization is finished.ĭoveadm sync -1 performs one-way synchronization, but it merges the changes in destination without deleting anything. It merges all changes without losing anything. If there are any changes in the destination they will be deleted, so the destination will look exactly like the source.ĭoveadm sync performs two-way synchronization. Remote mailboxes can be accessed also via IMAP protocol, which allows using dsync for mailbox migration purposes.ĭoveadm backup performs one-way synchronization. All of these can be used within the same server or between different servers (via ssh(1) or tcp connections). It can be used for several different use cases: Two-way synchronization of mailboxes, creating backups of mails, and convert mailboxes from/to different mailbox formats.

NAMEĭoveadm-sync - Dovecot's two-way mailbox synchronization utilityĭoveadm-backup - Dovecot's one-way mailbox synchronization utility SYNOPSISĭoveadm sync -d| destinationĭoveadm backup -d| destination DESCRIPTIONĭsync is Dovecot's mailbox synchronization utility. This is why the man page for doveadm-sync is being shown below. To read the man page for doveadm-backup in Linux: ~]$ man 1 doveadm-backup NOTE: This is an alias!ĭoveadm-backup is actually an alias of doveadm-sync.
#Dovecot dsync backup examples manual
Linux Home > Manual Sections > 1 > doveadm-backup doveadm-backup(1) - Linux Man Page
