PHP mail() - Neither Sendmail or Postfix work on Ubuntu 14.0.4 LEMP

I have tried every tutorial on this website and others going back to 2008. Nothing is working.

Sendmail sent emails on the first install, but would lag so hard that users using the contact form would get an nginx error. Purged.

Postfix did nothing. I couldn’t even send an email from terminal while following the DO tutorials word for word. Purged.

Tried both another half dozen times following other tutorials. Nothing worked. Purged.

I don’t care about a personal ‘mail’ command, I need PHP mail() to work. That’s it.

The only errors I’ve noticed when installing sendmail is the feater should be before mailer, which is hilarious since I’m using the DEFAULT CONFIG that comes with the package.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

…2019 and still the same damn problem… none of these guides work. brand new LEMP 18.04 install. updated and upgraded. tried postfix guides (5 or so of them) - nothing. tried sendmail guides (10 or so of them) - nothing.

still absolutely no functioning guide how to make sendmail and PHP mail() work for DO droplets??? sheesh…

apt-get install sendmail-bin sensible-mda