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

April 30, 2016 2.7k views
Ubuntu PHP Email 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.

2 Answers
apt-get install sendmail-bin sensible-mda

....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……

Have another answer? Share your knowledge.

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