Kopano
Migrating Kopano is a multi-step process which also depends on the configuration of the backend used by Kopano.
If Kopano uses LDAP, the high-level view of the migration is as follows:
- Configure grommunio appropriately to LDAP (settings user filters, etc.)
- Create stores in grommunio
- Migrating user data (which this article covers mainly)
- Switch mail-routing
This migration focusses mainly on the migration of the dataset and does not imply an active LDAP configuration.
Preparation
Section titled “Preparation”When migrating Kopano, being well-prepared matters. For this to happen, we need to make sure that the relevant metadata for migration is prepared, ideally in a list format which we can use to create our users in the grommunio installation:
kopano-admin -l | sed -e '1,4d' -e '/^$/d' | awk '{ print $1 }' | sort | while read user; do kopano-admin --details $user; done | egrep '^(Username|Fullname|Emailaddress|Store GUID| Warning| Soft| Hard)' | sed -e 's#^ ##g' -e 's#^Username:\t*##g' -e 's#.*:[\t ]*#;#g' | sed ':a;N;$!ba;s/\n;/;/g' >> kopano-users.txtThis (long) command executed on the Kopano system will create us a list of users with the important metadata of users which we will require in a format which can be used for further scripting.
With this list now, we can create the used domains in grommunio:
MAX_USERS_DOMAIN=250
cat kopano-users.txt | awk -F\; '{ print $3 }' | awk -F@ '{ print $2 }' | sort | uniq | sed '/^$/d' | while read DOMAIN; do grommunio-admin domain create -u ${MAX_USERS_DOMAIN} $DOMAINdoneOn the grommunio system, Kopano databases can be imported on the command-line with gromox-kdb2mt and gromox-mt2exm. These are two commands meant to be chained together by way of a pipe; tend to the linked manual pages to read about the invocation syntax.