This morning, I just finished completing exactly what you are doing (except we use FreeBSD on both systems) by migrating from 1.5.19 to 2.0.14.  Here is a quick guide (I wrote everything down...):
  1. Copy the 'mailboxes' file from the old Cyrus 1.5.19 to the new machine somewhere.
  2. Run the command: su <cyrus_user> -c "/path/to/cyrus-2.0.14/bin/ctl_mboxlist -u < /path/to/old/cyrus/mailboxes"
    1. This command creates a mailboxes.db with the information from the old mailboxes file.
    2. I created a dot-patch (user/ instead of user.) a while ago for my customers, which means I had to edit the 'mailboxes' file and replace all dots with slashes before I could import it into Cyrus 2.0.14.  You can safely skip any modifications to the 'mailboxes' file.
  3. Tar up your mailstore on the old server.  ie: tar -zcvf cyrus-mboxes.tar.gz /path/to/cyrus-1.5.19_partitions
  4. Tar up your quotas if you have them.  ie: tar -zcvf cyrus-quotas.tar.gz /path/to/cyrus-1.5.19/quota
  5. ftp or scp the cyrus-mboxes.tar.gz and cyrus-quotas.tar.gz to the new server.
  6. Untar the mailstore to the proper location, and ensure that your new imapd.conf correctly reflects the old partition scheme.
    1. The partition scheme must be identical, or you're going to find yourself making changes to the mailboxes.db and quotas.
  7. Untar the quotas to the proper location ie: the imapd.conf's <config_directory>/quota .
  8. Reconstruct your mailbox headers and quotas for to ensure integrity.
    1. su <cyrus_user> -c "/path/to/cyrus-2.0.14/bin/reconstruct"
    2. su <cyrus_user> -c "/path/to/cyrus-2.0.14/bin/quota -f"
  9. Start the 'master' process...
  10. Cross your fingers and test some mailboxes!
Hope that helps!

-David Fuchs


Jesse Ahrens wrote:
[EMAIL PROTECTED]"> Hi,
I have to admit a fair amount of greenness in this so bear with me. I'm trying to migrate the mailboxes from a solaris 7 box running Cyrus IMAP 1.5.19 to a FreeBSD 4.4 box running Cyrus 2.0.14. If anyone has a guide or a URL to do this I'd be extremely grateful for any knowledge anyone can lend. Thanks in advance.

Jesse Ahrens
Unix Systems Administrator
Meridian Advertising
4850 G St.
Omaha, NE 68117
402-733-6400 x266


Reply via email to