Newsgroups: comp.mail.misc Date: Wed, 26 Feb 2003 18:27:55 -0800
> I have setup a smtp server to push outbound mail to our external relay. > I need to have all internal info removed from the headers. > Presently it is showing internal client name and ip. > How do i remove this? > Using sendmail 8.11 [...] > Received: from bm2.nasc.inter.net ([10.0.0.204]) > by app6.nasc.inter.net with esmtp (Exim 3.34 #1) > id 18o5ej-0007gH-00 > for test@recipient.net; Wed, 26 Feb 2003 12:47:45 -0500
with your excerpt above, you can understand the value of each of the several macros in use and choose your modified structure.
In 8.12.6 for instance, the structure is:
[$?sfrom $s $.$?_($?s$|from $.$_) $.$?{auth_type}(authenticated) $.by $j ($v/$Z)$?r with $r$. id $i$?u for $u; $|; $.$b]
To make a long story short, you can hide the internals with a line in your *.mc file such as:
define(`confRECEIVED_HEADER', `internal info suppressed')dnl
but you would not want to use this on your MX machine of record to the outside world. Understand please that removing such information may make it difficult for you to debug internal problems later, and is an example of "security by obscurity" which simply doesn't work.
tony