Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

My web-host suddenly decide to merge with another company and that move has left me in the lurch.

I have two weeks till I can migrate my mail data over to another account. The only way that I can transfer the data to the new account is through a mail client and manually copying the data to the new hosting by recreating the mail accounts and restoring all the mails from the mail client to them.

Is there anyway that I can automate this process, or a faster way that I could speed-en up this process. I have over 400 email accounts to migrate which is around 2 gigs of matter. And the mails don't stop coming in. If I could do this directly server to server without downloading and uploading the matter, it would be very convenient. That way I will only have to create the accounts and the matter would transfer automatically.

How can I avoid this procedure in the future? And is there a way to backup emails from a mail server?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

This is a tough one, and I'd like to see how others deal with the problem. But we've done such email migrations before from DreamHost to Gmail, and this was done through Gmail's own email migration tool. It is reasonably fast, and works quite well, but obviously it only works if you're using Gmail hosted.

Another tool you could use is imapsync. This is actually a tool to synchronize two inboxes, but it can also be used with a short shell script and CSV file containing all the account pairs for large migrations.

Another option is to export your maildir (assuming your mail server uses them) and installing them on the new server. You may need your web host's help with this, but this is probably quicker than doing a transfer via IMAP or POP3.

What you always want to do is keep your mailboxes organized and pruned. Don't accumulate millions of emails that you don't need and have them all sitting in your inbox directory. This makes migration much slower. At my work, we had one email account that took over 3 days to migrate because of this.

share|improve this answer
well the worry is that I have 300+ accounts to transfer over and that's going to be quite a process – rzlines Nov 11 '10 at 19:34
@rzlines: If that's the case, I would find out what mail server your web host is using and how the mail data is stored. Then you ought to be able to export it all in one go. – Lèse majesté Nov 11 '10 at 19:43
well this is how it got sorted based on your suggestion I pestered my old host to give my details and my data - which they did and so I simply requested my new host to restore the data to my new account and they agreed! phew! – rzlines Dec 1 '10 at 4:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.