On 27 Oct 2016, at 15:29, Tanstaafl <tanstaafl at libertytrek.org> wrote:> > On 10/26/2016 2:38 AM, Gandalf Corvotempesta > <gandalf.corvotempesta at gmail.com> wrote: >> This is much easier than dovecot replication as i can start immedialy with >> no need to upgrade the old server >> >> my only question is: how to manage the email received on the new server >> during the last rsync phase? > > Use IMAPSync - much better than rsync for this.imapsync will change IMAP UIDs and cause clients to redownload all mails. http://wiki2.dovecot.org/Migration/Dsync should work though.
2016-10-27 14:36 GMT+02:00 Timo Sirainen <tss at iki.fi>:> imapsync will change IMAP UIDs and cause clients to redownload all mails. http://wiki2.dovecot.org/Migration/Dsync should work though.Just to be sure: dsync from the *new* node would connect via IMAP to the older node and transfer everything ? By running this: doveadm -o mail_fsync=never sync -1 -R -u user at domain imapc: should be OK if newer mails are arrived on the new server ?
On 27 Oct 2016, at 15:58, Gandalf Corvotempesta <gandalf.corvotempesta at gmail.com> wrote:> > 2016-10-27 14:36 GMT+02:00 Timo Sirainen <tss at iki.fi>: >> imapsync will change IMAP UIDs and cause clients to redownload all mails. http://wiki2.dovecot.org/Migration/Dsync should work though. > > Just to be sure: dsync from the *new* node would connect via IMAP to > the older node and transfer everything ? > By running this: > > doveadm -o mail_fsync=never sync -1 -R -u user at domain imapc: > > should be OK if newer mails are arrived on the new server ?Yes.
On 10/27/2016 8:36 AM, Timo Sirainen <tss at iki.fi> wrote:> On 27 Oct 2016, at 15:29, Tanstaafl <tanstaafl at libertytrek.org> wrote: >> On 10/26/2016 2:38 AM, Gandalf Corvotempesta >>> my only question is: how to manage the email received on the new server >>> during the last rsync phase? >> >> Use IMAPSync - much better than rsync for this.> imapsync will change IMAP UIDs and cause clients to redownload all > mails. http://wiki2.dovecot.org/Migration/Dsync should work though.Oh... I thought the --useuid option eliminated this problem? https://imapsync.lamiral.info/FAQ.d/FAQ.Duplicates.txt
> On 28 Oct 2016, at 16.54, Tanstaafl <tanstaafl at libertytrek.org> wrote: > > On 10/27/2016 8:36 AM, Timo Sirainen <tss at iki.fi> wrote: >> On 27 Oct 2016, at 15:29, Tanstaafl <tanstaafl at libertytrek.org> wrote: >>> On 10/26/2016 2:38 AM, Gandalf Corvotempesta >>>> my only question is: how to manage the email received on the new server >>>> during the last rsync phase? >>> >>> Use IMAPSync - much better than rsync for this. > >> imapsync will change IMAP UIDs and cause clients to redownload all >> mails. http://wiki2.dovecot.org/Migration/Dsync should work though. > > Oh... I thought the --useuid option eliminated this problem? > > https://imapsync.lamiral.info/FAQ.d/FAQ.Duplicates.txtIt does not. There is no option at IMAP level to set the UID. In this case ?useuid seems to keep track on source:uid -> dest:uid pairs on multiple syncs and uses uid numbers to avoid syncing mails as duplicates instead of using headers to do that. Sami