Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

My old Pentium 3 email server just died on me. Is it possible import all my emails that I had?

I was running postfix and the cyrus IMAP server. I can chroot to the hard drive to run any commands if needed.

After grep'ing the hard drive, I found that all of my emails are in /var/spool/imap. I assume that I can't just copy all the emails to my new server, so what do I need to do to get them onto my new server?

share|improve this question
up vote 2 down vote accepted

You should be able to simply rsync the /var/spool/imap from the old HDD to the new server. For that you don't need to chroot in the old HDD.

Mount your old drive in readonly mode (for safety) and use something like this (assuming you've mounted your old HDD under /mnt/old-hdd):

rsync -anv /mnt/old-hdd/var/spool/imap/ /var/spool/imap/

If you are satisfied with what rsync would do, you can re-run it without the "-n". FYI, "-n" is the "dry-run" mode of rsync.

Good luck

share|improve this answer
Awesome, I'll try that once my new server is set up :) – Xiao-Long Chen Jun 29 '11 at 23:43

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.