Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.