🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79068

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

#79068
From: Matija Nalis
Date: Fri, 23 May 2008 23:59
24 lines
2185 bytes
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.

-- 
Opinions above are GNU-copylefted.
Technical Details
Message-ID: <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!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.CARNet.hr!not-for-mail
References: <g156ij$98h$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrng3emj3.v4r.mnalis-news@eagle102.home.lan>
Subject: Re: Wanted: Perl filter routine (for cleanfeed) - newsgroup name as message-ID domain part?
Date: Fri, 23 May 2008 23:59:27 +0000
From: Matija Nalis <mnalis-news@voyager.hr>
References: <g156ij$98h$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!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.CARNet.hr!not-for-mail
Newsgroups: news.software.nntp
Organization: CARNet, Croatia
Lines: 24
NNTP-Posting-Host: dcm224.zg.xcarnet.carnet.hr
X-Trace: news2.carnet.hr 1211587167 25138 193.198.176.224 (23 May 2008
X-Complaints-To: abuse@CARNet.hr
NNTP-Posting-Date: Fri, 23 May 2008 23:59:27 +0000 (UTC)
Cancel-Lock: sha1:aQk+PdubF/f81JhpJnHtX37CdsU=
User-Agent: slrn/0.9.8.1pl1 (Debian)