🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38843

Re: What's the order of refuse/reject processing in INN-2.2?

#38843
From: Andrew Gierth
Date: Tue, 27 Jul 1999 00:00
54 lines
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.

Technical Details
Message-ID: <87yag2q6g3.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <Mvjn3.549$X97.99287@ptah.visi.com>

Show Full Headers
Complete Article Headers
Message-ID: <87yag2q6g3.fsf@erlenstar.demon.co.uk>
Subject: Re: What's the order of refuse/reject processing in INN-2.2?
Date: Tue, 27 Jul 1999 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <Mvjn3.549$X97.99287@ptah.visi.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.mbox.zip!not-for-mail
X-Deja-AN: 505879002
X-Mayan-Date: Long count = 12.19.6.7.2; tzolkin = 7 Ik; haab = 10 Xul
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha