This guide assumes the following:
Firstly, change the hostnames to relevant values. In /etc/hostname, use just the hostname, not the FQDN.
In /etc/hosts, under 127.0.0.1, first put the FQDN, then the hostname, then localhost.
Copy the SOGo repo packages to /mnt/packages/ then install dpkg-dev:
sudo apt-get install dpkg-dev
Create a new script in the /mnt/packages/ directory
cd /mnt/packages/ sudo nano dpkgdebs.sh
Paste the following into the file:
#! /bin/bash cd /mnt/packages dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
Save and exit, next make it executable:
sudo chmod u+x dpkgdebs.sh
Run the script obvious:
Lastly, we need to add the repo to the sources.list file:
sudo nano /etc/apt/sources.list
Add this line:
deb file:/mnt/packages ./
Save and exit. Then install
sudo apt-get update && sudo apt-get install sogo sogo-activesync wbxml2
It will complain that they're unsigned, that's fine, just select yes and we're done with installing SOGo!
Go to http://www.iredmail.org/download.html and get the download link and use wget to download the installer
wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.9.5.tar.bz2 sudo tar xjf iRedMail-0.9.5.tar.bz2
Before we go ahead and install, we need to “fix” a couple of things.
sudo nano +371 functions/packages.sh
Comment out the line and create a new line below it and put a single colon (:) as it means “do nothing”.
Save and Exit.
sudo nano +33 dialog/optional_components.sh
Comment out this line too and do the same as the previous file (add a new line then a single colon).
Save and Exit again.
Make the installer file executable:
sudo chmod u+x iRedMail.sh
I think installing it as root causes less issues, so do that.
sudo su ./iRedMail.sh
This'll take you through the install and you can now choose SOGo and it “should” work correctly.