Install Kolab Mail Server on Ubuntu

This post will show you how to install Kolab mail server on ubuntu 14.04, in this example on a DigitalOcean VPS.  Kolab’s recipient policy will be removed because I do not need guaranteed unique email addresses, secondary alias addresses setup etc. DKIM is another important factor when configuring a mail server as it allows other mail servers to validate the authenticity of you emails. There are many useful plugins available for roundcube such as integration with Google Authenticator app. For sources see the reference section at the end.

Install Kolab

The first step is to install Kolab on the VPS. Add the following to /etc/apt/sources.list.d/kolab.list using nano or similar.

We need to import the authentication key to validate the packages. Run these commands.

To make sure the Ubuntu server priorities the packages from the Kolab repository we need to create a preferences file. Create and put the following in /etc/apt/preferences.d/kolab:

Setup Kolab

Read more…

Please share 🙂

Setting up mail server dns records

This post will take you through setting up all the necessary DNS settings for your mail server and an additional server on a separate IP. The mail server will reside on a subdomain such as webmail.example.com while the main server will reside on example.com.

I highly recommend using DTDNS.com as they have provide an excellent service. I have a dynamic IP for one server and they automatically update the DNS records when the IP address changes. They also provide robust tools for managing advanced DNS settings including editing the file directly.

Read more…

Please share 🙂

Fail2ban Horde Webmail

This will show you how to setup horde to log failed logins and use fail2ban to detect these. A useful tool to check if any fail2ban filters are working as expected is the fail2ban-regex tool, more details here Fail2ban-regex help.

Login to horde webmail using an admin account. Navigate to the configuration page -> horde -> logging tab. You should see something similar to this.

Horde Logging Configuration Page
Horde Logging Configuration Page

Read more…

Please share 🙂

Add Custom Fields Horde 5 Turba

This post will show you how to add multiple custom fields to Horde 5’s Address Book Application. Annoyingly the system only has an email field by default but there are several ways to easily enable a workEmail and HomeEmail field. There are many tutorials showing you how to do this but I couldn’t find an up to date tutorial on adding a custom field.

Any horde configuration file should not be edited! You should create a .local.php file instead and begin the file with <?php and then add any edits in there.

To enable the homeEmail and workEmail fields then create a new file called /var/www/turba/config/backends.local.php

Add the following (This is for SQL backend):

Read more…

Please share 🙂