So I am getting something strange. Some systems get the correct mail header and some do not. They are configured the same way and use DHCP
I researched and found this article :
https://www.linuxquestions.org/quest...domain-484792/
But this is inconstant in my environment. I have this in my host file on a working system (no modification to sendmail.cf file (default one)
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
We use dhcp
hostname shows :
farscape.mydomain.com
Mail comes to me like this (as I expect it to)
From:
logwatch@farscape.mydomain.com [mailto:logwatch@farscape.mydomain.com]
Sent: Thursday, January 28, 2010 12:24 PM
To:
root@farscape.mydomain.com
Subject: Logwatch for farscape.mydomain.com(Linux)
No i have the same file on another system the same way and I get this:
From: root_farscape2 [mailto:root@localhost.localdomain]
Sent: Thursday, January 28, 2010 3:31 PM
To:
root@localhost.localdomain
Subject: test
I made the changes to sendmail.cf file and that did not work either.
I then updated the host to add farscape2.mydomain.com along with the sendmail.cf file and it worked on those systems that had an issue. I dont understand why or what is happening.
sendmail.cf
cd /etc/mail
cp /etc/mail/sendmail.cf sendmail.cf.date
vi /etc/mail/sendmail.cf
Search for #Dj$w.Foo.com
Add new line
Dj$w.farscape2.mydomain.com
The one that works has not been modified.
Any help would be appreciated.