You need to utilize sendmail's milter interface to write an application to strip out these headers.
On Thu, Apr 11, 2013 at 11:21:14PM -0700, Philip Guenther wrote: > On Thu, Apr 11, 2013 at 10:57 PM, Tony Berth <[email protected]> wrote: > > I'm running a 386 5.2 OpenBSD box with sendmail and would like to strip > > following headers from the outgoing e-mails: > > > > *Received:* from x.x.x.x > > (SquirrelMail authenticated user <user>) > > by new.host.name with HTTP; > > Thu, 11 Apr 2013 14:31:59 +0300 > > [from the above I would like to strip the IP address of the webclient, the > > MUA as well as the logged-in user] > > > > *References:* <[email protected]> > > <[email protected]> > > <[email protected]> > > <[email protected]> > > [from the above I would like to strip the history of the refes] > > > > *User-Agent:* SquirrelMail/1.4.22 > > [from the above I would like to remove the MUA] > > There's no way to do that inside sendmail itself. > > What problem are you trying solve by making those changes? > > (Changing References is particularly rude: "Hi, I want to make it > harder for people to follow email conversations and make my users look > like idiots!") > > > Philip Guenther

