Originally Posted by struct
Bit stumped on how to disable or modify the email headers showing the internal IP and hostname of the server when using sendmail. I want this removed or change to just a domain name.
Can someone direct me to the right direction on how to do this?
Thanks in advance!
There's no simple way because it violates RFCs to not add a Received header and there is no good reason to do it.
If some auditor is telling you it improves security, then hire a different security auditor.
That said, you can hack /etc/mail/sendmail.cf to change the part that looks like:
HReceived: <whole bunch of weird sendmail macros>
and then hope you never need to track down an email problem.