Frank Lienhard
2013-Feb-01 16:22 UTC
[Dovecot] move mail from server with v1.0 to server w. v2.1?
I'm about to replace my old server. Both servers are on my internal network. The old one ist running debian lenny(32bit) with dovecot 1.0.15 and the new one debian Wheezy with dovecot 2.1.7. I set up the users on both systems identically (same gid uid). My first attempt was tho simply rsync the Maildirs along with the homes. Both deovecot versions are set up with the maildir format, but this results in ~30% doublicated mails on the new server. I then learned about doveadm/dsync, only to figure out that this isn't available in v 1.0.15 and therefor won't work. So which could be the most painless way to solve that?
Reindl Harald
2013-Feb-01 16:25 UTC
[Dovecot] move mail from server with v1.0 to server w. v2.1?
Am 01.02.2013 17:22, schrieb Frank Lienhard:> I'm about to replace my old server. Both servers are on my internal network. > The old one ist running debian lenny(32bit) with dovecot 1.0.15 and the new one debian Wheezy with dovecot 2.1.7. > I set up the users on both systems identically (same gid uid). > My first attempt was tho simply rsync the Maildirs along with the homes. Both deovecot versions are set up with the > maildir format, but this results in ~30% doublicated mails on the new server. > I then learned about doveadm/dsync, only to figure out that this isn't available in v 1.0.15 and therefor won't work. > So which could be the most painless way to solve that?imapsync is version agnostic and if you have a database with the user-logins it should be easy to geenrate a shellscript i did migration of around 200000 messages and some hundret users from Apple OSX EIMS to dbmail/dovecot in 2009 this way -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20130201/ea440cda/attachment-0004.bin>
Frank Lienhard
2013-Feb-01 17:19 UTC
[Dovecot] move mail from server with v1.0 to server w. v2.1?
Reindl Harald wrote:> Am 01.02.2013 17:22, schrieb Frank Lienhard: > >> I'm about to replace my old server. Both servers are on my internal network. >> The old one ist running debian lenny(32bit) with dovecot 1.0.15 and the new one debian Wheezy with dovecot 2.1.7. >> I set up the users on both systems identically (same gid uid). >> My first attempt was tho simply rsync the Maildirs along with the homes. Both deovecot versions are set up with the >> maildir format, but this results in ~30% doublicated mails on the new server. >> I then learned about doveadm/dsync, only to figure out that this isn't available in v 1.0.15 and therefor won't work. >> So which could be the most painless way to solve that? >> > > imapsync is version agnostic and if you have a database > with the user-logins it should be easy to geenrate a shellscript > > i did migration of around 200000 messages and some hundret users > from Apple OSX EIMS to dbmail/dovecot in 2009 this way > >sadly, this is not availble from the debian repos. I searched a bit around: syncmaildir, imapsync: only available in in Lenny OR Wheezy, but needed on both servers isync, mailsync: mentioned to hold two maildirs in sync with a more or less difficult to configure setup which leaves me one option (from programms I found); offlineimap: mentioned to backup mails from a remote/ISP mailserver in a local directory of a user. Wonder if that works , when the local dir is one of an imap server.......
Steffen Kaiser
2013-Feb-04 08:37 UTC
[Dovecot] move mail from server with v1.0 to server w. v2.1?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 1 Feb 2013, Frank Lienhard wrote:> My first attempt was tho simply rsync the Maildirs along with the homes. Both > deovecot versions are set up with the maildir format, but this results in > ~30% doublicated mails on the new server.Er, a) you got 30% more files on the new server (aka target), than you have on the old server (aka source)?? b) Or do you see them, when you login via IMAP to the the new server? == If a), did you ran rsync, while the source host is in production still? Do you use "H" option to preserve hardlinks and/or "--delete" if you run rsync multiple times? If b), did you verified the duplication with a IMAP client, that does _no_ caching on its own or with a fresh and empty local cache / profile / ... . Kind regards, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUQ9zZ13r2wJMiz2NAQI67wf/X6XVPzXOygUZWX8s6Wthf8UyHs+Pew9v QKKuwOvm4lb7mF9vzVYMtTFwSHyYUCvSgB+oSPmRpX/bGReSq1+PwpIYQOpKvU+b EpaWTyBMXDyzToPuwnd/VZgnzzVuBa5IVbvg6neLIi7yrco+VjbwQJ1B/VPLHjRO YVusoMn0ddJWNE01ix2w54kBc9eSS54hcIuzkac3fyp2vTLl3LYgBJ0lRUp2ztkX C4sn1ejOqXkfBLc20jL52RW+FW0pH0P7HTCCz+XWkJFmiMXcDEoymBL62fI1MuAh UMNPvUIVcZcT/Q5FA8QGVRnRyKH5S4snRPkHEqSP2A39tDhbM/882A==XIiO -----END PGP SIGNATURE-----
Steffen Kaiser wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Fri, 1 Feb 2013, Frank Lienhard wrote: > >> My first attempt was tho simply rsync the Maildirs along with the >> homes. Both deovecot versions are set up with the maildir format, but >> this results in ~30% doublicated mails on the new server. > > Er, a) you got 30% more files on the new server (aka target), than you > have on the old server (aka source)?? > > b) Or do you see them, when you login via IMAP to the the new server? > > ==> > If a), did you ran rsync, while the source host is in production > still? Do you use "H" option to preserve hardlinks and/or "--delete" > if you run rsync multiple times? > > If b), did you verified the duplication with a IMAP client, that does > _no_ caching on its own or with a fresh and empty local cache / > profile / ... . >I used -avu, where: -a equals: -rlptgoD (no -H,-A,-X) -u skip file that are newer on the receiver I stopped the getmail cronjob to ensure that no new messages get fetched while sync. After that I created a new account in Icedove and at first all went well, but after a while I got duoplicates of abou 900 old messages. I admit I only looked that up from Icedove and not in the dir from cli.