Il 26 ott 2016 8:30 AM, "Aki Tuomi" <aki.tuomi at dovecot.fi> ha scritto:> I would recommend using same major release with replication. > > If you are using maildir++ format, it should be enough to copy all the > maildir files over and start dovecot on new server. >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? As i wrote previously, i have some huge maildirs where rsync take hours to scan all files i can't keep the server down for hours or customers won't receive any new emails, so, after the initial sync i have to move the mailbox on the new server (only for deliveries) . In this way I'll not loose any emails but the new servers as newer data than the old server. When doing rsync with --delete, the news mails would be removed A solution could be to disable customer access to the new server and put "new" directory in rsync exclude. Doing this won't delete the newly received emails as the "new" directory isn't synced. and no one osd able to move from new to cur as users are blocked for login.
On 26.10.2016 09:38, Gandalf Corvotempesta wrote:> Il 26 ott 2016 8:30 AM, "Aki Tuomi" <aki.tuomi at dovecot.fi> ha scritto: >> I would recommend using same major release with replication. >> >> If you are using maildir++ format, it should be enough to copy all the >> maildir files over and start dovecot on new server. >> > 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? > As i wrote previously, i have some huge maildirs where rsync take hours to > scan all files > i can't keep the server down for hours or customers won't receive any new > emails, so, after the initial sync i have to move the mailbox on the new > server (only for deliveries) . In this way I'll not loose any emails but > the new servers as newer data than the old server. > When doing rsync with --delete, the news mails would be removed > > A solution could be to disable customer access to the new server and put > "new" directory in rsync exclude. Doing this won't delete the newly > received emails as the "new" directory isn't synced. > and no one osd able to move from new to cur as users are blocked for login.If you are moving from 1.x to 2.x, I think you should make some trials first, and preferably move the user one at a time, blocking access to old server/new server during move. It is very forklift upgrade, much danger. Aki
2016-10-26 8:57 GMT+02:00 Aki Tuomi <aki.tuomi at dovecot.fi>:> If you are moving from 1.x to 2.x, I think you should make some trials > first, and preferably move the user one at a time, blocking access to > old server/new server during move. It is very forklift upgrade, much danger.Yes, I'll do some test migration before moving the whole server. Maildir structure isn't changed between 1.x and 2.x, thus all emails should be safe. I have to test the new 2.2 configuration to see if existing users are able to log-in but how can I test if existing client would be able to preserve the mail ids without downloading everything again?
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.
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.