Zarafa migration to SOGo
HOW-TO migrate from zarafa to sogo
If you are used to get with activesync contacts, calendar, tasks and emails on your mobile, for my mobile it can only be done with two accounts. One exchange account to sync calendar and contacts with SOGo, and one imap-account to sync emails against your (imap-) smeserver. SOGo activesync seems not to be possible syncing emails with my mobile. Maybe it syncs other models, you have to find out for yourself.
Let's start with pulling out the emails from zarafa. Thanks to Stephano for his hint using imapsync http://wiki.contribs.org/Imapsync.
Stop receiving emails during imapsync:
/usr/local/bin/svc -d /service/qpsmtpd/
/usr/local/bin/svc -d /service/sqpsmtpd/
Disable the user you want to migrate in zarafa:
db accounts setprop $USERNAME Zarafa disabled
signal-event user-modify $USERNAME
When finished, start receiving email again:
/usr/local/bin/svc -u /service/qpsmtpd/
/usr/local/bin/svc -u /service/sqpsmtpd/
Check on the server, if the emails are in the mail-folders. You may do this with webmail.
Next step is to install thunderbird and configure thunderbird as a frontend of zarafa. We need to get the contacts and the calendar from zarafa in thunderbird.
I used https://server:8089/ical/ which gives you a login to the zarafa ical service.
For pulling out the contacts from zarafa I used the tzpush add-on for thunderbird. You'll find your contacts in your personal adressbook in thunderbird.
Now clear all data in thunderbird. I tried to sync from thunderbird to SOGo and found out (for me) the other way round might be better. So let's install SOGo.
When finished, call the SOGo-gui. Login with your credentials. Move to the calendar. On the left side you'll see your personal calendar. Move with the mouse over it and click the right button. In the context you choose import a calendar (ics-file). Go ahead and import your formerly exported and saved ics-file from thunderbird. Do the same with your adressbook.
If this is done, we'll have to sync thunderbird with SOGo. In fact it's nearly the same way how we configured thunderbird to sync with zarafa. All we need is the CalDAV and CardDAV of SOGo. You'll find this by clicking with the right button of your mouse while hovering over your calendar and your adressbook. Click on settings. Choose the right tab, you'll see the link we need. It should look like this:
https://your-IP or domain/SOGo/dav/user-name/Calendar/personal/
https://your-IP or domain/SOGo/dav/user-name/Contacts/personal/
Be patient - depending on the amount of the data, syncing can take a while.
Last thing you have to configure an imap-accout in thunderbird to get your emails from the smeserver.
Now, if you want to sync SOGo with a mobile please follow the SOGo people on this page: http://sogo.nu/download.html#/frontends. For my Nokia E7-00 I had to configure two mailboxes. One as an Exchange-Server which syncs the calendar and the contacts with SOGo. And another account as an IMAP-account to sync emails with the smeserver. Make sure that the settings for receiving email through IMAP in the server-manager are correct.
This works for me, I can't tell for other mobiles.
If everything is tested and working as expected, you may remove zarafa from your server. Additionally you may drop the zarafa-database.
That's it. Welcome to SOGo. Big thank to Stéphane de Labrusse and all others who contributed.