On 04/12/13 09:57, Tony Berth wrote: > Dear group, > > 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] > > Thanks > > Tony
This is possible with the checkcompat() function - see the O'Reilly book "Sendmail", 4th Edition, Appendix C, "The checkcompat() Function". I successfully use this approach for removing various headers. -- Alexei Malinin