Jan 27, 2010

Install Communigate Pro on Ubuntu Hardy Heron

This is another blog entry from my old site that I'm going to keep around just in case. Will probably write this one up again once a new LTS is out.

I love free software. But, there is something to be said for paid support. When it comes to email, sometimes a robust mail server is just what the doctor ordered. Communigate Pro has been doing the job for large scale ISPs for a while now so back when one of my clients needed a solution I didn't hesitate to recommend it. I've no regrets except for one: the initial install was on a CentOS machine. Nothing against CentOS or Red Hat, but I prefer Debian based distros. And while the CG Pro mail server install instructions exist for Windows, MacOS X, FreeBSD, and many Linux distros, Ubuntu is currently not one of them. Fortunately it turns out it's not that bad to get it going. Here's what you need to do.

Step 1 - Update and upgrade: I bet you didn't see that coming?

sudo apt-get update
sudo apt-get dist-upgrade

Step 2 - Grab needed tools and use 'em: In our case we'll only need alien, an application that converts RPM files into DEB files.

sudo apt-get install alien
sudo alien CGatePro-Linux-5.0-14.x86_64.rpm

As you can see in our example above, I'm assuming that you've downloaded the RPM from Communigate. In my case I'm running version 5.0-14. Your version may vary.

Step 3 - Install: The process for install a deb file is very easy just type this in, replacing the name of the deb with what you generated in Step 2.

sudo dpkg -i cgatepro-linux_5.0-15_amd64.deb

Step 4 - Modify files At this point CG Pro is installed and it will work. But when you first launch it you'll get a bunch of errors like ulimit: 43: Illegal option -u and librt.so.1: cannot open shared object file: No such file or directory. These aren't deal breakers but we should fix them anyway. To do that, pop open your favorite text editor and modify the /etc/init.d/Communigate file. Here are the changes you want to make:

  • Change the first line from #!/bin/sh to #!/bin/bash

  • Change the assumed kernel line to use 2.6.16

  • Change all instances of /var/lock/susbsys/Communigate to /var/lock/Communigate

Step 5 - Launch and default run on boot With that done you'll need to start Communigate, make sure there are no errors and then set it to boot in case your server needs to be restarted.

sudo /etc/init.d Communigate start
sudo update-rc.d Communigate defaults

When you restart your machine, just check that Communigate Pro is running using ps -aux | grep CGServer. Hopefully you'll see all the spawned daemons. There are of course plenty of authorized CG resellers and Stalker themselves gives great support so if something didn't go according to plan you should contact somebody there. Of course my employer could also provide paid support if you need it. :-)


  1. sudo -i
    root@www2:~# mv /usr/bin/mail /usr/bin/mail.prev
    root@www2:~# mv /usr/sbin/sendmail /usr/bin/sendmail.prev
    root@www2:~# ln -s /opt/CommuniGate/sendmail /usr/sbin/sendmail
    root@www2:~# ln -s /opt/CommuniGate/mail /usr/bin/mail


  2. You may want to try the unofficial yet package built for Debian 6.0.3: