[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing received from header



+ Compconsultant <compconsultant@xxxxxxxxx>:

| I would like for [the Received] header to not be part of relayed
| outgoing mail as I would like mail to appear as if it was being sent
| from the office, where this header of course does not show up if in
| fact we were in the office.
| 
| I poked around the various qmail files and programs, etc., and don't
| see any obvious way of doing this. Is there a stock way? Or, does it
| take using some sort of QMAILQUEUE script/program that I would
| create?

Piping the messages through a script on its way into qmail-queue would
be the way to do it, yes.  For example, something like

  sed -e '/^Received:/d;/^$/{:body;n;bbody;}'

(But test it with the sed on your mail server first.)

- Harald