This question already has an answer here:

I have installed my webserver from a computer at home. On Ubuntu Server, LAMP, everything works fine except email sending.

First I was getting:

Unable to send email

then I followed these directions.

Then I still got same error. I checked Apache logs and I found

sendmail: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: myservername.{null}

I changed the file and wrote my website domain like domain.com

At last, Drupal says "Email sent" but I receive no email. What is the problem?

marked as duplicate by kenorb, Adrian Cid Almaguer, Pierre.Vriens, AjitS, Krishna Mohan Jun 1 '16 at 5:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Have you used a devel php input to do a sendmail test? there is a question already answered here. How to programmatically send an email?

Also here is a great article on debugging emails... http://www.drupalcoder.com/blog/how-to-debug-outgoing-mails-in-drupal

Not the answer you're looking for? Browse other questions tagged or ask your own question.