LEMP and Varnish: Sending mail not working

Posted February 26, 2014 4.2k views
Move my wordpress site from another hosting (lamp) to digitalocean (lemp + varnish). All nice, but mail sending dont work. If i check by trying reset my password, i have message "Possible reason: your host may have disabled the mail() function". If i check by wp-mail-smtp plugin, i have message "Could not instantiate mail function." (if use mail() function) or "SMTP Error: Could not connect to SMTP host" (if use SMTP) But and mail(), and smtp is ok

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.

Submit an Answer
2 answers
Is sendmail running?
sudo netstat -plutn
If not, start it:
sudo service sendmail start
If that doesn't work, it's probably not installed:
sudo apt-get install sendmail

Help, not found.