Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu 16.04 - Install Mailtrain

Mailtrain is an open source alternative to Mailchimp. It has many features, most useful of which is that it can integrate easily with many different email sending services, such as Amazon SES and SendGrid.

Below is a BASH script you can run to deploy Mailtrain 1.2 to your Ubuntu 16.04 server. Unfortunately it must be run as the root user, and will not work with just using sudo. I took a look at the installer and it makes use of a PPA or two and a few commands that curl a web address directly into BASH so use at your own risk.

# installer for mailtrain 1.2 on ubuntu 16.04
# the script needs to be run as root and will 
# fall over if you run it with sudo (but get past the root check)
tar --extract --gzip --file v1.20.0.tar.gz
rm v1.20.0.tar.gz
bash mailtrain-1.20.0/setup/

Once installed, you can login with user: admin and password: test and configure everything through the web UI. Be sure to change the password!

You probably want to use a VPS/VM with at least 1 GB of RAM.

Last updated: 3rd August 2021
First published: 16th August 2018