Moving Cyrus-imapd to new server
simon.matter at ch.sauter-bc.com
Fri Apr 15 02:30:41 EDT 2005
> --On vendredi 15 avril 2005 07:35 +0200 Simon Matter
> <simon.matter at ch.sauter-bc.com> wrote:
>>> -On jeudi 14 avril 2005 19:19 +0200 Sasa Stupar
>>> <sasa at stupar.homelinux.net>
>>>> I am using Cyrus-imapd on FC3. Now I need to change the server so I
>>>> move all users to a new server. What should I do to move all accounts,
>>>> messages, etc for cyrus-imapd to a new server which will also run on
>>> OK, I have done backup of /Var/lib/imap and /var/spool/imap dir's, then
>>> have copied these dir's to a new server, make sure everything is owned
>>> cyrus user and then start cyrus-imapd. The problem is that when
>>> with an imap client I can see the headers of the messages but not the
>>> bodies - they are all blank. I have tried with reconstruct but after I
>>> ran it I loose even the headers from the messages.
>>> What am I doing wrong here?
>> I don't know what is wrong with you setup. What I know is that you have
>> to the new box and it works. How did you transfer?
> Yes, I did transfer all these files. I use SSH (winscp) to transfer.
Ah, I knew it, that's why I asked. Please let non *x OSes out of the game.
Use either rsync of tar. Something like:
tar cpzvf /tmp/cyrus-imapd.tar.gz /etc/cyrus.conf /etc/imapd.conf
scp /tmp/cyrus-imapd.tar.gz newbox:/tmp/
service cyrus-imapd stop
rm -rf /var/lib/imap/* /var/spool/imap/*
tar xzpvf /tmp/cyrus-imapd.tar.gz
service cyrus-imapd start
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus