Article View: news.software.nntp
Article #80487Cleanfeed and more troll stupidity - was Re: more on spaces in newsgroups line (or moron spaces in newsgroups line)
From: D. Stussy
Date: Sun, 29 Mar 2009 22:51
Date: Sun, 29 Mar 2009 22:51
79 lines
4428 bytes
4428 bytes
I've been experimenting with a filter in my local cleanfeed file that
checks the From, Sender, and Reply-To headers for some obviously bogus
entries (or banned users). I've noted the following:
Some posters who have invalid From headers (to prevent spam) also have
invalid Reply-To headers. Since "Reply-To:" is an optional header that
should be specified only when it gives an address different than the "From"
header, what's the purpose of intentionally inserting a bogus address in
both (especially if it's the same one)? Although not disallowed by
RFC/standard, is there some purpose to specifying a "Reply-To:" header that
has the same mailbox as the "From:" header?
Example (but live) rejection message: 437 Banned Reply-To address:
*@example.invalid
"@ ... .example.TLD" is ICANN and IANA reserved for documentation purposes,
and the ".invalid" TLD is reserved for specific bogus (anti-spam) purposes,
but what purpose does either have for being in a explicitly specified
"Reply-To:" header? Why isn't it enough to leave ".invalid" in the "From:"
header and OMIT the "Reply-To" completely? In other words, if "Reply-To"
is specified, MUST it be a resolvable mailbox?
-------------------
As far as cleanfeed goes, even if not used in the main file, I would like
to see this part of the code become part of mainstream cleanfeed:
read_regex('bad_from',\$Bad_From);
(and include it in the periodic re-read of the bad files too). It could be
put into a class of "defined" but reserved for local use variables, unless
someone feels we should adopt the whole "From:" filter system idea into the
mainstream too. My experimental filter also targets any "Sender:" header
with the same comparison.
Comments?
--
PS: I note that the domain "example.de" appears to be a registered (and
not reserved) domain - and I suspect it was done so before the "example"
2LD became one of the 19 reserved words not available for registration (per
the current ICANN TLD contracts). It is the only exception. Other
"examples" are registered but are controlled by either ICANN or IANA as
dummy domains.
Current local configuration (for the curious):
sub local_filter_last {
if ($Bad_From) {
return reject("Banned Reply-To address: $1",'Banned
Reply-To')
if $hdr{'Reply-To'} =~ /($Bad_From)/i;
return reject("Banned Sender address: $1",'Banned Sender')
if $hdr{'Sender'} =~ /($Bad_From)/i;
return reject("Banned From address: $1",'Banned From')
if $hdr{'From'} =~ /($Bad_From)/i;
}
return reject('MI5 Spam')
if $lch{subject} =~
/M.*I.*5.*P.*E.*R.*S.*E.*C.*U.*T.*I.*O.*N/i;
return reject('>>> Spam')
if $lch{subject} =~ />>> /;
}
sub local_config {
%config_local = (
# ... (local file placements)
refuse_messageids => '\.phx\.gbl>|@localhost>',
);
read_regex('bad_from',\$Bad_From);
}
bad_from file (regex's):
@.*localdomain
@.*example\.[a-z]{3,}$
random@miscreant.mailbox
Technical Details
Message-ID:
<gqou1i$fqh$1@aux.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!de-l.enfer-du-nord.net!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mailReferences:
<fmqdkq$1m0$2@blackhelicopter.databasix.com> <slrnfp22gn.1s7.pjr@pjr.gotdns.org> <1erp8zw7wpjht$.dlg@sqwertz.com>Show Full Headers
Complete Article Headers
Message-ID: <gqou1i$fqh$1@aux.snarked.org> Subject: Cleanfeed and more troll stupidity - was Re: more on spaces in newsgroups line (or moron spaces in newsgroups line) Date: Sun, 29 Mar 2009 15:51:23 -0700 From: "D. Stussy" <spam@bde-arc.ampr.org> References: <fmqdkq$1m0$2@blackhelicopter.databasix.com> <slrnfp22gn.1s7.pjr@pjr.gotdns.org> <1erp8zw7wpjht$.dlg@sqwertz.com> 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!de-l.enfer-du-nord.net!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 79 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-106-211-188.lsanca.dsl-w.verizon.net X-Trace: aux.snarked.org 1238367091 16209 71.106.211.188 (29 Mar 2009 22:51:31 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Sun, 29 Mar 2009 22:51:31 +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