🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82260

Re: Proposed Cleanfeed changes (vs. Release 271):

#82260
From: D. Stussy
Date: Mon, 30 Nov 2009 22:39
136 lines
7343 bytes
"Steve Crook" <steve@mixmin.net> wrote in message
news:slrnhh7c7q.r6b.steve@news.mixmin.net...
> On Mon, 30 Nov 2009 03:02:09 -0000, Junior wrote in
> Message-Id: <hevcjg$s4r$3@tioat.net>:
>
> >> Changes:
> >> 1)  Print cleanfeed release number/date into statistics files.
> Done.  The version and date are now extracted from svn:keywords and
> auto-inserted into $version and $version_date.

I figured you'd convert that to whatever generated your versioning.
Thanks.

> >> 2)  Filter for politics groups need not consume one of the two local
> >> topics.
> I'm not sufficiently convinced that this is a good idea.  I added the
> topic filters to provide operators with a means to moderate their
> services if they so choose, not as a global policy.
>
> In its default form, Cleanfeed is a spam filter and whilst it has
> functionality to do more, I think that should be left to the operators
> discretion.  Much of the functionality I've added recently has been
> aimed at improving it's configurability at a local level which is why
> many things (like topic filters) are turned off by default.

I thought about using one of the two offered "topic[12]" fields for the
politics filter.  However, here in the U.S., there's alot of traffic (and
alot of misplaced traffic).  Repeatedly, the filter shows up in my list of
reasons for article blocking among the top 5.  The EMP filter usually
occupies the top spot.

My top-10 filter rejection reasons for November 29, 2009 (midnight to
midnight, PST):
94338 articles accepted.  26912 Rejected (or 22.195%).
Reason Count  (percentage of rejection)
#1 EMP (md5) 10464   (38.882%)
#2 EMP (phn path) 7947   (29.530%)
#3 Too many newsgroups (politics) 1635   (6.075%)
#4 Binary Image: misplaced jpg 1165   (4.329%)
#5 Subject (~~~) 914
EMP (phn nph) 783
EMP (fsl) 544
HTML embedded image 354
Cancel for rejected article 344
Body (http://natsjobs.com) 332

At #15:
Too many newsgroups (meow) 142   (0.528%)

Being the #3 rejection reason is a good reason for it to have its own
sub-filter.  2 out of every 33 rejections occur for this reason.  About 1
in 74 (or 6 in 445)articles are matched by this cross-posting filter.

If someone doesn't want this locally, they may turn up the
non-political-group crosspost count (defaults to 2) to a higher value.

There also seems to be a spammer who is posting to random political groups
articles between 185,000-200,000 bytes about every half hour (crossposted
to 5 groups at a time) which isn't being caught by this filter.  However,
he also posts to other groups.  Examples:

<pnr7h59b597vdt57k0pkk99isk96udkb85@4ax.com> 195950
soc.culture.israel,alt.politics,us.politics,alt.politics.liberal,alt.politi
cs.liberalism
<4gs7h5p7eish91ucginccb86v6uc29ipr0@4ax.com> 196309
alt.sci.physics,sci.logic,rec.org.mensa,alt.fan.tolkien,alt.fan.letterman
<rms7h5h6aivst3igob1jdj2iio0vm4913j@4ax.com> 196339
alt.arabic.politics,talk.politics.mideast,soc.culture.arabic,alt.politics.b
ritish,nz.general

Maybe in Europe, you're not seeing these abusive articles.  However, they
are happening in North America.

> >> 3)  Fix "Reply-To:" header check.  ".invalid" TLD not valid for it.
> This is reasonable but at the moment Cleanfeed uses the same filter for
> From, Reply-To and Sender headers.  Whilst foo@bar.invalid might be
> abuse of a Reply-To header, it's quite correct in a From header.  Is
> there justification for implementing this by default when you could just
> use a local entry like:
> return reject("Invalid Reply-To")
>   if $hdr{'Reply-To'} =~ /\.invalid$/;

Did you look at how I implemented it?  It starts with the same string as
for From/Sender, appending ".invalid" as a TLD.

-                if $hdr{'Reply-To'} =~ $Bad_From_RE;
+               if $hdr{'Reply-To'} =~ qr/($Bad_From|@(.+\.)?invalid>?$)/i;

The ONLY reason to have a reply-to header is when the from header is
invalid to provide a VALID mailbox.  Providing a specifically different bad
mailbox than the From header is what some newsgroup spammers are doing, and
makes no sense.  If one doesn't want replies at all and the From header is
already pointing at a bogus mailbox, the Reply-to header should be OMITTED
(as it's optional to begin with).  In other words, when "Reply-To:" is
used, it should be with a valid, reachable mailbox.

> >> 4)  Make message-ID checking case insensitive.
> Done.
>
> >> Default/sample "bad_from" file contents (targets RFC 2606 entries,
common
> >> syntax errors, and Microsoft TLD abuse):
> >> ^@
> >> @\.
> >> @[^(, ]*\.\.
> >> @[[:alnum:]]*@
> >> @(.+\.)?test>?$
> >> @.+\.phx\.gbl>?$
> >> @(.+\.)?[0-9]*>?$
> >> @(.+\.)?localhost>?$
> >> @(.+\.)?localdomain>?$
> >> @(.+\.)?example(\.[a-z]{3,})?>?$
> This is a good example and I'll include it in the examples section.  I
> don't think it's a good default as RFC abuse of the From header doesn't
> always imply spam.  I suspect this would reject thousands of posts every
> day that are legitimate in all other respects.

Including it as an example is acceptable.  My personal version of the file
has about 15 more entries targeting specific spammers and trolls.

I find that daily, these rules reject between 800 and 1200 articles per
day.  I've examined the articles (when they show up at google-groups) and
most were either spam or trolling.  Rules 1-4 and 7 target syntax errors,
rules 5 and 8-10 target RFC 2606 abuses, and rule 6 targets Microsoft's
abuse of a nonexistent TLD.  Rule 7 also catches NON-BRACKETED IP address
literals - which are not valid for domain names.  Only bracketed ("[...]")
address literals are valid.  Rule 7 will also catch the "long integer"
format of an IP address ("@#0123...") which was depreciated a while ago but
still supported by some mailers.

Rule 4, "the @@" rule, does occasionally have a false positive from some
people who are trying to be "cute elites" that substitute @ for A in their
handles.  However, I find that most hits do occur from including two "@"s
in a mailbox, thus breakng the syntax rules.

Technical Details
Message-ID: <hf1hj9$41l$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!border1.nntp.ams.giganews.com!nntp.giganews.com!ecngs!feeder.ecngs.de!feeder.news-service.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.snarked.org!not-for-mail
References: <hev2cb$bl9$1@snarked.org> <hevcjg$s4r$3@tioat.net> <slrnhh7c7q.r6b.steve@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <hf1hj9$41l$1@snarked.org>
Subject: Re: Proposed Cleanfeed changes (vs. Release 271):
Date: Mon, 30 Nov 2009 14:39:41 -0800
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <hev2cb$bl9$1@snarked.org> <hevcjg$s4r$3@tioat.net> <slrnhh7c7q.r6b.steve@news.mixmin.net>
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!border1.nntp.ams.giganews.com!nntp.giganews.com!ecngs!feeder.ecngs.de!feeder.news-service.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 136
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-118-30-21.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1259620777 4149 71.118.30.21 (30 Nov 2009 22:39:37 GMT)
X-Complaints-To: newsmaster+complaints@snarked.org
NNTP-Posting-Date: Mon, 30 Nov 2009 22:39:37 +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