Article View: news.software.nntp
Article #80276Re: Can Cleanfeed filter on a specific user?
From: John F. Morse
Date: Sun, 08 Mar 2009 20:30
Date: Sun, 08 Mar 2009 20:30
111 lines
5572 bytes
5572 bytes
Steve wrote:
> On Sun, 08 Mar 2009 13:06:30 -0500, John F. Morse wrote in
> Message-Id: <gp11f6$jf$1@optima7.xanadu-bbs.net>:
>
>> Perhaps I'm using the wrong version?
>>
>> Which is current, 0.95.7b or 20020501?
>>
>
> Hi John,
>
> 0.95.7b was the last release made by Jeremy Nixon, the creator of
> Cleanfeed. I believe it dates from 1998.
>
> 20020501 was a beta release made by Marco d'Itri. Despite being beta,
> it is still the officially recommended version.
>
> The newest is produced and maintained by me and is based on Marco's
> 20020501. Details on it can be found here:
> http://www.mixmin.net/cleanfeed/
>
>> I think I'd have less trouble if I'd simply delete the older version. At
>> least there would be less confusion added to confusion. ;-)
>>
> All three are drop in solutions that will function with current INN2
> releases although 0.95.7b is probably quite outdated for today's spam.
>
OK, thanks for that info Steve. I am using the 20020501 version, so I
guess it should suffice.
I found a few errors in my configuration that Ray mentioned, and have
fixed them.
Specifically the filename cleanfeed.local.pl was renamed to eliminate
the .pl Perl extension.
After "ctlinnd reload all" I noticed new "action" in news.notice
including some errors:
Mar 8 13:23:50 localhost innfeed[823]: ME starting innfeed 2.4.3
(20050407 prerelease) at Sun Mar 8 13:23:50 2009
Mar 8 13:23:50 localhost innfeed[823]: loading /etc/news/innfeed.conf
Mar 8 13:23:52 localhost innd: filter: Cannot open /news/db/active: No
such file or directory
Mar 8 13:23:52 localhost innd: filter: Cannot open
/news/log/cleanfeed.stats: No such file or directory
Mar 8 13:23:52 localhost innd: SERVER reload all jfm
Mar 8 13:23:52 localhost controlchan[821]: starting
There is no home directory for news at the root level on Debian, so I
did some changing to the default pathnames in cleanfeed.local from:
sub local_config {
%config_local = (
block_late_cancels => 1,
active_file => '/news/db/active',
statfile => '/news/log/cleanfeed.stats',
# html_statfile => '/news/log/cleanfeed.stats.html',
stats_interval => 300,
do_emp_dump => 1,
emp_dump_file => '/news/tmp/empdump',
debug_batch_directory => '/news/spam',
);
To:
sub local_config {
%config_local = (
block_late_cancels => 1,
active_file => '/var/lib/news/active',
statfile => '/var/spool/news/cleanfeed.stats',
# html_statfile => '/var/spool/news/cleanfeed.stats.html',
stats_interval => 300,
do_emp_dump => 1,
emp_dump_file => '/tmp/empdump',
debug_batch_directory => '/var/spool/news/spam',
);
I just "guessed" at the proper directories to use, and I think these
would work without problems. Comments?
One oddity I see when I look at the cleanfeed.stats file is where
garbage appears at the end:
bin_allowed:
^\w+\.binae?r|^alt\.sex\.pictures|^fur\.artwork|^alt\.anonymous\.messages$|^de\.alt\.date
ien|^rec\.games\.bolo$|^comp\.security\.pgp\.test$|^sfnet\.tiedostot|^fido\.|^linux\.|^unidata|^xanadu
\.test|^xanadu\.binaries|^ym~}n^?}o^?^?^?ws}o{oker
I believe this is taken from filter_innd.pl where I had to add the
xanadu.test and xanadu.binaries groups a couple of years ago to get the
server to accept binaries. Jeffery warned me about changing items below
the warning line, but I had no choice then since cleanfeed.local was
being "ignored" due to my stupidity.
Maybe with the cleanfeed.local renamed it will now be working correctly,
and I can remove this edit to filter_innd.pl and let cleanfeed.local do
all of the work.
I do not see those garbage characters when viewing the bin_allowed
stanza via ssh or mounting the remote drive and using gedit with the
Perl filter on this local Ubuntu box. Perhaps it is a bug in
cleanfeed.stats that causes this. Any ideas?
--
John
Technical Details
Message-ID:
<gp19sd$2o0$1@optima7.xanadu-bbs.net>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!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!feeder.news-service.com!nntp.club.cc.cmu.edu!74.222.216.191.MISMATCH!optima7.xanadu-bbs.net!not-for-mailReferences:
<gou9pu$a8c$1@optima7.xanadu-bbs.net> <80ocwdgpxd.fsf@banana.shacknet.nu> <gouijv$ctq$1@news.trigofacile.com> <gp11f6$jf$1@optima7.xanadu-bbs.net> <slrngr8796.lgn.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <gp19sd$2o0$1@optima7.xanadu-bbs.net> Subject: Re: Can Cleanfeed filter on a specific user? Date: Sun, 08 Mar 2009 15:30:05 -0500 From: "John F. Morse" <xanadu.bbs@example.invalid> References: <gou9pu$a8c$1@optima7.xanadu-bbs.net> <80ocwdgpxd.fsf@banana.shacknet.nu> <gouijv$ctq$1@news.trigofacile.com> <gp11f6$jf$1@optima7.xanadu-bbs.net> <slrngr8796.lgn.steve@news.mixmin.net> 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!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!feeder.news-service.com!nntp.club.cc.cmu.edu!74.222.216.191.MISMATCH!optima7.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 111 Reply-To: dont.bother NNTP-Posting-Host: n100.xanadu-bbs.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: optima7.xanadu-bbs.net 1236544205 2816 192.168.89.210 (8 Mar 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Sun, 8 Mar 2009 20:30:05 +0000 (UTC) User-Agent: Thunderbird 2.0.0.19 (X11/20090105) In-Reply-To: <slrngr8796.lgn.steve@news.mixmin.net>