Imapsync migrating to a new server

From Zarafa wiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
To migrate mail from an old mailserver to a new Zarafa server you can use the tool imapsync. Requirements are that your old mailserver supports IMAP, and that the Zarafa gateway is running, with IMAP support enabled.
+
To migrate mail from an IMAP server to a Zarafa server you can use the opensource tool [http://freshmeat.net/projects/imapsync imapsync]. This tool synchronize all folders and items from the existing IMAP server to the Zarafa IMAP gateway.
-
The syntax to use:
+
The syntax to use imapsync is:
-
imapsync --noauthmd5  --host1 mail.old --user1 userold --password1 passw1  -sep2 / --prefix2 "" --host2 zarafa.new --user2 usernew --password2 passw2
+
 
 +
<pre>imapsync --noauthmd5  --host1 mail.old --user1 userold --password1 passw1  -sep2 / --prefix2 "" --host2 zarafa.new --user2 usernew --password2 passw2
 +
</pre>
Line 10: Line 12:
  The option --sep2 / is to define the used separator for Zarafa
  The option --sep2 / is to define the used separator for Zarafa
  The option --prefix2 "" is to define the basic starting folder
  The option --prefix2 "" is to define the basic starting folder
 +
 +
Hint: If you don't know all user password in Zarafa, you can change in the gateway.cfg the server_socket to <nowiki>file:///var/run/zarafa</nowiki>. This change allows users to login without a password. Make sure to switch this option back to http://localhost:236/zarafa after the migration!
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)
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)

Revision as of 17:46, 1 March 2009

To migrate mail from an IMAP server to a Zarafa server you can use the opensource tool imapsync. This tool synchronize all folders and items from the existing IMAP server to the Zarafa IMAP gateway.

The syntax to use imapsync is:

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 forces authentication with plain password, which the Zarafa gateway only supports
The option --sep2 / is to define the used separator for Zarafa
The option --prefix2 "" is to define the basic starting folder

Hint: If you don't know all user password in Zarafa, you can change in the gateway.cfg the server_socket to file:///var/run/zarafa. This change allows users to login without a password. Make sure to switch this option back to http://localhost:236/zarafa after the migration!

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)

Personal tools