I've setup a new virtual machine to run my mail servers. Dovecot is installed and talking with the LDAP server for the user list. Now the question is how to migrate the data from the old Dovecot to the new. The data is stored in mdbox, with some possible corruption. Accordingly, any form of simple file copy is not the answer - I need the messages to be processed by something and then stored fresh on the new server. I do have NFS access both ways if that does anything. I tried imapsync - but it quickly broke on some of the messages. Is dsync the answer? Or do I use a MUA and drag-n-drop the messages a batch at a time between the servers? -- Daniel
On 20.5.2011, at 0.43, Daniel L. Miller wrote:> I've setup a new virtual machine to run my mail servers. Dovecot is installed and talking with the LDAP server for the user list. Now the question is how to migrate the data from the old Dovecot to the new. > > The data is stored in mdbox, with some possible corruption. Accordingly, any form of simple file copy is not the answer - I need the messages to be processed by something and then stored fresh on the new server. I do have NFS access both ways if that does anything. > > I tried imapsync - but it quickly broke on some of the messages. Is dsync the answer? Or do I use a MUA and drag-n-drop the messages a batch at a time between the servers?dsync should work for this.. If you run into any bugs with corruption, I can fix them.
On 19/05/2011 22:43, Daniel L. Miller wrote:> I've setup a new virtual machine to run my mail servers. Dovecot is > installed and talking with the LDAP server for the user list. Now the > question is how to migrate the data from the old Dovecot to the new.Different problem, but please also note the fantastic "proxy" feature in dovecot. With a bit of config this allows you to point all your users at the new server, whilst proxying them back to the old server if that's where their mailbox still remains. This dramatically reduces the challenge of migrating a ton of data in a big bang - you can migrate mailbox by mailbox and update the proxy settings for each user as you go. Good luck Ed W