User Tools

Site Tools


install_iredmail_raspi_ubuntu

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: https://wiki.ubuntu.com/ARM/RaspberryPi
  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 127.0.0.1, first put the FQDN, then the hostname, then localhost.

Reboot.

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 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:

   sudo ./dpkgdebs.sh

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 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.

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