I'm definitely a Linux newb so forgive me if this is a silly question
My Linode is running
Ubuntu 9.04.
A few months ago I installed sendmail and in order for it to work I modified my
/etc/hosts to be like this:
127.0.0.1 localhost.localdomain localhost [hostname]
127.0.0.1 [hostname].localdomain
[IP] [external hostname].members.linode.com
I don't understand why I did that, I just read it somewhere and it seemed to work.
Then about a month ago I realized many of the emails coming from my primary domain were being marked as spam because the headers had:
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
So I edited the
/etc/hosts again and modified the first line to be:
127.0.0.1 [domain] localhost.localdomain localhost [hostname]
(I added the domain name that the emails were coming from to the first line)
This seemed to help. The email headers looked better and I was getting a lot less bounces.
However, today I rebooted my server and that latest
/etc/hosts change took down my domain so a browser just showed "It Works!" (I guess I hadn't restarted Apache since then).
So it seems I have two choices:
(1) Be able to send emails that actually arrive at their destination
(2) Have a website that's actually live
I'm hoping there's a 3rd option that lets me have both
