Kolab the open-source groupware collaboration project released version 3.2 on Valentines day. I have been on version 3.0 for some time now and wanted to get away from using ownCloud and some other projects and just use Kolab as it was doing my mail, contacts and calendaring anyway.
The installation process is not all that difficult, here is what I did to install the software.
Lets get some utilities.
# yum install wget # yum install nano
First we need to prepare the target system. The document http://docs.kolab.org/installation-guide/preparing-the-system.html tells us we need to relax the SELinux policy.
# setenforce 0
Lets also make it persist across reboots.
Change `enforcing` to `permissive`.
At this point (since this is a completely internal install) I wanted to disable the iptables firewall. (We can re-enable later after it’s all working).
# /etc/init.d/iptables stop # chkconfig iptables off
Kolab has some very strict DNS requirements for how this machine refers to itself, and how people locate this machine.
# hostname -f
This needs to be exactly how you connect to this server via the web interface. If this is not how your external DNS will handle this servers FQDN you need to fix your hosts file.
# nano /etc/hosts
Follow the steps @ http://docs.kolab.org/installation-guide/centos.html
First we need to install EPEL. (At the time of this post, this is the most current RPM you need for EPEL.)
# rpm -Uhv http://mirror.chpc.utah.edu/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Next download some files with wget that add the Repos.
# cd /etc/yum.repos.d/ # wget http://obs.kolabsys.com:82/Kolab:/3.2/CentOS_6/Kolab:3.2.repo # wget http://obs.kolabsys.com:82/Kolab:/3.2:/Updates/CentOS_6/Kolab:3.2:Updates.repo
Next we can install all the packages Kolab needs.
# yum install kolab
After all these are installed we (at this time, its a bug that needs fixing) need to fix the template script for amavisd.conf
# nano /usr/lib/python2.6/site-packages/pykolab/setup/setup_mta.py
Look around line `386` the small block should look like the following
if os.path.isdir('/etc/amavisd'): fp = open('/etc/amavisd/amavisd.conf', 'w') elif os.path.isdir('/etc/amavis'): fp = open('/etc/amavis/amavisd.conf', 'w') fp.write(t.__str__()) fp.close()
Take a look under the second line, it opens the file but does not write and then close it. We need it to do this or we will get a zero byte empty amavisd.conf file.
If yours looks like the above make it look like this
if os.path.isdir('/etc/amavisd'): fp = open('/etc/amavisd/amavisd.conf', 'w') fp.write(t.__str__()) fp.close() elif os.path.isdir('/etc/amavis'): fp = open('/etc/amavis/amavisd.conf', 'w') fp.write(t.__str__()) fp.close()
You see I have added two lines under the second. Save the file and exit.
Now we can continue installing Kolab.
During this install you will be asked for many passwords. Write down the defaults or make up your own passwords.
After the install is complete, I reboot the system to make sure all services are started and that everything loads correctly.
We now need to update the database schema. At this time, even on a fresh install the database schema is out of date. I found this out by finding some odd bugs and talking about them in the Kolab IRC channel. After running the update database script they all went away.
# cd /usr/share/roundcubemail/ # ./bin/updatedb.sh --dir plugins/libkolab/SQL --package libkolab # ./plugins/libkolab/bin/modcache.sh clear -a
I changed my Kolab web services to run off a different port, I had to edit `nss.conf` which is part of Apache.
# nano /etc/httpd/conf.d/nss.conf
Two parts of this file need to be changed if you want to change from the default SSL port that Kolab ships with. The default SSL port is 8443. Find the lines
Listen 8443 VirtualHost _default_:8443
Change the two mentions of 8443 to your own port.
If your going to be using only SSL then we need to make a few more changes in some files.
# nano /usr/share/roundcubemail/config/config.inc.php
I added the following lines under the `$config[‘db_dsnw’] value.
$config['calendar_caldav_url'] = "https://your.fqdn.tld:8443/iRony/calendars/%u/%i"; $config['kolab_addressbook_carddav_url'] = 'https://your.fqdn.tld:8443/iRony/addressbooks/%u/%i';
Change the FQDN and the ports to match your setup.
# nano /usr/share/roundcubemail/config/kolab_files.inc.php
I change the `kolab_files_url` variable by adding an `s` to `http`
$config['kolab_files_url'] = 'https://' . $_SERVER['HTTP_HOST'] . '/chwala/';
There might be more files that need some changing, but I have not found any that need it yet.
This should get you on to the next step http://docs.kolab.org/installation-guide/first-login.html
Using iRony+Chwala as a WebDAV server your URL is:
1. If you visit your Address Book and notice nothing shows up, you import and nothing shows. You turn off cache in libkolab.conf and the contacts show up? You need to run the database update script.
2. If you turn cache off and contacts work but the cloud files break you need to run the database update script.
3. If the buttons on the files page are disabled you might need to go through and verify all URLs are correct for HTTP(s). Verify your FQDN, DNS Settings at your provider, and check your hosts file for correct entries. It seems that the files page is very picky and requires that from the page be able to loop back and see itself. So all your hostnames, and FQDNs have to be exactly as they are. If your using SSL be sure to edit the files I mention on this page and change http to https that are hardcoded in the PHP files.