LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-31-2011, 03:11 PM   #1
struct
Member
 
Registered: Feb 2009
Posts: 68

Rep: Reputation: 10
Sendmail showing internal IP and hostname. How to change?


Hi guys,
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!
 
Old 06-02-2011, 11:46 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,249

Rep: Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298
Quote:
Originally Posted by struct View Post
Hi guys,
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:

Code:
HReceived: <whole bunch of weird sendmail macros>
and then hope you never need to track down an email problem.
 
Old 06-11-2011, 10:19 PM   #3
struct
Member
 
Registered: Feb 2009
Posts: 68

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by smallpond View Post
If some auditor is telling you it improves security, then hire a different security auditor.
Hahaha. I want to but it's not within my power to do so.
But thanks so much for the info. I just need to somehow get rid of the internal IP and hostname from showing up in the header.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hostname issue - showing "localhost" instead of actual hostname. ryes31 Linux - Server 9 12-12-2012 09:19 PM
after hostname change, syslogd still output previous hostname to messages file tiger2000 Linux - General 3 07-22-2009 10:36 PM
Hostname from IP? (internal) fdr Linux - Networking 4 07-22-2005 08:06 AM
Change hostname in X, sendmail starts slow Guru3 Red Hat 4 03-19-2004 04:44 PM
Sendmail and Hostname Change bmh.01 Linux - Software 3 05-31-2003 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration