Thread View: news.software.nntp
9 messages
9 total messages
Started by D. Stussy
Wed, 03 Feb 2010 22:30
Re: Any chance that cleanfeed and noceum will start blocking "banter" spam?
Author: D. Stussy
Date: Wed, 03 Feb 2010 22:30
Date: Wed, 03 Feb 2010 22:30
62 lines
3874 bytes
3874 bytes
"Steve Crook" <steve@mixmin.net> wrote in message
news:slrnhmj369.m0f.steve@news.mixmin.net...
> ["Followup-To:" header set to alt.free.newsservers.]
> On Mon, 01 Feb 2010 09:49:11 -0500, Some Guy wrote in
> Message-Id: <4B66E9E7.D06016B@Guy.com>:
> > I'm hoping that an attempt will be made to filter usenet posts
> > originating from servers operated by Kevin Middleton and his Banter
> > domaims. A filter implimented in cleanfeed or noceum might operate as
> > follows:
> >
> > Filter based on the presence of "banter" in the message ID.
> >
> > Filter based on From: containing the Message-ID.
> >
> > Filter based on Lines: containing the value 1 (and the real line-count
> > does not equal 1)
>
> The false lines count is caused by the lines being incorrectly
> terminated, (LF instead of CRLF). This is probably a bug in the gateway
> code being used.
>
> I'll log matching articles for a few days and see what turns up. My
> initial impression is that it's low volume and easy to filter using
> xover data.
So far in 24 hours, regex "banter\.co(m|\.uk)>$" applied to the message-ID
has yielded no false positives, at least at my site.
One note for Steve: refuse_messageids is useful ONLY for streaming mode.
In my local configuration, I add this code:
sub local_filter_last {
return reject(($2)?"Message-ID ($2)":'Message-ID Refused','Bad
Message-ID')
if $hdr{'Message-ID'} =~ /$config{refuse_messageids}/io;
}
I use $2 because of how my refuse_messageids regex is constructed, but my
point is that you may want to add an option for those who get messages that
match. I find that not all sites use "streaming mode" (CHECK or IHAVE) and
just blindly send via TAKETHIS, so some articles that would have been
rejected get through without the additional check that I locally add.
Documentation:
http://www.mixmin.net/cleanfeed/regex.html#refuse_messageids
"Messages with a Message-ID matching this regex will be rejected."
Consider changing to:
"Messages with a Message-ID matching this regex will be rejected during
CHECK or IHAVE. Messages so rejected are counted as refused. Some sites
may not use steaming mode and may send all articles via TAKETHIS. To
refuse articles from such peers, one should add code in cleanfeed.local."
Make reference to a sample (or put into a sample "cleanfeed.local" file):
sub local_filter_last {
return reject('Message-ID Refused','Bad Message-ID')
if $hdr{'Message-ID'} =~ /$config{refuse_messageids}/io;
}
Re: Any chance that cleanfeed and noceum will start blocking "banter" spam?
Author: Julien ÉLIE
Date: Wed, 03 Feb 2010 23:17
Date: Wed, 03 Feb 2010 23:17
28 lines
2576 bytes
2576 bytes
Hi D. Stussy, > One note for Steve: refuse_messageids is useful ONLY for streaming mode. > > I use $2 because of how my refuse_messageids regex is constructed, but my > point is that you may want to add an option for those who get messages that > match. I find that not all sites use "streaming mode" (CHECK or IHAVE) and > just blindly send via TAKETHIS, so some articles that would have been > rejected get through without the additional check that I locally add. Hm, it is true that TAKETHIS commands do not call the Perl and Python routines to refuse message-IDs. However, starting from INN 2.5.2 and the implementation of RFC 3977 in innd, it is be very easy to add that check during TAKETHIS. As a matter of fact, the code of TAKETHIS has been rewritten (especially to handle the syntax of the command itself and return proper 501 response codes when the NNTP command is not valid). So we can add the message-ID check besides the other checks. Is it something we should do? -- Julien ÉLIE « If you lie to the compiler, it will get its revenge. » (Henry Spencer)
Re: Any chance that cleanfeed and noceum will start blocking "banter" spam?
Author: Julien ÉLIE
Date: Thu, 04 Feb 2010 08:44
Date: Thu, 04 Feb 2010 08:44
18 lines
2029 bytes
2029 bytes
Hi D. Stussy, > I find that not all sites use "streaming mode" (CHECK or IHAVE) and > just blindly send via TAKETHIS, so some articles that would have been > rejected get through without the additional check that I locally add. Note that even with IHAVE, the check done is not optimal. A peer can announce "IHAVE <mid1>" and actually send <mid2>. The filter will only check <mid1> (mentioned in the NNTP initial command). The same would affect TAKETHIS, if a check was done for it too. Another message-ID can be announced. -- Julien ÉLIE « Le temps, c'est des sesterces. » (Coquelus)
Re: Any chance that cleanfeed and noceum will start blocking "banter" spam?
Author: Steve Crook
Date: Thu, 04 Feb 2010 10:26
Date: Thu, 04 Feb 2010 10:26
17 lines
1859 bytes
1859 bytes
On Thu, 4 Feb 2010 09:44:12 +0100, Julien ÉLIE wrote in Message-Id: <hke1cm$nit$1@news.trigofacile.com>: > Note that even with IHAVE, the check done is not optimal. > A peer can announce "IHAVE <mid1>" and actually send <mid2>. > The filter will only check <mid1> (mentioned in the NNTP initial command). > > The same would affect TAKETHIS, if a check was done for it too. > Another message-ID can be announced. Hi Julien, Are there valid instances where a peer would announce IHAVE <mid1> but send <mid2>? If there are never valid instances then perhaps INN itself should reject such articles. If this isn't practical then it would be best if TAKETHIS was checked in the same manner as IHAVE so that Cleanfeed can take action where <mid1> != <mid2>.
Re: Any chance that cleanfeed and noceum will start blocking "banter" spam?
Author: Julien ÉLIE
Date: Thu, 04 Feb 2010 17:09
Date: Thu, 04 Feb 2010 17:09
50 lines
3315 bytes
3315 bytes
Hi Steve,
> Are there valid instances where a peer would announce IHAVE <mid1> but
> send <mid2>?
I don't know. It should normally not happen.
> If there are never valid instances then perhaps INN itself
> should reject such articles.
RFC 3977 explicitly mentions in Section 6.3.2.3 that nothing forbids
such a thing:
Example of sending an article to another site that rejects it. Note
that the message-id in the IHAVE command is not the same as the one
in the article headers; while this is bad practice and SHOULD NOT be
done, it is not forbidden.
[C] IHAVE <i.am.an.article.you.will.want@example.com>
[S] 335 Send it; end with <CR-LF>.<CR-LF>
[C] Path: pathost!demo!somewhere!not-for-mail
[C] From: "Demo User" <nobody@example.com>
[C] Newsgroups: misc.test
[C] Subject: I am just a test article
[C] Date: 6 Oct 1998 04:38:40 -0500
[C] Organization: An Example Com, San Jose, CA
[C] Message-ID: <i.am.an.article.you.have@example.com>
[C]
[C] This is just a test article.
[C] .
[S] 437 Article rejected; don't send again
> If this isn't practical then it would be
> best if TAKETHIS was checked in the same manner as IHAVE so that
> Cleanfeed can take action where <mid1> != <mid2>.
We can do the check for the argument of TAKETHIS.
Note that we could also do the check when we read the real
message-ID provided in an article. The only drawback is that
it will slow INN a little (it is a call to a Perl/Python function).
--
Julien ÉLIE
« Le temps, c'est des sesterces. » (Coquelus)
Re: Any chance that cleanfeed and noceum will start blocking "banter" spam?
Author: D. Stussy
Date: Thu, 04 Feb 2010 22:43
Date: Thu, 04 Feb 2010 22:43
34 lines
2489 bytes
2489 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:hkd059$ob2$1@news.trigofacile.com... > > One note for Steve: refuse_messageids is useful ONLY for streaming mode. > > > > I use $2 because of how my refuse_messageids regex is constructed, but my > > point is that you may want to add an option for those who get messages that > > match. I find that not all sites use "streaming mode" (CHECK or IHAVE) and > > just blindly send via TAKETHIS, so some articles that would have been > > rejected get through without the additional check that I locally add. > > Hm, it is true that TAKETHIS commands do not call the Perl and Python > routines to refuse message-IDs. > > However, starting from INN 2.5.2 and the implementation of RFC 3977 > in innd, it is be very easy to add that check during TAKETHIS. > As a matter of fact, the code of TAKETHIS has been rewritten (especially > to handle the syntax of the command itself and return proper 501 response > codes when the NNTP command is not valid). > > So we can add the message-ID check besides the other checks. > > Is it something we should do? I don't see any modification to INN or its perl filter interface as necessary, especially as there is no way to abort the sending of the article. This is a problem for the filter itself.
Re: Any chance that cleanfeed and noceum will start blocking "banter" spam?
Author: Julien ÉLIE
Date: Thu, 04 Feb 2010 22:46
Date: Thu, 04 Feb 2010 22:46
19 lines
2136 bytes
2136 bytes
Hi Dieter, >> Hm, it is true that TAKETHIS commands do not call the Perl and Python >> routines to refuse message-IDs. >> >> So we can add the message-ID check besides the other checks. > > I don't see any modification to INN or its perl filter interface as > necessary, especially as there is no way to abort the sending of the > article. It won't prevent the whole article from being sent, but it will prevent unwanted message-IDs from being accepted. -- Julien ÉLIE « Le temps, c'est des sesterces. » (Coquelus)
Re: Any chance that cleanfeed and noceum will start blocking "banter" spam?
Author: D. Stussy
Date: Thu, 04 Feb 2010 22:55
Date: Thu, 04 Feb 2010 22:55
57 lines
3840 bytes
3840 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:hkeuvv$jji$1@news.trigofacile.com... > > Are there valid instances where a peer would announce IHAVE <mid1> but > > send <mid2>? > > I don't know. It should normally not happen. Except for specific manual hacks or programming errors, how could it happen? > > If there are never valid instances then perhaps INN itself > > should reject such articles. > > RFC 3977 explicitly mentions in Section 6.3.2.3 that nothing forbids > such a thing: > > Example of sending an article to another site that rejects it. Note > that the message-id in the IHAVE command is not the same as the one > in the article headers; while this is bad practice and SHOULD NOT be > done, it is not forbidden. > > [C] IHAVE <i.am.an.article.you.will.want@example.com> > [S] 335 Send it; end with <CR-LF>.<CR-LF> > [C] Path: pathost!demo!somewhere!not-for-mail > [C] From: "Demo User" <nobody@example.com> > [C] Newsgroups: misc.test > [C] Subject: I am just a test article > [C] Date: 6 Oct 1998 04:38:40 -0500 > [C] Organization: An Example Com, San Jose, CA > [C] Message-ID: <i.am.an.article.you.have@example.com> > [C] > [C] This is just a test article. > [C] . > [S] 437 Article rejected; don't send again As any given article may have exactly ONE message-ID field, how is such possible? > > If this isn't practical then it would be > > best if TAKETHIS was checked in the same manner as IHAVE so that > > Cleanfeed can take action where <mid1> != <mid2>. > > We can do the check for the argument of TAKETHIS. > > Note that we could also do the check when we read the real > message-ID provided in an article. The only drawback is that > it will slow INN a little (it is a call to a Perl/Python function). Is it? We already maintain a list of article MIDs that have been offered (so as to issue "431 deferrals" to other peers), so isn't all we have to do is to scan this list (created by CHECK)? This should be internal to INN. Such may disallow TAKETHIS for articles not CHECKed - so is that a significant problem (or does that merely require "streaming mode" be enabled)? Certain configurations might break, but would any programs actually break (for all possible configurations)?
Re: Any chance that cleanfeed and noceum will start blocking "banter" spam?
Author: Julien ÉLIE
Date: Sat, 06 Feb 2010 12:28
Date: Sat, 06 Feb 2010 12:28
21 lines
2223 bytes
2223 bytes
Hi D. Stussy, >> > Are there valid instances where a peer would announce IHAVE <mid1> but >> > send <mid2>? >> >> I don't know. It should normally not happen. > > Except for specific manual hacks or programming errors, how could it > happen? I also agree that it normally does not happen in practice. So there is no need to check twice the message-ID. Only the one provided in the NNTP command should be enough. -- Julien ÉLIE « -- Où vous croyez-vous ici ? -- Où je me trouve, je sais. » (Astérix)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads