[Dovecot] Migrating mail between servers
I've currently got dovecot running on a Fedora server and I want to move all my mail to my new server running ubuntu. Both use mbox and I have IMAP working in both. Can I just copy the ~user/mail directory and /var/mail/user file and replace them in the new server?
Thanks,
--
Knute Johnson
"The urge to save humanity is almost always a false front for the urge to rule."
H.L. Mencken
On Sat, Feb 7, 2009 at 3:53 AM, Knute Johnson < knute2009@www.knutejohnson.com> wrote:
I've currently got dovecot running on a Fedora server and I want to move all my mail to my new server running ubuntu. Both use mbox and I have IMAP working in both. Can I just copy the ~user/mail directory and /var/mail/user file and replace them in the new server?
You've heard about imapsync, yes? If not, now you've heard:)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223
"The only time a woman really succeeds in changing a man is when he is a baby." - Natalie Wood
Knute Johnson a écrit :
I've currently got dovecot running on a Fedora server and I want to move all my mail to my new server running ubuntu. Both use mbox and I have IMAP working in both. Can I just copy the ~user/mail directory and /var/mail/user file and replace them in the new server?
you need to stop any mail delivery or access to avoid corruption or mail loss. This is one of advantages of maildir over mbox.
while copying between servers, use temp files that are on the same partitions as the source/dest files. this way, "mv" is quasi-instantaneous (no file copy).
participants (3)
-
Knute Johnson
-
mouss
-
Odhiambo Washington