In this guide, example.com will be your domain and 111.111.111.111 will be your IP

Prerequisites

DNS

You will need this DNS records:

example.com.      IN A    111.111.111.111  
mail.example.com. IN A    111.111.111.111  
example.com.      IN MX 0 mail.example.com.  
example.com.      IN TXT "v=spf1 mx a ~all"

You can use http://www.spfwizard.net/ to generate needed SPF record.

Hostname

It’s important for postfix and other mail services to have set good hostname.

Here is my article how to change linux hostname

Do it and restart your server before continuing

Installing

Downloading and installing ~280 packages may take some time, better grab some drink.

CentOS 6.x

Make sure that system is up to date

yum update

Add extra packages and Kolab repo, add Kolab repo keys and finally install kolab package

yum install epel-release
cd /etc/yum.repos.d/
wget http://obs.kolabsys.com/repositories/Kolab:/3.3/CentOS_6/Kolab:3.3.repo
wget http://obs.kolabsys.com/repositories/Kolab:/3.3:/Updates/CentOS_6/Kolab:3.3:Updates.repo
gpg --keyserver pgp.mit.edu --recv-key 0x446D5A45
gpg --export --armor [email protected] > devel.asc
rpm --import devel.asc
rm -f devel.asc
yum install kolab

Debian 7 Wheezy

Before installing, make sure to make your system up to date

apt-get update
apt-get upgrade --yes

I don’t recomend using Debian for Kolab, it has some problems with SMTP auth.

Update 2015-02-03

Thanks to Tovok7, I realized that everything is working OK with Debian, all you have to do is select “Internet Site” when installing postfix package. SMTP error 250 or 454 is not a problem after this step.

echo "deb http://obs.kolabsys.com/repositories/Kolab:/3.3/Debian_7.0/ ./" >> /etc/apt/sources.list.d/kolab.list
echo "deb http://obs.kolabsys.com/repositories/Kolab:/3.3:/Updates/Debian_7.0/ ./" >> /etc/apt/sources.list.d/kolab.list
wget -O - http://obs.kolabsys.com:82/Kolab:/3.3/Debian_7.0/Release.key  | apt-key add -
cat > /etc/apt/preferences.d/kolab << EOF
Package: *
Pin: origin obs.kolabsys.com
Pin-Priority: 501
EOF
apt-get update 
apt-get install kolab

Configuring

setup-kolab

We need to answer setup questions with 7 different passwords :o

  • LDAP admin password
  • LDAP admin password confirmation
  • LDAP manager password
  • LDAP manager password confirmation
  • System user to run directory, default is dirsrv on Debian, nobody on CentOS
  • System group to run directory, default is dirsrv on Debian, nobody on CentOS
  • Domain
  • Root dn confirm, dc=example,dc=com
  • Cyrus Administrator password
  • Kolab Service password
  • MySQL server init or existing with root password already set
  • MySQL kolab password
  • Timezone ID for eg. Europe/Berlin
  • MySQL roundcube password

After setup I recommend to reboot your system.

Usage

Webadmin

Go to http://example.com/kolab-webadmin/ and login with:

Login: cn=Directory Manager  
Password *LDAP manager password*

Now you can add users to your domain. Rembember to set type of user “Kolab user”, default is “Contact” and it prevents user from using webpanel

Roundcube on steroids

http://example.com/roundcubemail

Looks pretty awesome, huh ? :)

Mobile sync

There are few options to sync mobile devices.
All iOS devices have native support for Exchange and CalDAV, CardDAV.
Most Android phones have Exchange account provider named as Corporate
For CalDAV and CardDAV your URL will be http://example.com/iRony/.

E-mail

  • Exchange
  • Any IMAP/POP3 and SMTP client

Decent Android IMAP client K-9 Mail - Google Play

Calendar

  • Exchange
  • OS CalDAV account provider (iOS, many Android devices)
  • External CalDAV account provider, for example DAVdroid for Android

Contacts

  • Exchange
  • OS CardDAV account provider (iOS, many Android devices)
  • External CardDAV account provider, for example DAVdroid for Android

Files

You will need some WebDAV client, point it to http://example.com/iRony/files/

iOS WebDAV Navigator
Android WebDAV File Manager

Tasks

WiP and only for Android

Mirakel app for Android + modified version of DAVdroid
Mirakel FAQ

Just install this
http://mirakel.azapps.de/davdroid.apk
and this
https://play.google.com/store/apps/details?id=de.azapps.mirakelandroid

Notes

Not available yet

SSL/TLS

https://gist.github.com/dhoffend/7008915

Resources