[Dovecot] Migrating mail between servers

mouss mouss at ml.netoyen.net
Sat Feb 7 10:30:30 EET 2009


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).


More information about the dovecot mailing list