doesn't receive mail from web site contact form

July 30, 2013 6.1k views
Hi! I have a web site ( located in digital ocean's servers and an email address with this domain name ( but is located in google's mail servers.The problem is when i try to send mail from contact form into web site, i don't receive anything.The code of html-php is correct,so you think that i have configure something in my web site settings or in mail server settings?? (digital ocean droplet:ubuntu 12.04 x32) Thanks in advance
5 Answers
Try installing an MTA: sudo apt-get install postfix

Then try sending an email through the contact form. Does that work?
no,unfortunately not!
thanks anyway
"The code of html-php is correct ..."

How did you confirm that?
This is a common problem with sendmail, (Google: sendmail slow)The solution:
Open your terminal and Type:


Now edit your host file:

sudo nano /etc/hosts localhost localhost.localdomain example.hostname

copy and replace with your hostname
Save and try again
^^^ Worked for me very well.
Have another answer? Share your knowledge.