On 29 Jul 2014, at 16:48, Jogi Hofmüller <j...@mur.at> wrote: > Another question regarding migration. While migrating a mailbox with > dsync is it safe to deliver mail via LMTP to the new (target) mailbox or > is it wiser to deactivate LMTP delivery to this mailbox until it's fully > migrated? > > And what methods could I use to stop delivery to a mailbox during > migration? Our user data is stored on an LDAP server.
Temporarily disabling mail delivery for the user being migrated is the safest choice, but it's not a requirement. You could run "doveadm sync -1" for the user and it'll merge the changes without deleting any changes. There is some problem with "doveadm sync -1" though that if it's ran multiple times (more than once) and there are large enough changes it'll start doing some stupid things (can't remember the details - either duplicates mails or just changes their UIDs unnecessarily). Running it once should be safe though.