Daniel,

I have done this on my Unix and Linux boxen.  

One reply mentioned the Dm  section in sendmail.cf . . . it is
actually DM (both upper case letters)  DM defines a Masquerade host.

In addition to the other solutions already provided in previous 
replies, you may need to hack sendmail.cf. (probably 
/etc/sendmail.cf or /etc/mail/sendmail.cf depending on what 
version of sendmail you are running.

Install all the hacks that Gregory Hicks had in his reply, then:

Look for the "Format of headers" section.  there will be a line
that looks something like:

HReceived: $?sfrom $s $.$?_($?s$|from $.$_) $.by $j$?r with $r$. ($v/$Z) id
$i$?u for $u$.; $b

The host name is given by the $j and the (8.8.8+Solaris/8.8.8) is in
the ($v/$Z).  You can change or remove either or both.  You could also try
changing the $j to $M to use the masquerade host.

You can take out the host name, but if the upstream computer can 
resolve your IP address, it will put your host name in it's received
line.

The suggestion to use 

>There is hack chapter in Brian Costales with Eric Allman "Sendmail"
>O'Reily.  See the chapter "20: The checkcompat() Cookbook".

This would remove the Received line, but it has to be done on the mail
server.

Bob Gerrish
Unix Systems Administrator
Trim Systems, LLC
Seattle, WA
[EMAIL PROTECTED]

> -----Original Message-----
> From: Daniel Crichton [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 19, 2000 7:29 AM
> To: [EMAIL PROTECTED]
> Subject: Hiding my Solaris host in mail headers
> 
> 
> I've currently got some consultants setting up my Solaris box 
> to enable me 
> to send mail to our company mail server for sending out to 
> the internet. At 
> the moment the way that they have configured it brings up the 
> host name 
> and the current user id in the mail headers before passing to 
> my mail server, 
> and obviously I would rather hide these. The headers look like:
> 
> Received from user@localhost (8.8.8+Solaris/8.8.8) by host.domain.com
> 
> where host.domain.com is the name assigned to the Solaris box in it's 
> configuration.
> 
> The Solaris box is inside my firewall, and the SMTP mail 
> server is in my 
> "dmz", so I'd rather have the headers look like the Solaris 
> box is just another 
> PC mail client on my LAN (which do not add Received headers 
> themselves). 
> 
> Can anyone give me pointers on the configuration of sendmail 
> (I believe this 
> is what they are using) on my Solaris box so that it does not 
> create headers 
> in the message before passing to my SMTP mail server? I have no Unix 
> experience which is why consultants are setting it up (and 
> also because 
> they own the box, we rent it off them along with the 
> application software we 
> have running on the system).
> 
> Dan
> 
> ---
> D.C. Crichton                 email: [EMAIL PROTECTED]
> Senior Systems Analyst        tel:   +44 (0)121 706 6000
> Computer Manuals Ltd.         fax:   +44 (0)121 606 0477
> 
> Computer book info on the web:
>    http://computer-manuals.co.uk/
> Want to earn money? Join our affiliate scheme!
>    http://computer-manuals.co.uk/affiliate/
> -
> [To unsubscribe, send mail to [EMAIL PROTECTED] with
> "unsubscribe firewalls" in the body of the message.]
> 
-
[To unsubscribe, send mail to [EMAIL PROTECTED] with
"unsubscribe firewalls" in the body of the message.]

Reply via email to