Hi everyone, I'm posting here a kind of step by step guide for the most
newbie (like me :-) for the migration of user mailbox from Cyrus 1.5.14
to 2.0.16.
This guide worked fine in my configuration:

Old server:
- Linux SUSe 7.0
- Cyrus IMAPd 1.5.14

New server:
- Linux SUSe 7.0
- Cyrus IMAPd 2.0.16
- SASL 1.5.24
- Berkeley DB3.2.9

I'm assuming to have a backup file of mailbox in the old format that
includes everything under /var/imap & /var/spool/imap
(imapbackup.tar.gz)

# 1. Delete the actual spool dir:

rm -r /var/spool/imap/*
rm -r /var/imap/*

# 2. Untar the backup file: (imapbackup.tar.gz)

mkdir /tmp/backimap
cd /tmp/backimap
tar zxf imapbackup.tar.gz

# 3. Move the backup to the spool dir:

cd imap
mv * /var/imap
cd ../spool/imap
mv * /var/spool/imap

# 4. Create the rest of directories:

/usr/cyrus/tools/mkimap

# 5. Check permission

chown -R cyrus:mail /var/spool/imap/*
chown -R cyrus:mail /var/imap/*

# 6. Reconstruct the mailboxes:

su - cyrus
/usr/cyrus/tools/undohash
/usr/cyrus/tools/dohash

cd /var/imap
/usr/cyrus/bin/ctl_mboxlist -u < mailboxes

cd /var/spool/imap
/usr/cyrus/bin/reconstruct -r user.*

# 7. Delete the delivered.db:

mv /var/imap/delivered.db /var/imap/_delivered.db

# 8. Delete the temp dir

exit
rm -rf /tmp/backimap

# 9. Startup the sysem:

/usr/cyrus/bin/master &

--
              Carlos Cristóbal Sabroe Yde
                     [EMAIL PROTECTED]
-----------------------------------------
Universidad Nacional de Río Cuarto
Dirección de Centro de Computos
Tel. ++54 (358) 467-6183
Ruta 36 Km. 601
(5800) Río Cuarto (CBA)
Argentina


Reply via email to