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 <tonybe...@googlemail.com> 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:* <e253a79261e44ce227bbc166a9adaf84.squir...@new.host.name>
> >      <a369eabe7962808743d2de3a4134d0c9.squir...@new.host.name>
> >      <32410656f1b0057d8966ea544f68f1dd.squir...@new.host.name>
> >      <db43aa23cdc95bb7218fa33c8aa18efa.squir...@new.host.name>
> > [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

Reply via email to