Ubuntu LEMP on 14.04 - Sending email?

August 18, 2015 3.2k views
Email LEMP


I have the above image - would someone be able to tell me what extra I need to do so that SendMail works? I have configured fail2ban to send an email when a block is executed, but I am assuming I need to install something to get this going?

Thanks allot, Dave.

2 Answers

You will need an MTA (Mail Transfer Agent) such as sendmail or postfix. I’d recommend using postfix

apt-get install postfix

The default configuration should allow you to send emails but without additional DNS records your messages might get flagged as spam. It is often easier to use SMTP for sending email with a service like Mandrill

Have another answer? Share your knowledge.