Trying to set up sendmail/phpmailer

January 30, 2015 1.8k views

Hi, I'm trying to configure my webserver (Ubuntu LAMP 14.04) so that the sites that it hosts can send email but I'm running in circles and I'm confused.

I've tried installing sendmail and postfix using the various DO guides that are out there.

When I run:

echo "This is the body of the email" | mail -s "This is the subject line"

I get:

mail: cannot send message: Process exited with a non-zero status

If I try to use a sendmail command it just hangs and doesn't do anything.

Neither result in an email being sent.

Where should I start troubleshooting/diagnosing?

1 comment
Be the first one to answer this question.