Thread View: news.software.nntp
2 messages
2 total messages
Started by Frank Durda IV
Tue, 28 Aug 2001 23:00
Diablo 3.2 Addspam/delspam no longer work?
Author: 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.
Re: Diablo 3.2 Addspam/delspam no longer work? [Workaround Patch]
Author: Frank Durda IV
Date: Wed, 29 Aug 2001 03:13
Date: Wed, 29 Aug 2001 03:13
54 lines
3439 bytes
3439 bytes
[also sent to the diablo bugs mailing list - but that list looks pretty dead
with less than ten entries for August]
As reported earlier, addspam/delspam no longer work in Diablo 3.2 when
compared against 1.24 (I was calling it 2.4 - it was really 1.24).
I have determined that the problem lies with an optimzation added to
wildcmp.c since 1.24. This additional code skips comparisons if the "s" char
pointer points to a NULL. Apparently this optimization doesn't obviously
hurt addgroup/rmgroup operations. This is possibly because addgroup/delgroup
are usually affiliated with a specific feed, but addspam/delspam entries in
GLOBAL aren't. The calling code is somewhat less than unclear...
The correct solution would probably be to wade back into the recusrive
botch code that FeedQuerySpam calls and make sure that this case can't get
tripped when it should not. Of course, I am assuming that this optimization
that I am commenting-out has a benefit in at least one situation...
For now, the original addspam/delspam functionality can be restored with
this patch:
-----------------------------------------------------------------------------
*** wildcmp.c.STOCK Tue May 8 04:01:17 2001
--- wildcmp.c Tue Aug 28 21:43:21 2001
***************
*** 28,35 ****
--- 28,37 ----
for (;;) {
switch(*w) {
case '*':
+ #ifdef BREAK_ADDSPAM_DELSPAM_DIABLO_3.2
if (*s == 0)
return(-1);
+ #endif /*BREAK_ADDSPAM_DELSPAM_DIABLO_3.2*/
if (w[1] == 0) /* optimize wild* case */
return(0);
{
-----------------------------------------------------------------------------
As usual, don't forget to erase everything and rebuild everything. (Sigh.)
(Insert obligatory insulting comment on the continuing presence of xmake.)
The other issues noted in the mailing list submission remain issues.
Frank Durda IV - only this address works:|"Like the HitchHikers Guide to the
<uhclem.sep01%nemesis.lonestar.org> | Galaxy, when the Internet is
| inaccurate, at least it can be said
This Anti-spam address expires Sep. 30th | to be definitively inaccurate."
Copr. 2001, ask before reprinting.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads