Article View: news.software.nntp
Article #81073filter_nnrpd.pl and errors
From: Aioe
Date: Sat, 23 May 2009 13:06
Date: Sat, 23 May 2009 13:06
24 lines
2395 bytes
2395 bytes
I know that when nnrpd tries to execute filter_post() inside filter_nnrpd.pl, if there's an error, an message is logged with *error* priority through syslog and the article is *accepted* . IMHO this is wrong. Since filter_post() in mostly used as an antispam filter, if that filter dies or can't be executed due some syntax error in the code, the article should be *rejected* instead of being *accepted* . In the currently used way, if due some reason the filter can't be executed, the server becomes completely open till the newsmaster becomes aware of that error than solves it. If all incoming articles are accepted, nobody perceives that failure and this makes longer the time needed by the newsmaster before solving it. In this way, the first *real* alert about filter malfunctions are those complaints sent against spam messages posted through the 'at this point /completely/ open' server. IMHO this nnrpd behaviour is highly unsafe because everyone could post everything if the filter dies. 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'. innwatch sends alerts to the newsmaster if there's some log line only inside news.crit, so if nnrpd logs filter errors with that priority, the server maintainer can receive an email that explains what is happening.
Technical Details
Message-ID:
<gv8scl$t24$1@aioe.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!transit4.hitnews.eu!feeder.news-service.com!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <gv8scl$t24$1@aioe.org> Subject: filter_nnrpd.pl and errors Date: Sat, 23 May 2009 15:06:16 +0200 From: Aioe <estasi@aioe.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!transit4.hitnews.eu!feeder.news-service.com!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail Newsgroups: news.software.nntp Followup-To: news.software.nntp Organization: Aioe.org Lines: 24 NNTP-Posting-Host: Hx/LJMpdpBwr86ob40VWwg.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.7.9 Cancel-Lock: sha1:0mkV3pkfNI6bffLXnYX6zt9wpV4= User-Agent: KNode/0.99.01