Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am transfer a website from one server to another and therefore also need to transfer the old mail (client uses imap on server). I can ssh into the old server and download the Maildir (which is quite big) but I need some instructions on where to go from here?

Maildir folder contents contains (this is from ls -a):

.        .Sent   courier.lock           courierimapuiddb      new
..       .Spam   courierimapkeywords    courierpop3dsizelist  tmp
.Drafts  .Trash  courierimapsubscribed  cur

Where do I find received/sent messages and where do I put them on the new server (CentOS 5).


share|improve this question
Are you running Courier on the new server? – mattdm Dec 4 '10 at 23:31
Can't check right now but I am running Plesk Parallels (mediatemple dv) – Ashley Dec 4 '10 at 23:35
Well, let me rephrase. Do you want to access this folder via IMAP in a similar way on the new server, or do you just want to look at what's in there? – mattdm Dec 5 '10 at 2:17
Yes swap the folder over, so the new server has all the old emails – Ashley Dec 5 '10 at 9:39
up vote 3 down vote accepted

If you have both servers reachable via IMAP, I would suggest using IMAPsync, which is written for exactly this purpose.

share|improve this answer


Are you moving from one server to another with the same email server, you can simply copy the files across. That said, it is fairly error prone.

Instead, I'd recommend using IMAPsync (as SvenW suggest) or YippieMove. IMAPsync is free, but a bit tricky to use. YippieMove isn't free, but you'll be up and running in no time, as it is a web service.

share|improve this answer

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.