Hello! I've been trying to install Kerio mailserver on Ubuntu/Debian but somehow I coulnd't find a complete howto. It will start at bootup with a proper bootup script made by Paul McNett. Kerio Mailserver package isn't freeware but costs a fraction of mikey$oft Exchange. AND is is build on rugged opensource Linux.
I really can't see why the most popular linux distribution isn't supported. Running a stripped down FC6 was still using 1.1 gig and 260 mb memory for a working KMS. I have Ubuntu server 6.06.1 running it in 600 mb and only 150 mb memory! I had no stability issues what so ever. Ubuntu Rocks!
This is meant to be a copy / paste howto. Starting from a clean installation of Ubuntu Dapper Drake 6.06.1. x86
# Install openssh server for remote login. Now you copy paste the commands within a shell. Cool
sudo apt-get install ssh
# Ssh to your ubuntu/Debian to be Kerio mailserver machine from a desktop to be able to copy paste if from a console.
ssh your-keriomailserver-ip
# Grand console super user rights.
sudo -s
# Update /etc/apt/sources.list with source.list from http://ubuntuguide.org/wiki/Ubuntu_dapper#How_to_add_extra_repositories. Add the gpg key.
wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -
apt-get update
apt-get upgrade
# First, make a backup of /var/lib/dpkg/status. Alien could break your dpkg database. To be safe copy it!
cp /var/lib/dpkg/status /var/lib/dpkg/status.start
# install alien
apt-get install alien
# Make a deb-file of the rpm [Writing this I'm using version kerio 6.3.1]. alien --scripts Filename.rpm
alien --scripts kerio-xxx-i386.rpm
# Do a "apt-get update" to see if /var/lib/dpkg/status has been broken up. If it has, replace it with the backup from backup copy we made before. "cp /var/lib/dpkg/status.start /var/lib/dpkg/status" I had this once.
# install kerio dependencies libstdc++5
apt-get install libstdc++5
# Install the created kerio_xxx-i386.deb. If you have trouble installing the .deb file with "dpkg -i filename.deb" try "dpkg --unpack filename.deb".
dpkg -i kerio_xxx-i386.deb
# Start kerio configuration script and set your preferences.
cd /opt/kerio/mailserver
./cfgwizard
Now it is time to set proper init script see attached file. Download the file and paste it in /etc/init.d/. The file should be called keriomailserver. so Vi /etc/init.d/keriomailserver should give you this script.
#Set Kerio to start at bootup in rc.d. Do not forget the last dot!
update-rc.d keriomailserver start 99 2 3 4 5 . stop 20 0 1 6 .
Done! Do a reboot and see Kerio mailserver nicely start at bootup.
I've tried to be as clear as I can. If you have any additions please pm me so I can alter this howto to prevent an unclear workflow. I really hate well intended but still bad/incomplete/absolete/unchecked howto's associated with Red Hat look-alikes. People using Ubuntu/Debian try to help out better!
Please do not forget to flare at Kerio for not supporting native use of Ubuntu/Debian!
Djieno!
Bookmarks