Migrating Mail - Courier Imap /Maildir > Cyrus /var/spool/imap
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Migrating Mail - Courier Imap /Maildir > Cyrus /var/spool/imap
Hi,
Due to corruption of my Courier mailbox which was a $HOME/Maildir mailbox, and other problems I have been experiencing with Courier I have finally migrated to Cyrus *and* got mail delivery working.
I was hoping there was an easy way of running a script that will take all the e-mail out of a given directory (recursively) such as /home/steve/Maildir, so that this script will ultimately suck up all my e-mail from my old mailbox and throw it at Postfix (or better yet straight at Cyrus).
Unless of course there is an easier way to migrate mail from one to the other?
Thanks in advance for any advice anyone can offer.
Do you need to do anything? I'd have guessed that the directory structure was the same in either case
I think so, however at the moment all mail is in (for example /home/steve/Maildir/ and recursive...) and needs to move to /var/spool/imap/users/s/steve/.
I didn't think it was that simple! At the moment all the files in the Maildir/ folders are named by message ID, in the /var/spool/imap/... they are just numbered.
I will give it a try, just copying the files over and let you know how I get on.
Thanks for everything you have done to help me in the last month!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.