Because Zarafa is lacking a cardDAV interface, SabeDAV is filling the gap, please see the Links.

This backend to ActiveSyncZarafa is used to supply a cardDAV interface for the Mac OS X Address Book (Adressbuch). The sync is done one way only from Zarafa to the Mac address book.

Because the cardDAV interface from Mac Address Book under Snow Leopard (10.6.8) it told to be buggy, you need to setup a Virtual Host under Apache2 web server.

The used Zarafa version was 7.1.0-36420.

For a better understanding of the data flow, please see a diagram in AndroidSyncPrivate#Data_Flow .

Setup for Sabre-Zarafa server

First you download sabre-zarafa-0.15.tar.gz (2012-03-19) from the project download page. Then download SabreDAV v.1.6.4 (2012-08) from the project download page.

Example handling under Ubuntu 1204:

# This includes "SabreDAV" version 1.6.1, which needs PHP 5.3 (command line check: php -v).
$ php -v
PHP 5.3.10-1ubuntu3.4 with Suhosin-Patch (cli) (built: Sep 12 2012 19:00:43)  

$ cd /home/user-name
# Create a project folder in order to keep folder "Download" clean
$ mkdir Install
$ mkdir Install/Zarafa
$ mv Downloads/sabre-zarafa-0.15.tar.gz Install/Zarafa

# Now we have SabreDAV version 1.6.4 (2012-08)
$ mv Downloads/ Install/Zarafa
$ cd Install/Zarafa

# extract archives
$ tar -xzf sabre-zarafa-0.15.tar.gz
$ unzip

# copy to web folder, the target folder must not exist!
$ sudo cp -a sabre-zarafa-0.15 /var/www/sabre-zarafa

# add version number
$ sudo touch /var/www/sabre-zarafa/version-0.15.txt

# update SabreDAV version 1.6.1 to 1.6.4
$ sudo mv /var/www/sabre-zarafa/lib/Sabre /var/www/sabre-zarafa/lib/Sabre161
$ sudo cp -a SabreDAV/lib/Sabre /var/www/sabre-zarafa/lib/

# modify user
$ sudo chown -R www-data:www-data /var/www/sabre-zarafa/

Deviating from the installation instructions, for the Mac OS X (Mountain Lion 10.8.1) Address Book cardDAV client you need an server access at the root level. Therefore you need to setup a virtual host in the Apache2 web server. Example handling under Ubuntu 1204:

# edit /etc/apache2/httpd.conf and add:

# 2012-04-05
# VirtualHost from
Listen 8008
NameVirtualHost *:8008
<VirtualHost *:8008>
ServerName <server>:8008
DocumentRoot "/var/www/sabre-zarafa"

<Directory /var/www/sabre-zarafa>
                DirectoryIndex server.php
                RewriteEngine On
                #RewriteBase /sabre-zarafa
                RewriteBase /
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                #RewriteRule ^.*$ /sabre-zarafa/server.php
                RewriteRule ^.*$ /server.php/$1 [L,QSA]

# activate data
$ sudo /etc/init.d/apache2 reload
$ sudo service apache2 reload

The TCP port number 8008 was selected, because it should be the port number used by the Apple clients, see cardDAV.

The root level access needs also a change of the file :

# edit in /var/www/sabre-zarafa/

        // for VirtualHost port 8008
        define ('CARDDAV_ROOT_URI', '/');

# activate data
$ sudo /etc/init.d/apache2 reload
$ sudo service apache2 reload

Test in web browser, for example in local network:

Index for /
        Name            Type       Size         Last modified
        principals      Collection              2012-09-20T11:30:05+00:00
        addressbooks    Collection              2012-09-20T11:30:05+00:00
Generated by SabreDAV 1.6.4-stable (c)2007-2012

Setup in Apple Address Book

The setup was tested under Snow Leopard 10.6.8 and Mountain Lion 10.8.1.

In Apple Address Book (Adressbuch) you open /Setup/Accounts and click on the "+" sign below the left box.

Select Account Type CardDAV with the following parameters:

Server Setup for local network:

The contacts sync is a one way from the Zarafa server to the Mac Address Book (Adressbuch)

List of pages in this category:

-- RudolfReuter 2012-04-07 04:50:27

Go Back to CategoryAndroid or FrontPage or StartSeite

ActiveSyncZarafa/SabreZarafa (last edited 2012-09-20 11:48:10 by dslb-084-058-165-010)