bernhard: doc/raw-howtos moving-mailboxes.txt,NONE,1.1

cvs at intevation.de cvs at intevation.de
Fri Jun 3 15:47:45 CEST 2005


Author: bernhard

Update of /kolabrepository/doc/raw-howtos
In directory doto:/tmp/cvs-serv1702

Added Files:
	moving-mailboxes.txt 
Log Message:
Added description how to move mailboxes.


--- NEW FILE: moving-mailboxes.txt ---
From: Martin Konold <martin.konold at erfrakon.de>
Subject: [Kolab-devel] Memo: How to migrate mailboxes between Kolab Servers
	(multi-location setup)
Date: Wed, 21 Jul 2004 23:44:30 +0200
Message-Id: <200407212344.30600.martin.konold at erfrakon.de>


Hi,

By popular request I am describing how to migrate Kolab mailboxes between 
servers.

With Kolab 2 we are supporting multi-location setups. The physical location of 
a mailbox is determined by the kolabHomeServer attribute.

Actually the mailbox of a new user is created on every server but only the 
kolabHomeServer is actually populated.

Sometimes users shall be migrated to another server for many reasons including 
relocation of the user, maintainance or security. This can be achieved by two 
methods.

Method 1: Do it the direct but brutal way (Shell access)

- Block the user from login

- Log in as root on the old server (shell access)

- recursivly the _contents_ of the mailbox from the old server to the new 
server e.g. using scp. (imapd spool directory)

- change the KolabHomeServer attribute so that it points to the target server

- run cyrus reconstruct on the target server

- check that the copy is working and complete

- cyrus reconstruct does not take care about the quota so it is advisable to 
run quota(8) with the -f switch in order to fix the quota root files

- delete original contents of the users mailbox

- run cyrus reconstruct on the old server

- keep the empty mailbox on the old server

- Allow normal usage



Method 2: Do it the imap way (using IMAP)

- Disallow normal usage

- Log in as user (or admin) on the old server using IMAPS (no shell!)

- Log in as user (or admin) on the target server using IMAPS (no shell!)

- recursively copy all folders and the contents of all folders from one IMAP 
connection to the other server as user

- delete all contents from old server as user

- keep the empty mailbox on the old server

- Set new KolabHomeServer attribute

- Allow normal usage


I very much prefer method 2 which would allow to nicley integrate the feature 
in an administration interface for easy, reliable and safe operation. Method 
1 is only useful for experienced and trained administrators.





More information about the commits mailing list