Migrating Cyrus to new server AND new mailboxes
pegasus at nerv.eu.org
Sun Dec 19 13:42:30 EST 2004
On Sun, 19 Dec 2004 15:32:16 +0100
Nikola Milutinovic <Nikola.Milutinovic at ev.co.yu> wrote:
> Hi all.
> I have a working Cyrus IMAP 2.1.13. I would like to migrate to a new
> server (new machine), running Cyrus IMAP 2.2.10. Additional trouble is I
> would like to move existing users to new mailboxes/usernames. For
> instance, I would like to do this:
> Old.ev.co.yu( IMAP 2.1.13 ): "user.nikola"
> New.ev.co.yu( IMAP 2.2.10): "user.milutinovicn"
> I imagine that I can create a new mailbox, stop both servers, copy all
> mail files and folders from Old to New and run "reconstruct". But it
> that a good thing to do?
> Or perhaps, stop both MTAs, connect from a client ot both mailboxes and
> do a move from the client. It is slower, but is regular.
Since you need a old_server/old_mailbox -> new_server/new_mailbox mapping, i
suggest a custom php/perl/python script that would do the same job as a
client would do. You can use a cyrus admin account to access all mailboxes.
If you have many accounts, you can probably also do some magic with your MTA
to deliver mail to the right mail server and right mailbox. For example,
with postfix >=2 you can set up per user transport maps that would take care
of this for you.
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