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?