My webserver wont send mail

Posted October 13, 2017 1.2k views
ApacheEmailUbuntu 16.04

Hi, My webserver wont send mail.
Its a webserver with ubuntu 16.04 an apache2 and php 7.0.
And is has multiple site’s running on it but it wont send mail if a contact form is filled in.

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
1 answer


I was having the same issues configured sendmail and postfix both one by one however I faced no such issue in past on ubuntu14 tried many workarounds but at last ended using sparkpost to send mails via server applications.

Hope you can get a workaround with following this tutorial:

Vivek Prism

by Justin Ellingwood
Postfix is a popular open-source Mail Transfer Agent (MTA) that can be used to route and deliver email on a Linux system. It is estimated that around 25% of public mail servers on the internet run Postfix. In this guide, we'll teach you how to get up and running quickly...