Article View: news.software.nntp
Article #54037Diablo 3.2 Addspam/delspam no longer work?
From: Frank Durda IV
Date: Tue, 28 Aug 2001 23:00
Date: Tue, 28 Aug 2001 23:00
131 lines
5724 bytes
5724 bytes
Diablo keepers:
I have been testing Diablo 3.2, having several existing 2.4 systems
and I have noticed that the list of IP addresses known for spamming
that I have listed specified in dnewsfeeds that I have used on 2.4
no longer get blocked in 3.2.
The internal filter is clearly on as I was able to put a test debug
message at the return from FeedQuerySpam and it consistently fails
to report listed IP addresses as being such. This feature of
Diablo worked fine in 2.4.
Here is the patch used to monitor the problem:
*** diablo.c.STOCK Fri May 11 15:30:35 2001
--- diablo.c Tue Aug 28 16:54:07 2001
***************
*** 2760,2767 ****
int how = 0;
hash_t hv = hhash(msgid);
! if (nntpPostingHost[0])
rv = FeedQuerySpam(HLabel, nntpPostingHost);
if (rv == 0)
rv = SpamFilter(hv, nntpPostingHost, &bh, &how);
--- 2760,2769 ----
int how = 0;
hash_t hv = hhash(msgid);
! if (nntpPostingHost[0]) {
rv = FeedQuerySpam(HLabel, nntpPostingHost);
+ syslog(LOG_DEBUG, "'%s' NNTP Detect B %s %d", nntpPostingHost,msgid,rv);
+ }
if (rv == 0)
rv = SpamFilter(hv, nntpPostingHost, &bh, &how);
The dnewsfeed file was then edited to contain:
label GLOBAL
addspam *24.179.129.79*
end
(that's a randomly-picked example site with a NNTP-Posting-Host
entry guaranteed to byte-by-byte match)
Then tail -f /news/log/news.debug | grep webtv
and in a little while...
Aug 28 17:38:47 cabal11 diablo[72145]: '24.179.129.79' NNTP Detect B <454oot0ip18b5o8uhss9ht5sgcghhfpta6@4ax.com> 0
Aug 28 17:38:56 cabal11 diablo[72141]: '24.179.129.79' NNTP Detect B <dg7ootc07sa7g52828lc35ohpg1169acc0@4ax.com> 0
Aug 28 17:38:59 cabal11 diablo[72129]: '24.179.129.79' NNTP Detect B <eg7ootsstjqsm6h3llrjgb594cphluc6tm@4ax.com> 0
Note the return value is "0" which according to the source
only means "could be spam", rather than "is spam", which is
what was returned in the 2.4 version.
If you change it to what we were doing in the 2.4 version
in order to disable the spam-by-volume checks:
label GLOBAL
delspam *
addspam *24.179.129.79*
end
Gets us
Aug 28 17:40:55 cabal11 diablo[72498]: '24.179.129.79' NNTP Detect B <qg7ootsgt2gnfchbmh4qkoqsmjiavihf59@4ax.com> 1
Aug 28 17:40:59 cabal11 diablo[72498]: '24.179.129.79' NNTP Detect B <tg7ootocvbcep19j9js1foc9mm5pe4n0rd@4ax.com> 1
Aug 28 17:41:08 cabal11 diablo[72581]: '24.179.129.79' NNTP Detect B <fg7ootsjtvnva8ed78m8ga6n8ur0oftved@4ax.com> 1
The value returned for all articles is now "1" (including those
that exactly match an addspam entry), and "1" means it isn't
spam as far as this test is concerned. In 2.4, an exact
match like this caused this function to return "-1" (eg "is spam").
The invocation line for Diablo gets the same results on 3.2
with or without a -S parameter. On 2.4, we used -S9000. The
high value is to make sure the spam-by-volume thing pretty-much
never triggered because it was evil.
On 3.2, diablo.config has:
internalfilter 16
The rest of the dnewsfeeds file that might be of interest
is altered slightly from the demo file:
label ISPAM
addgroup *
arttypes all
end
label ESPAM
addgroup *
arttypes !binary
end
#label IFILTER
# addgroup *
# delgroup *.bina*
# arttypes binary
#end
The goal here is to get NNTP-Posting-Host matching and blocking
working in 3.2 like it could be used in 2.4 WITHOUT causing
the spam-by-volume mechanism from running, which invariably
threw away stuff that should not be thrown away.
Any ideas as to why NNTP-Posting-Host matching is broken?
Thanks.
P. S. There is this statement in diablo-files.5 that indiciates
that there is an arbitrary limit of 256 addgroup/delgroup
entries per feed. Is this real? Is it the sum including
those listed in grouprefs and GLOBAL? All the real-life evidence
I have suggests this is yet-another bogus statement in the
documentation and there is no apparent limit. Anyone
really know?
Frank Durda IV - only this address works:|"The Knights who say "LETNi"
<uhclem.sep01%nemesis.lonestar.org> | demand... A SEGMENT REGISTER!!!"
|"A what?"
This Anti-spam address expires Sep. 30th |"LETNi! LETNi! LETNi!" - 1983
Copr. 2001, ask before reprinting.
Technical Details
Message-ID:
<273A8BA8D109167B.7DDF04D1E0A2F791.D7AB4B50DC6151A4@lp.airnews.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!sn-xit-04!supernews.com!cabal10.airnews.net!news.airnews.net!cabal1.airnews.net!news-f.iadfw.net!usenetShow Full Headers
Complete Article Headers
Message-ID: <273A8BA8D109167B.7DDF04D1E0A2F791.D7AB4B50DC6151A4@lp.airnews.net> Subject: Diablo 3.2 Addspam/delspam no longer work? Date: Tue, 28 Aug 2001 18:00:56 -0500 From: Frank Durda IV <uhclem.sep01@nemesis.lonestar.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!sn-xit-04!supernews.com!cabal10.airnews.net!news.airnews.net!cabal1.airnews.net!news-f.iadfw.net!usenet Newsgroups: news.software.nntp Organization: Airnews.net! at Internet America Lines: 130 X-Orig-Message-ID: <3B8C22A8.2FD7D399@nemesis.lonestar.org> Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library1-aux.airnews.net NNTP-Posting-Time: Tue Aug 28 18:03:44 2001 NNTP-Posting-Host: ![t8u1k-W2,4m0Q (Encoded at Airnews!) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 4.0-RELEASE i386) X-Accept-Language: en