To move email from one server to another is it possible to just copy the maildir folder over. Would this work?

I have email on a dreamhost shared server and would like to to transfer it to a virtualmin server when I transfer the server.

Status: 
Active

Comments

If you have accounts on two servers, each of which are configured to use Maildir... and you want to transfer all your email from one to the other, it should work to simply copy the Maildir directory.

Alternatively, there are tools such as imapsync that can handle sync'ing email from one IMAP server to another. You can find the imapsync tool here:

http://www.linux-france.org/prj/imapsync/

Thanks for your help.. again ;)

Hi

I have a problem, I get this error:

Turned ON syncinternaldates, will set the internal dates on host2 same as host1.
TimeZone :[MSD]
Will try to use CRAM-MD5 authentication on host1
Will try to use CRAM-MD5 authentication on host2
From imap server [mail.rimmerworld.info] port [143] user [andrew@rimmerworld.info]
To imap server [mail.toiletrage.co.uk] port [143] user [post@toiletrage.co.uk]
Banner : * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
Host mail.rimmerworld.info says it has NO CAPABILITY for AUTHENTICATE CRAM-MD5
Error login : [mail.rimmerworld.info] with user [andrew@rimmerworld.info] auth [CRAM-MD5]: 3 NO Login failed.

Trying LOGIN Auth mechanism on [mail.rimmerworld.info] with user [andrew@rimmerworld.info]
Success login on [mail.rimmerworld.info] with user [andrew@rimmerworld.info] auth [CRAM-MD5]
Banner : * OK Dovecot ready.
Host mail.toiletrage.co.uk says it has NO CAPABILITY for AUTHENTICATE CRAM-MD5
Error login : [mail.toiletrage.co.uk] with user [post@toiletrage.co.uk] auth [CRAM-MD5]: 3 NO Unsupported authentication mechanism.

3 NO Unsupported authentication mechanism.
...propagated at /usr/bin/imapsync line 760.

line 760 is:

die if $imap->IsUnconnected();

Hi Andrew! Well, while I have had success using imapsync, we can't really support third party apps.

That said, you may want to consider authenticating on a secure IMAP port rather than on 143, and using the -ssl1 and -ssl2 parameters.

Alternatively, you may want to look into using "--authmech1 PLAIN" and/or "--authmech2 PLAIN"... if the IMAP server doesn't like the authentication mechanism imapsync is using by default, setting it to PLAIN might help.

If those ideas don't work though, you can get assistance on using imapsync on the imapsync mailing list, that's detailed on their website.

Thanks for your quick help. :)

Thankyou it worked with:

imapsync --host1 mail.rimmerworld.info --port1 993 --noauthmd5 --ssl1 --user1 andrew@rimmerworld.info --password1 xxxxxx \ --host2 mail.toiletrage.co.uk --port1 993 --noauthmd5 --ssl1 --user2 post@toiletrage.co.uk --password2 xxxxxx