LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 10-12-2006, 05:09 PM   #1
swilliams2006
Member
 
Registered: Dec 2005
Location: Kent
Distribution: Kubuntu 6.10
Posts: 32

Rep: Reputation: 15
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.
 
Old 10-13-2006, 04:04 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
Do you need to do anything? I'd have guessed that the directory structure was the same in either case
 
Old 10-13-2006, 05:37 PM   #3
swilliams2006
Member
 
Registered: Dec 2005
Location: Kent
Distribution: Kubuntu 6.10
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday
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!
 
Old 10-13-2006, 05:47 PM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
No probs at all
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Courier imap + postfix -> maildir thing. collen Linux - Software 0 10-03-2005 09:41 AM
courier-imap and/var/mail esteeven Linux - Networking 2 06-09-2005 04:25 PM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
(Imail) mailbox to (courier-imap/postfix) maildir chakkerz Linux - Software 0 02-03-2005 09:42 PM
Postfix + MySQL + Courier-Imap - can not find the maildir chakkerz Linux - Software 1 01-24-2005 09:32 PM


All times are GMT -5. The time now is 08:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration