|Version 18 (modified by bbking, 15 months ago) (diff)|
Date: 02 Oct 2011
Version(s): 2.0, 2.2
Zentyal profiles: Zarafa
The reason for creating this howto is to share my experiences with others (many of the topics covered here come up very often in then forum) and to document the changes I made to finally have a working sync groupware I've been dreaming of the last 5 years...;)
Enabling Zarafa is pretty straight forward. People, who used to access their mails through Roundcube, might be confused when it comes to enabling Zarafa. I recommend to disable the Webmail interface in "Module Status" and assign IMAP + IMAPS services to Zarafa under the "Groupware" menue.
The reason for this is as follows: to my understanding DoveCot serves you your mails over IMAP/IMAPS when you access them through RoundCube. The path to the mailboxes is /var/vmail/<domain>/<username> Zarafa stores the emails in MySQL, and because of a config dependency RoundCube relies on either IMAP or IMAPS and I haven't managed to configure it to access Zarafa.
Important: I just have found out, that the domain you specifiy under Groupware/Virtual domain must be the first email address entry on the User properties page! Otherwise the mails will be still delivered to dovecot and not through Zarafa! So e.g. your virtual domain in Zarafa is snakeoil.com, your user MUST have its first email-address like email@example.com !
Moving mails to Zarafa
So having activated IMAP+IMAPS for Zarafa, you can copy your old mails from your old server over to Zarafa (I recommend not to switch off the existing server until the new one is running perfectly!). Copying mails is covered well in Documentation/Community/HowTo/MigrateMailToZarafa , just don't forget that your old mailserver needs the user@… username format, while Zarafa is happy with the username only. If you have problems with imapsync, you can try http://www.yippiemove.com/, they offer a mail migration service - it's not free and I haven't tried the service yet.
Migrating BlackBerry data over Outlook, moving Outlook .pst files to Zarafa
I had to backup my contacts from my BlackBerry to outlook and then export it from there to Zarafa. To do so, install the Zarafa client and the Zarafa Migration Tool on Windows, which used to reside in http://download.zarafa.com/community/beta/6.40/6.40.13beta2-30778/windows/ You can also move your existing Outlook content (mails, contacts, calendars, notes) to Zarafa with the help of the migration tool. The only issues I discovered were, that from a German Outlook the calendar entries were imported to a folder called "Kalender" instead of "Calendar". Same for the contacts here. By using drag&drop you can pretty easily move the entries to the right folder.
To allow connection from the migration tool and Outlook, you have to change in the file /usr/share/ebox/stubs/zarafa/server.cfg.mas the line
Save the file and install the Zarafa-licensed service by
to enable access with Outlook and the migration tool. Afterwards do a
and optionally a
In the "Firewall" menue, you have to open up the port for Zarafa access, the standard port is 236, which we will change later on. Create a new service "Zarafa" under the menue "Services" and edit it. Enter these values: Protocol: TCP/UDP Protocol Source port: ANY Destionation port: 236
and save them. Now head over to the "Firewall" + "Packet filter" menue and under "Filtering rules from external networks to Zentyal" choose "Add new" and enter these values: Decision: Accept Source: ANY (or pre-define an object to grant access only to limited persons) Service: Zarafa
Save the changes and ebox will restart the firewall module. Now you should be able to connect to Zarafa (you can check this by using nmap to discover open ports). If you get the message "Cannot contact license server" in the migration tool or Outlook, you have to restart thezarafa-licensed service!
The migration is covered in the Zarafa docs in http://www.zarafa.com/wiki/index.php/Zarafa_pst_migration,the only problem I discovered was the difference with an german Outlook and an english Zarafa profile. The contacts were imported to "Kontakte" so I had to manually drag&drop them to the "Contacts" folder. I haven't had too much appointments so I haven't taken care of the calendar yet - probably same problem here, too.
When the migration has worked you are all set to connect with Outlook to Zarafa - just create a new "Zarafa 6" account in Outlook (make sure it's the topmost account in the list if you have other accounts there - otherwise you won't see the content of your folders!!).
Outlook sync is finished with that.
Thunderbird + Lightning access
Coming to Thunderbird, I'll start with the calendar, that was the easiest way for me. I went straight with SSL, so just change in /usr/share/ebox/stubs/zarafa/ical.cfg.mas the port to 8444 (or whatever unused port number you like) insert this port under "Services" in the "Zarafa" entry we created above, save the changes and restart Zarafa+zarafa-ical if you changes the port number.
Install the Lightning extention with the help of your favourite package manager and open the calendar part in Thunderbird. Create a new network calendar, use CalDav as protocol and enter this link: https://<your_ip_here>:<your_ical_ssl_port_here>/caldav/<your_username_here>/
In my case it's: https://192.168.10.88:8444/caldav/bbking/
If everything went well, you shouldn't see the error symbol in the left frame in Lightning and optionally you should be able to enter a new appointment in the calendar, which is supposed to show up in Outlook and the Webaccess GUI of Zarafa under http://<your_ip_here>/webaccess . Lately I experienced high IO loads (600-900k/s) when a Lightning client connected. MySQL was causing the high IO-Load - no solution on this issue yet.
Turning over to IMAP/IMAPS access: As we allowed IMAP+IMAPS services from Zarafa, it is possible to connect to Zarafa with Thunderbird. At first I had some trouble, because I changed the port number of the Zarafa-server and the Gateway could not connect. When I entered my username/password combo I kept getting "Login to server 192.168.10.88 failed" and can't log in. So pay attention to the line
and change the port number accordingly.
Sending mails with Thunderbird:
Configure Thunderbird as follows:
the username is firstname.lastname@example.org
Setting up z-push access with Android and iPhone4 was pretty straight forward, and it seems to be working. Enter the username, password and only the hostname for the exchange server (NOT http://hostname/Microsoft-Server-ActiveSync !!)
Here is a step-by-step screenshot-diashow for android 2.3 on a Samsung ACE:
I ordered a licence for Z-Sync, created a file called z-sync in /etc/apache2/sites-available/ with this content:
Then copied the files from the .zip archieve to /usr/share/z-sync Did a
and installed the .xpi file in Thunderbird. Unfortunatelly, after configuring the add-on, it did not work and exited with an error alert: "Server not found at: " So far, the reaction on the z-sync dev side was, that I should double check the install-howto - just what I did, before contacting them. Keep you posted on this.
Installing officially signed SSL-certificates
I went to http://www.startssl.com and got my own, officially signed certificates for my Zentyal-Box. Here is a great howto ( http://forum.zentyal.org/index.php/topic,616.msg2340.html#msg2340), regarding the installation of the signed certificates.
I will use Javier's howto here and append my remarks to it:
At first, you have to understand, that there are 2 different Apache instances running. One is doing the normal webpages, the other one is serving the web admin pages. These instances have 2 different config files.
Securing webpages (Zarafa's webaccess, Roundcube, etc.):
1) put the certificate in the file /etc/apache2/ssl/ssl.cert
2) put the certficate key file in the file /etc/apache2/ssl/ssl.key
3) create the pem file concatening the two previous files, like this:
here I went over to the /usr/share/<ebox/zentyal>/stubs/webserver and added the following line to default-ssl.mas :
the sub.class1.server.ca.pem is issued by StartSSL, this will tell the browser who is the CA.
and your official certificates should be working.
Securing the admin interface:
1) put the certificate in the file /var/lib/ebox|zentyal/conf/ssl/ssl.cert
2) put the certficate key file in the file /var/lib/ebox|zentyal/conf/ssl/ssl.key
3) create the pem file concatening the two previous files, like this:
TODO: verify inserting official CA
will restart you admin interface, which will have the official certificates as well.
Securing IMAP with an official certificate:
After my initial tests still did not satisfy Thunderbird, I've found a great tutorial on http://www.howtoforge.com/securing-your-ispconfig-3-installation-with-a-free-class1-ssl-certificate-from-startssl
1) if you have a StarSSL certificate, get their CA files and give them speaking names:
2) create the chain file
At this point you have different options. Either you go with the official supported way and use the hooks for Zentyal, see http://trac.zentyal.org/wiki/Documentation/Community/HowTo/CustomizeConfigFiles
or, if you want to do a quick hack, you can do it this way (keep in mind, after an update, these changes might be gone!!!):
look for the lines with the entries
and change them to:
scroll down and look for the TLS/SSL stuff and add this line:
save the file.
Depending where you keep your official certificate and the key, please change the locations accordingly.
3) restart the mail system with:
TODO: check whether the certificates are in place after a reboot. Explain the use of hooks.
- howto01.PNG (12.4 KB) - added by bbking 19 months ago.
- howto02.PNG (10.2 KB) - added by bbking 19 months ago.
- howto03.PNG (24.9 KB) - added by bbking 19 months ago.
- howto04.PNG (21.3 KB) - added by bbking 19 months ago.
- howto05.PNG (17.7 KB) - added by bbking 19 months ago.
- howto06.PNG (18.3 KB) - added by bbking 19 months ago.
- hwoto07.PNG (16.4 KB) - added by bbking 19 months ago.
- 01_allg.png (68.8 KB) - added by bbking 19 months ago.
- 02_allg.png (30.5 KB) - added by bbking 19 months ago.
- 03_allg.png (34.3 KB) - added by bbking 19 months ago.
- 04.png (30.1 KB) - added by bbking 19 months ago.
- 05.png (36.3 KB) - added by bbking 19 months ago.
- 06.png (32.9 KB) - added by bbking 19 months ago.
- 07_allgemein.png (33.9 KB) - added by bbking 19 months ago.
- 10_allg.png (34.0 KB) - added by bbking 19 months ago.
- 11_allg.png (33.9 KB) - added by bbking 19 months ago.
- 08_allg.png (36.2 KB) - added by bbking 19 months ago.
- tb_setup01.png (24.4 KB) - added by bbking 15 months ago.
- tb_setup02.png (33.5 KB) - added by bbking 15 months ago.
- tb01_carddav.PNG (73.5 KB) - added by bbking 14 months ago.
- tb02_carddav.PNG (64.4 KB) - added by bbking 14 months ago.
- tb03_carddav.PNG (84.7 KB) - added by bbking 14 months ago.
- tb04_carddav.PNG (24.2 KB) - added by bbking 14 months ago.
- tb05_carddav.PNG (32.5 KB) - added by bbking 14 months ago.