Hi all, 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. Cheers, -- j.hofm?ller http://thesix.mur.at/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 213 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20140729/78e57466/attachment-0001.sig>
On 29.7.2014 15:48, Jogi Hofm?ller wrote:> Hi all, > > 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. > > Cheers, >Considering you're planning to use doveadm backup, you can't deliver into the new mailbox. From dsync man page: backup - Backup mails from default mail location to location2 (or vice versa, if -R parameter is given). No changes are ever done to the source location. Any changes done in destination are discarded. Unless I misunderstood something, this means that if you deliver messages to the new mailbox, next run of doveadm backup will remove them.
On 29 Jul 2014, at 16:48, Jogi Hofm?ller <jogi at 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.