Migration Firstclass to Zarafa
From Zarafa wiki
To migrate email boxes from Firstclass to Zarafa imapsync can be used. The following script can be used to migrate multiple users after each other.
#!/bin/bash
logfile="synclog.txt"
host1=10.0.0.1
#host1 is Source
host2=10.0.0.2
#host2 is Dest
###### Do not modify past here
#######################################
date=`date +%X_-_%x`
echo "" >> $logfile
echo "------------------------------------" >> $logfile
echo "IMAPSync started.. $date" >> $logfile
echo "" >> $logfile
{ while IFS=';' read u1 p1 u2 p2; do
user1=$u1
user2=$u2
echo "Syncing User $user"
date=`date +%X_-_%x`
echo "Start Syncing User $user1"
echo "Starting $user1 $date" >> $logfile
imapsync --split1 10 --split2 10 --nosyncacls --noauthmd5 --buffersize 64000000 --useheader 'Message-ID' --idatefromheader --nofoldersizes \
--host1 $host1 --user1 "$user1" --password1 "$p1" --host2 $host2 --user2 "$user2" --password2 "$p2" --sep2 / --prefix2 ""
date=`date +%X_-_%x`
echo "User $user done"
echo "Finished $user1 $date" >> $logfile
echo "" >> $logfile
done ; } < userlist.txt
date=`date +%X_-_%x`
echo "" >> $logfile
echo "IMAPSync Finished.. $date" >> $logfile
echo "------------------------------------" >> $logfile
The script will read out all user information from the file userlist.txt. The userlist.txt should contain the user names and passwords in the following format:
fc_username;fc_passwd;zarafa_username;zarafa_passwd
The import batch script can be executed multiple times and will only synchronise changed and new emails.
Important: The Sent Items folder in Firstclass is not accessible via IMAP, so can't be migrated with the imapsync script.