🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79069

Re: Wanted: Perl filter routine (for cleanfeed) - newsgroup name as message-ID domain part?

#79069
From: D. Stussy
Date: Sat, 24 May 2008 05:39
34 lines
2662 bytes
"Matija Nalis" <mnalis-news@voyager.hr> wrote in message
news:slrng3emj3.v4r.mnalis-news@eagle102.home.lan...
> On Thu, 22 May 2008 18:27:25 -0700, D. Stussy <spam@bde-arc.ampr.org>
wrote:
> > I'm not a perl expert or an expert on cleanfeed.  However, I've noted
that
> > the "operation sudden fall" spam uses the newsgroup name as the domain
part
> > of the message ID.  Certainly there are no hosts that happen to coincide
> > with newsgroup names - so has anyone written a snippet for this that one
may
> > add to cleanfeed to disallow this behavior?
>
> Dunno, but probably not, as it is mostly useless unless you're currently
> suffering under a attack. It is trivial for spammer to modify and avoid,
and
> next spam run probably won't be using it. And you do accumulate cruft, and
> it might hit a false positive (some annonce-bot might be using similar
> scheme, or something like that)
>
> However (untried, from the top of my head, and I haven't seen the spam in
> the first place), if you really want it, something along the lines of:
>
> foreach my $g (@groups) {
> return reject('spam') if $hdr{'Message-ID'} =~ /$g/;
> }
>
> in your local_filter_last() or similar.

Thanks.  One question:  Is the "@groups" variable a list of all groups from
the active file?  If so, then this could be placed in the message-ID
checking routine thus avoiding transfer of the message (or headers).

Technical Details
Message-ID: <g189m8$78k$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mail
References: <g156ij$98h$1@snarked.org> <slrng3emj3.v4r.mnalis-news@eagle102.home.lan>

Show Full Headers
Complete Article Headers
Message-ID: <g189m8$78k$1@snarked.org>
Subject: Re: Wanted: Perl filter routine (for cleanfeed) - newsgroup name as message-ID domain part?
Date: Fri, 23 May 2008 22:39:24 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <g156ij$98h$1@snarked.org> <slrng3emj3.v4r.mnalis-news@eagle102.home.lan>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 34
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-118-49-180.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1211607560 7444 71.118.49.180 (24 May 2008 05:39:20 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Sat, 24 May 2008 05:39:20 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478