[rescue] Sendmail.cf - stripping X-headers

Sheldon T. Hall shel at cmhcsys.com
Fri Feb 15 10:36:29 CST 2002


Wrote "Loomis, Rip" <GILBERT.R.LOOMIS at saic.com> on Fri, 15 Feb 2002
10:17:38 -0500 ...

[snipped to essentials]

> Do you really want to strip *all* the headers, or only
> particular ones, or what are you *really* trying to accomplish
> (some of those X-blah headers could actually be useful).  You
> *might* just want to use the MASQUERADE features as discussed at
> http://www.sendmail.org/m4/masquerading.html

The masquerading stuff works fine, but I'm trying to masquerade my laptop's
LookOut as MAILER_DAEMON so I can send insulting bounce messages to
spammers.

> WHOOP WHOOP--Security Alert!

Ja, ja, and not to worry.  It's not exposed to the Internet, nor will it be.
No MX record, on a dial-up, behind a decent firewall, and it won't relay.
Although some of my questions here may indicate otherwise, I'm not a
complete maroon!

> You need to
> play around with the portions of sendmail.cf that munge headers--
> there's an example of how to *add* headers (for anti-spam) at
>  http://sendmail.net/810usingantispam.shtml#four

It's not my normal outgoing mailserver, so I don't think that will help.

> and some additional info on rulesets that read and act on headers at
>  http://www.sendmail.org/m4/anti-spam.html

I'll look, but the current .cf file was built by hand, not with M4 ....

> but overall I agree with Paul Sladen--poop stuff out to procmail,
> let it munge the headers, and re-insert it into the queue.

I'm not using procmail, though, which is why I was hoping for a simple,
"couple-lines-in-sendmail.cf" solution.

> Or, of course, you could ask how to do a specific change and I
> could dust off those grey cells and give you a specific ruleset/macro
> for a .cf file.  Could you be a little more vague...er...specific?

I just want to drop all the X-headers from outgoing mail.

Thanks.

-Shel
--
Sheldon T. Hall
shel at cmhc.com
206-842-2858
206-780-7971



More information about the rescue mailing list