User Tools

Site Tools


Install iRedMail 0.9.5 on a Raspberry Pi with Ubuntu 16.04

This guide assumes the following:

  1. You already have a Pi2 or Pi3 with Ubuntu 16.04 installed. I suggest the ones on this page:
  2. You've followed my previous guide on compiling SOGo from source and have the packages (or I gave them to you somehow)

Set the Hostname

Firstly, change the hostnames to relevant values. In /etc/hostname, use just the hostname, not the FQDN.

In /etc/hosts, under, first put the FQDN, then the hostname, then localhost.


Install SOGo

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

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

Run the script obvious:

   sudo ./

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!

Download and install iRedMail

Go to and get the download link and use wget to download the installer

   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/

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/

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

I think installing it as root causes less issues, so do that.

   sudo su

This'll take you through the install and you can now choose SOGo and it “should” work correctly.

install_iredmail_raspi_ubuntu.txt · Last modified: 2017/03/22 23:19 (external edit)