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


  • 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

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



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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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