From: "Tim Evans" <[EMAIL PROTECTED]>
> I am moving a Cyrus installation from one system to another, and would
like
> to be able to preserve/move the current installation's database (users,
> passwords, mailboxes). Is this possible? If so, how?
>
I did this a few weeks ago, to fix a corrupted harddrive problem on the root
partition.
Are you changing to a different Operating System on the new system or using
the same OS as the old system?
If its a different OS, then you might be able to convert the old password
file to the new systems format.
As for the mailboxes, you may have to use a utility that transfers each
users messages to the new system.
Since I wasn't changing OSes (I upgraded the OS and cyrus-imapd to newer
versions), I performed the following steps:
1. install the FreeBSD 4.2 to a spare drive/system
2. copy the master.passwd file to this drive and run pwd_mkdb
3. copy users home directories to the drive
4. install cyrus-sasl and cyrus-imapd (1.6.25-BETA)
5. edit imapd.conf and make the appropriate changes
6. edit inetd.conf and add the pop3d, imapd, and
timsieved entries.
7. add sieve (2000) to /etc/services
8. create the sendmail *.mc file with support for
SMTP AUTH and Cyrus-IMAPd mail delivery.
9. (FreeBSD 4.1+ Specific) edit /etc/make.conf to
enable SMTP AUTH for sendmail 8.11.1, then
rebuild/install FreeBSD and kernel. Reboot.
10. use saslpasswd to create the sasldb, by creating
an entry for the admin user.
11. Test install by creating an account and making
sure it can be accessed
12. remove the test account, if step 11 passed, otherwise
troubleshoot until you get the server working.
13. Stop mail services on the old server (disable pop3d,
imapd in inetd.conf and SIGHUP inetd, kill all
sendmail processes).
14. copy the "configdirectory" (see imapd.conf) from the
old server to the new server's "configdirectory"
15. copy the "partition-*" (see imapd.conf) director(y/ies)
from the old server to the new server's
"partition-*" director(y/ies) (i.e. partition-default).
Since I had my partiton-default on it own SCSI drive,
all I needed to do was remove the drive from the old
server and install it into the new server and make the
appropriate fstab entry.
Since I was upgrading from an older version of cyrus-imapd
(1.5.x) to a newer version, and wanted to use a hashed
spool, I needed to do the following:
16. edit imapd.conf to enable hashimapspool.
17. run the dohash script to convert from 1.5.x to 1.6.25
I also had the new server under a differnt name and IP address, so I needed
to change it to the old servers name and address. This then required the
sasldb database to be recreated, by first removing the file, and then
re-adding the cyrus admin user.
Scot