Imapsync migrating to a new server
From Zarafa wiki
To migrate mail from an old mailserver to a new Zarafa server you can use the tool imapsync. The syntax to use:
root@zarafa:~# imapsync --noauthmd5 --host1 mail.old --user1 userold --password1 passw1 -sep2 / --prefix2 "" --host2 zarafa.new --user2 usernew --password2 passw2
Description of the extra options: The option --noauthmd5 to use an other authentication system The option --sep2 / is to define the used separator for zarafa The option --prefix2 "" To define the basic start map
Note: The password is plain text and is readable, to change this, it is possible to use ssl, when you put in extra options (Read: man imapsync)