I am having some trouble with emails being accepted via Google, Hotmail, Yahoo, etc. In message headers originating from my server I believe this is a problem:
Received: from mydomain.com (mydomain.com [127.0.0.1])
Through configuration changes I can get mydomain.com to be my actual domain but I have not been able to get the ip address to reflect my actual external IP address. I have tried edits to /etc/hosts, /etc/mail/sendmail.mc, and /etc/mail/submit.mc in numerous ways and combinations but with no progress. I am running make on the /etc/mail directory or using m4 on a file basis each time I edit an .mc file and restarting the sendmail service.
Help is appreciated.