Tested on Ubuntu / Debian 7,8
To send a email from VPS need to install Postfix and mailutils package:
Step 1 — Install packages:
As you are logged into the root you do not need to use the command sudo example:
root: apt-get
user: sudo apt-get
apt-get update && apt-get upgrade
apt-get install postfix
apt-get install mailutils
Step 2 — Configure Postfix
sudo nano /etc/postfix/main.cf
search lines
inet_interfaces = loopback-only
change to:
inet_interfaces = localhost
Step 3 -- Restart postfix and test
sudo service postfix restart
echo "This is the body of the email" | mail -s "This is the subject line" user@example.com
We send a test mail to our post office check to see if he means that everything is OK
Flarum should automatically email test if it works thank