Thread View: news.software.nntp
5 messages
5 total messages
Started by Bert Hyman
Tue, 27 Jul 1999 00:00
What's the order of refuse/reject processing in INN-2.2?
Author: Bert Hyman
Date: Tue, 27 Jul 1999 00:00
Date: Tue, 27 Jul 1999 00:00
13 lines
1146 bytes
1146 bytes
There are lots of ways an article can be either refused or rejected by INN-2.2. Does anybody know in what order the various conditions are tested? From my logs it seems that the CleanFeed Perl filter is being called to process articles that would have been refused because they're posted to newsgroups I don't accept anyway. -- -- The opinions expressed in this message are my own and are not the opinions of anyone who does not hold those opinions. Bert Hyman | St. Paul, MN | bert@visi.com
Re: What's the order of refuse/reject processing in INN-2.2?
Author: Andrew Gierth
Date: Tue, 27 Jul 1999 00:00
Date: Tue, 27 Jul 1999 00:00
54 lines
2868 bytes
2868 bytes
>>>>> "Bert" == Bert Hyman <bert@visi.com> writes:
Bert> There are lots of ways an article can be either refused or
Bert> rejected by INN-2.2. Does anybody know in what order the
Bert> various conditions are tested? From my logs it seems that the
Bert> CleanFeed Perl filter is being called to process articles that
Bert> would have been refused because they're posted to newsgroups I
Bert> don't accept anyway.
Refusals happen before the article is actually received; if the peer
does a CHECK or an IHAVE for a message-id, the article is refused if
(checked in this order):
- the message-id is not syntactically valid
- the message-id begins '<cancel.' and refusecybercancels is set
- the Perl filter_messageid refuses the ID
- the ID is already in history
(If the ID passes these tests, but is already being handled by another
channel, then either a defer or a refuse will be done depending on a
per-peer flag.)
Rejections happen after the article is received, in this order:
- the article is too big (checked during reception to avoid hogging
all of RAM)
- ARTclean()
- invalid Message-ID header
- malformed headers or no body (not even a delimiter)
- bad, missing or duplicate headers
- incorrect line count (if enabled)
- invalid Date
- article too old, or more than DATE_FUZZ in the future
- bad Expires
- bad Newsgroups header (colon or whitespace)
- the article is a duplicate (already in history)
- the article has passed through a shunned (aliased) site
- Perl filter
- TCL filter
- unwanted Distribution:
- per-newsgroup checks; the group list is checked against active,
rejecting unapproved posts in mod groups, and against the access
list for the peer for poison flags
- article not in any wanted newsgroup
- if xref-slaving and the article has an invalid Xref.
I think that covers everything, unless I missed something.
--
Andrew.
Re: What's the order of refuse/reject processing in INN-2.2?
Author: Russ Allbery
Date: Wed, 28 Jul 1999 00:00
Date: Wed, 28 Jul 1999 00:00
27 lines
1792 bytes
1792 bytes
Brad Knowles <brad@shub-internet.org> writes: > Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: >> - the article is a duplicate (already in history) >> - the article has passed through a shunned (aliased) site >> - Perl filter >> - TCL filter >> - unwanted Distribution: >> - per-newsgroup checks; the group list is checked against active, >> rejecting unapproved posts in mod groups, and against the access >> list for the peer for poison flags >> - article not in any wanted newsgroup > Hmm. I'd be really interested to see the last couple of checks hoisted > higher in the list, so that they would be done before the Perl or TCL > filters. I don't suppose it would be all that hard to cut-n-paste the > code.... You don't want to do that. You want to run your EMP filters before you check to see if the article is in a group you carry, since that way you'll detect spam posted to alt.* groups you don't carry and by the time the alpha spam gets to groups you care about, you're already rejecting it. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: What's the order of refuse/reject processing in INN-2.2?
Author: Andrew Gierth
Date: Wed, 28 Jul 1999 00:00
Date: Wed, 28 Jul 1999 00:00
20 lines
1733 bytes
1733 bytes
>>>>> "Brad" == Brad Knowles <brad@shub-internet.org> writes: >> - per-newsgroup checks; the group list is checked against active, >> rejecting unapproved posts in mod groups, and against the access >> list for the peer for poison flags >> - article not in any wanted newsgroup Brad> Hmm. I'd be really interested to see the last couple of Brad> checks hoisted higher in the list, so that they would be done Brad> before the Perl or TCL filters. I don't suppose it would be Brad> all that hard to cut-n-paste the code.... Actually it would; because the group checks are tied together with the process of feeding the article to the outgoing feeds. New code would have to be added to undo the feeds if the filters rejected the code. -- Andrew.
Re: What's the order of refuse/reject processing in INN-2.2?
Author: Brad Knowles
Date: Wed, 28 Jul 1999 00:00
Date: Wed, 28 Jul 1999 00:00
23 lines
1730 bytes
1730 bytes
In article <87yag2q6g3.fsf@erlenstar.demon.co.uk>, Andrew Gierth
<andrew@erlenstar.demon.co.uk> wrote:
> - the article is a duplicate (already in history)
> - the article has passed through a shunned (aliased) site
> - Perl filter
> - TCL filter
> - unwanted Distribution:
> - per-newsgroup checks; the group list is checked against active,
> rejecting unapproved posts in mod groups, and against the access
> list for the peer for poison flags
> - article not in any wanted newsgroup
Hmm. I'd be really interested to see the last couple of checks
hoisted higher in the list, so that they would be done before the Perl or
TCL filters. I don't suppose it would be all that hard to cut-n-paste the
code....
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
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