Installing poste.io on Ubuntu 14.04 LTS

I tried to install the free edition of poste.io, a really nice mailserver, and struggled a little bit. After some try&error I figured out how to install and setup and in case somebody else finds himself in the same situation.

First I deployed a Vultr Local Storage, because we don't need super fast SSD-Systems for Email.

In case you go with the 512MB RAM plan from vultr, the Memory isn't enough to handle all the processes poste.io is running. So we have to increase the swap-size.

Login via ssh as root

disable all swap-files

swapoff -a

create a driectory that holds the swap file

mkdir -p /var/cache/swap/

Create a new Swapfile with 4 GByte

dd if=/dev/zero of=/var/cache/swap/myswap bs=1M count=4096

Restrict access

chmod 0600 /var/cache/swap/myswap

format as swap

mkswap /var/cache/swap/myswap

Announce to system

swapon /var/cache/swap/myswap

Add to fstab for autoload

echo -e "/var/cache/swap/myswap    none    swap    sw    0   0" >> /etc/fstab


Now reboot the system and login again via ssh

We are going to install some Packages we need.

add-apt-repository ppa:git-core/ppa -y
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo -e "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list
apt-get install linux-image-extra-$(uname -r)
apt-get update
apt-get install git apt-get install aufs-tools apt-get install cgroup-lite apt-get install docker-engine


We are now installing poste.io

mkdir /opt/posteio
cd /opt/posteio
curl https://poste.io/free | bash


After the installation is completed poste.io tells you to run

/usr/bin/docker run --name poste -p 25:25 -p 80:80 -p 443:443 -p 110:110 -p 143:143 -p 465:465 -p 587:587 -p 993:993 -p 995:995 -v /opt/poste/data:/data -t analogic/poste.io:latest

or something similar. Just do it.

Now you can connect to your poste.io installation via webbrowser on the ip-adress your server is using.

Of course you have to set an A-Record and MX-Records for your new Mailserver.


To run poste.io again after you had to reboot your system, run

docker start poste


Background-Information

- Docker: https://footyntech.wordpress.com/2013/08/23/what-d...

Konversation wird geladen