X-Trace

Thomas Hochstein inn-workers at ml.th-h.de
Wed Oct 5 08:07:04 UTC 2011


"John F. Morse" schrieb:

> I'm not a Perl programmer. Perhaps commenting out lines 588-589 in 
> /etc/news/filter/filter_innd.pl or changing 589 would work?

No, that wouldn't do it, I think, as filter_innd.pl is filtering
postings on the feed; postings submitted by one of your users will be
taken care of by filter_nnrpd.pl.

X-Trace is already set at that point, so you'll have to change it in 
filter_nnrpd.pl. You may just omit the IP (while keeping the structure
of the header intact), you may scramble it or you may drop the header
altogether.

filter_nnrpd.pl snippets for

... omitting the IP (replacing it by 127.0.0.42):
| sub filter_post {
|    my $rval = "" ;             # assume we'll accept.
|    $modify_headers = 1;
|
|    # modify trace headers
|    $hdr{'X-Trace'} =~ s/ (\d+\.\d+\.\d+\.\d+) \(/ 127.0.0.42 (/;
|
|    return $rval;
| }

... dropping the header altogether:
| sub filter_post {
|    my $rval = "" ;             # assume we'll accept.
|    $modify_headers = 1;
|
|    # modify trace headers
|    undef $hdr{'X-Trace'};
|
|    return $rval;
| }

... scrambling the header:

Please see <http://news.albasani.net/technical/x-trace.html.en>. :)

>        8 # $Id: cleanfeed 306 2010-01-04 10:48:45Z cleanfeed $

That is a part of cleanfeed, a spam filter running on your feed.

Regards,
-thh



More information about the inn-workers mailing list