Moving Cyrus-imapd to new server

Sasa Stupar sasa at stupar.homelinux.net
Fri Apr 15 05:07:22 EDT 2005



--On vendredi 15 avril 2005 08:30 +0200 Simon Matter 
<simon.matter at ch.sauter-bc.com> wrote:

>> --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>
>>>> wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> I am using Cyrus-imapd on FC3. Now I need to change the server so I
>>>>> will
>>>>> 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
>>>>> FC3?
>>>>>
>>>>> Regards,
>>>>> Sasa
>>>>
>>>>
>>>> OK, I have done backup of /Var/lib/imap and /var/spool/imap dir's, then
>>>> I
>>>> have copied these dir's to a new server, make sure everything is owned
>>>> by
>>>> cyrus user and then start cyrus-imapd. The problem is that when
>>>> connected
>>>> 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
>>> transfer
>>>
>>> /etc/cyrus.conf
>>> /etc/imapd.conf
>>> /var/lib/imap
>>> /var/spool/imap
>>>
>>> to the new box and it works. How did you transfer?
>>>
>>> Simon
>>>
>>
>> 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:
>
> on oldbox:
>
> cd /
> tar cpzvf /tmp/cyrus-imapd.tar.gz /etc/cyrus.conf /etc/imapd.conf
> /var/lib/imap /var/spool/imap
> scp /tmp/cyrus-imapd.tar.gz newbox:/tmp/
>
> on newbox:
>
> cd /
> service cyrus-imapd stop
> rm -rf /var/lib/imap/* /var/spool/imap/*
> tar xzpvf /tmp/cyrus-imapd.tar.gz
> service cyrus-imapd start
>
> HTH
> Simon
>

Thanx, that worked.

Sasa


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20050415/ebd3ec38/attachment.bin


More information about the Info-cyrus mailing list