Article View: news.software.nntp
Article #81097Re: filter_nnrpd.pl and errors
From: D. Stussy
Date: Mon, 25 May 2009 02:00
Date: Mon, 25 May 2009 02:00
48 lines
3385 bytes
3385 bytes
"Ray Banana" <rayban@banana.shacknet.nu> wrote in message news:8063fqluvn.fsf@banana.shacknet.nu... > Thus spake Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> > > To be consistent, we should have the same behaviour with innd. filter_art() > > is mostly used as an antispam filter and we then have to *reject* all articles > > if Cleanfeed dies. > > I'm not very appealed by that... > > Neither am I. I prefer to get spam in this case rather than getting no > articles at all. You can always clean up the spam after receiving it, > but it's quite difficult to get articles you have already rejected. If rejections were to occur, it should be with the code that says "deferred - try again later" (used when a server already has a offer of the article from a different peer in hand). > >> nnrpd logs filter errors with 'err' syslog priority. IMHO this is bad (and > >> maybe wrong). Since filtering is a vital feature, errors should be logged > >> with 'crit' priority instead 'err'. > [...] > > However, is it really what should be done? > > No. Paolo's suggestions are entirely focussed on aioe's setup, which is > quite different from other setups. If the integrity of his server > entirely relies on the filter code, he could possibly run his entire > filter in an eval() block and thus reject articles even if his filter > code dies and also issue error messages with a severity he considers > appropriate. Conversely, I don't run a posting filter, but occasionally I've noted log entries complaining that one (that I don't have) can't be found. Maybe there should be yet another option in inn.conf regarding this: usepostingfilter: no/false | yes/true | required yes and no are obvious. With '"required", nnrpd should exit with a fatal error if it's missing, and if the filter exits unexpectedly, the message is rejected. With "no", the missing log entries are skipped. Does that make everyone happy?
Technical Details
Message-ID:
<gvcu48$cv4$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!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.78.MISMATCH!feeder.news-service.com!postnews.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mailReferences:
<gv8scl$t24$1@aioe.org> <gvb1ud$v18$1@news.trigofacile.com> <8063fqluvn.fsf@banana.shacknet.nu>Show Full Headers
Complete Article Headers
Message-ID: <gvcu48$cv4$1@aux.snarked.org> Subject: Re: filter_nnrpd.pl and errors Date: Sun, 24 May 2009 19:00:40 -0700 From: "D. Stussy" <spam@bde-arc.ampr.org> References: <gv8scl$t24$1@aioe.org> <gvb1ud$v18$1@news.trigofacile.com> <8063fqluvn.fsf@banana.shacknet.nu> 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!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.78.MISMATCH!feeder.news-service.com!postnews.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 48 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 1243216840 13284 71.106.211.188 (25 May 2009 02:00:40 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Mon, 25 May 2009 02:00:40 +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 X-Original-Bytes: 3180