Article View: news.software.nntp
Article #80251Can Cleanfeed filter on a specific user?
From: John F. Morse
Date: Sat, 07 Mar 2009 17:10
Date: Sat, 07 Mar 2009 17:10
99 lines
5237 bytes
5237 bytes
The problem I have is inappropriate posting in a Usenet group that I carry.
I only allow binaries in two groups, one is local with authentication
for readers access, and I can easily control it. The troublesome group
is a Usenet group that is fed to me by multiple peers, as well as
pullnews that I run on my cable ISP.
I don't think it is right for me to have to remove the group because of
one person's behavior, therefore I thought Cleanfeed could do the job.
But I can't get it to filter articles posted by this one individual.
I've added this persons "From" name (also displayed as the "Sender"),
and the e-mail domain in the From line, and the domain portion of the
Message-ID, to my cleanfeed.local -- but still the messages keep rolling
in daily.
I'm not even sure that cleanfeed.local is actually working. I can only
guess the filter is working because I get daily reports containing info
like this:
Server status:
Server running
Allowing remote connections
Parameters c 10 i 50 (2) l 1000000 o 1011 t 300 H 2 T 60 X 0 normal
specified
Not reserved
Readers follow enabled
Perl filtering enabled
Perl filter stats: Pass: 157616 Reject: 2723 Refuse: MD5: 61 PHL:
56 FSL: 24
I presume the Perl filter stats are the result of cleanfeed.local.pl and
not just filter.innd alone.
In /etc/news/filter/filter_innd.pl I have:
$config_dir = '/etc/news/filter';
Permissions for these two files are:
john@news:/etc/news/filter$ ls -al
-rw-r--r-- 1 root root 8525 2009-03-05 17:37 cleanfeed.local.pl
-rw-r--r-- 1 root root 53106 2008-06-16 21:07 filter_innd.pl
In cleanfeed.local.pl I have added the new data as a new item at the end
of the existing areas as shown below:
my @badaspnntps = (
'PostIT Now',
'Jobsearch Limited',
'AudioWeb', # audioweb.com
'Alex', # sex spam
'Paul Simmons', # OperationIT.com
'Alan', # equest.com
'Digital Media Works', # html sex spam
'Captive Technology', # ccsscorp.com jobs flood
'Computer Horzions ISG', # isgjobs.com jobs flood
'Mike Powers', # ResumeGateway.com jobs flood
'new_name', # The "From" (or "Sender") name
Further down:
# specific sites or companies ############################################
return reject("Job spam ($1)")
if $hdr{From} =~
/@(ajilon\.ca|ntes\.com|trai\.com|lesliecorp\.com|topechelon\.net|ERecruitingWorld\.com|(?:data\.)?JobBankUSA\.com|resumes\.gojobs\.com|
chemjobs\.net|eurosoft-inc\.com|newlonservices\.com|medzilla\.com|gisajob\.com|geologics\.com|brainhunter\.com|dsijobs\.com|offsitetechies\.com|new_name\.net)\b/
... Continuing:
# I suppose I can't add new domains forever
if (not $hdr{'X-Mailer'} and not $hdr{'X-Newsreader'} and
not $hdr{References} and
$hdr{__BODY__} =~
/www\.(?:pure-instinct\.com|get-some-mojo\.com|magnetizewomen\.com|makeherscream\.net|wantmoresex\.com|lovesenses\.com|
sexfit\.net|enhancelibido\.net|lovesenses\.com|bettersexlife\.com|erect4life\.com|androsfit\.com|smokefreelungs\.com|evidencegone\.com|biggertool\.com|forthepuss\.com|mo
reladies\.com|improve-libido\.com|openthathole\.com|at7x\.com|fuas\.net|dheafit\.com|sexboxoffice\.com|increasemanhood\.com|getsomeass\.com|nicotineaddict\.net|perkupsex
drive\.com|dateseverynight\.com|hot-products\.net|greatproducts\.net|landinbed\.com|getfemales\.net|sexattention\.com|allurefem\.com|smokerusa\.com|improve-libido\.com|y
oungeryears\.com|compelthem\.net|fightimpotency\.com|drawherin\.com|invitelust\.com|youlivelonger\.com|new_name\.net)/)
{
Again, I'm not sure this cleanfeed.local file is even read by Cleanfeed
(or filter_innd.pl).
Any help will be appreciated.
--
John
Technical Details
Message-ID:
<gou9pu$a8c$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!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.germany.com!postnews.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!74.222.216.191.MISMATCH!optima7.xanadu-bbs.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <gou9pu$a8c$1@optima7.xanadu-bbs.net> Subject: Can Cleanfeed filter on a specific user? Date: Sat, 07 Mar 2009 11:10:22 -0600 From: "John F. Morse" <xanadu.bbs@example.invalid> 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!news.germany.com!postnews.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.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: 99 Reply-To: dont.bother NNTP-Posting-Host: n100.xanadu-bbs.net Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: optima7.xanadu-bbs.net 1236445822 10508 192.168.89.210 (7 Mar 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Sat, 7 Mar 2009 17:10:22 +0000 (UTC) User-Agent: Thunderbird 2.0.0.19 (X11/20090105) X-Original-Bytes: 5025