Thread View: news.software.nntp
8 messages
8 total messages
Started by bill davidsen
Wed, 05 Aug 1998 00:00
INN-2.1 filters
Author: bill davidsen
Date: Wed, 05 Aug 1998 00:00
Date: Wed, 05 Aug 1998 00:00
19 lines
1494 bytes
1494 bytes
Am I really missing something or do posts to moderated groups go to the moderator mailing address without going through the filter? Or is there some switch or option I've missed? More to the point, is there a good reason why it's done this way, before I change it to filter before looking for moderation? I don't particularly want to shoot myself in the foot if there's a non-obvious reason for letting SPAM go through to the moderators, but some of them get really bitter about 2-3 pieces of mail a day and one business day to cancel people. -- Bill Davidsen (davidsen@tmr.com) CTO, TMR Associates, Inc What do you mean I shouldn't do things like that at my age? At my age if you don't do things like that you might die of natural causes or boredom!
Re: INN-2.1 filters
Author: Andrew Gierth
Date: Thu, 06 Aug 1998 00:00
Date: Thu, 06 Aug 1998 00:00
77 lines
2784 bytes
2784 bytes
>>>>> "Jeremy" == Jeremy <jeremy@exit109.com> writes:
Jeremy> This is one of the things fixed in the BOFH Filter Patch from
Jeremy> Andrew Gierth, which you'll find on my website at
Jeremy> http://www.exit109.com/~jeremy/news/antispam.html
WARNING: that patch is currently incompatible with actived.
(The actived patch returns the group info in a static area which is
overwritten on subsequent calls - so the group pointer saved by
ValidNewsgroups becomes invalid before being used for the mailing.
The fix is to do something like this (after applying the patch):
(this is for 1.7.2+insync)
(in ValidNewsgroups)
case NF_FLAG_MODERATED:
if (!approved && !*modgroup) {
*modgroup = COPY(gp->Name);
}
break;
(in MailArticle)
/* Try to get the address first. */
if ((address = GetModeratorAddress(NULL, NULL, group)) == NULL) {
(void)sprintf(Error, "No mailing address for \"%s\" -- %s",
group, "ask your news administrator to fix this");
DISPOSE(group);
return Error;
}
DISPOSE(group);
(in ArtPost)
#if defined(DO_PERL)
/* Calls the Perl subroutine for headers management */
if ((p = (char *)HandleHeaders(article)) != NULL) {
if (idbuff) {
if (modgroup)
sprintf(idbuff, "(mailed to moderator for %s)", modgroup);
else
(void)strncpy(idbuff, HDR(_messageid), SMBUF - 1);
idbuff[SMBUF - 1] = '\0';
}
if (strncmp(p, "DROP", 4) == 0) {
syslog(L_NOTICE, "%s post %s", ClientHost, p);
if (modgroup)
DISPOSE(modgroup);
return NULL;
}
else if (strncmp(p, "SPOOL", 5) == 0) {
syslog(L_NOTICE, "%s post %s", ClientHost, p);
if (modgroup)
{
DISPOSE(modgroup);
return SpoolitTo(article, p, _PATH_SPOOLNEWS "/spam/mod");
}
else
return SpoolitTo(article, p, _PATH_SPOOLNEWS "/spam");
}
else
{
if (modgroup)
DISPOSE(modgroup);
return p;
}
}
#endif /* defined(DO_PERL) */
--
Andrew.
Re: INN-2.1 filters
Author: bill davidsen
Date: Thu, 06 Aug 1998 00:00
Date: Thu, 06 Aug 1998 00:00
43 lines
3083 bytes
3083 bytes
In article <Pine.LNX.3.96.980806115911.15279E-100000@penguin.mendelu.cz>, Another Victim of the Usenet Mafia <ag786@yfn.ysu.edu> wrote: | Just as a meaningless data point, I found that our reader machine | performed far better when nnrpd did no perl filtering, being able to | handle far more readers in its crippled state without this additional | overhead for each of several hundred readers. I assumed that you wouldn't even be able to see the filter (or lack thereof) as a performance issue, since the innd filter, which gets called eternally, uses no significant CPU. Is this really an issue? I assumed that had to be a smaller item than the innd filter. | What I did was to leave out the perl in nnrpd, but check for the presence | of a particular header in the innd filter to indicate the post was of | local origin, and then perform all the nnrpd action on the article, | including filtering with even more fascistic parameters to prevent our | lusers from posting more than two copies of the same message, while using | less strict parameters for the incoming news. If there's a performance issue, I might wind up doing that, too. But I want to measure the impact myself. | This has, however, even further removed the possibility to do checks on | moderated group posts without putting filtering into the mailer. However, | I do save copies of all posts, mailed or not, accepted or not, and lusers | haven't been too bad with mailing junk as of yet, so I haven't yet gotten | around to deciding whether it would be worth it to add such filtering. I think some of the moderators are bigger jerks than the users... banning an ISP because you get a dozen posts a week as spam seems like an admission that the moderator isn't willing to do the job. I was a moderator for several years, and I have little respect for someone who expects their Windows-based robomoderator to relieve them of doing any work. If you take a job you do the job. -- Bill Davidsen (davidsen@tmr.com) CTO, TMR Associates, Inc What do you mean I shouldn't do things like that at my age? At my age if you don't do things like that you might die of natural causes or boredom!
Re: INN-2.1 filters
Author: Jeremy
Date: Thu, 06 Aug 1998 00:00
Date: Thu, 06 Aug 1998 00:00
31 lines
1902 bytes
1902 bytes
bill davidsen <davidsen@tmr.com> wrote:
> Am I really missing something or do posts to moderated groups go to the
> moderator mailing address without going through the filter? Or is there
> some switch or option I've missed?
>
> More to the point, is there a good reason why it's done this way, before
> I change it to filter before looking for moderation? I don't
> particularly want to shoot myself in the foot if there's a non-obvious
> reason for letting SPAM go through to the moderators, but some of them
> get really bitter about 2-3 pieces of mail a day and one business day to
> cancel people.
Do you mean the nnrpd filter, filter_nnrpd.pl?
It went to the moderators first in 1.7, but I thought that was going to be
fixed for 2.0. I guess not.
This is one of the things fixed in the BOFH Filter Patch from Andrew
Gierth, which you'll find on my website at
http://www.exit109.com/~jeremy/news/antispam.html
The patch is there in 1.7.2 and 2.0 versions; I don't know if it works
on 2.1 (and haven't actually tried the 2.0 version myself).
--
Jeremy | jeremy@exit109.com
"The sky would not fall if an American President spoke the truth."
--Ronald Reagan
Re: INN-2.1 filters
Author: Another Victim of the Usenet Maf...
Date: Thu, 06 Aug 1998 00:00
Date: Thu, 06 Aug 1998 00:00
36 lines
2410 bytes
2410 bytes
On 6 Aug 1998, Jeremy wrote: > bill davidsen <davidsen@tmr.com> wrote: > > Am I really missing something or do posts to moderated groups go to the > > moderator mailing address without going through the filter? Or is there > > some switch or option I've missed? > > Do you mean the nnrpd filter, filter_nnrpd.pl? > It went to the moderators first in 1.7, but I thought that was going to be > fixed for 2.0. I guess not. Just as a meaningless data point, I found that our reader machine performed far better when nnrpd did no perl filtering, being able to handle far more readers in its crippled state without this additional overhead for each of several hundred readers. What I did was to leave out the perl in nnrpd, but check for the presence of a particular header in the innd filter to indicate the post was of local origin, and then perform all the nnrpd action on the article, including filtering with even more fascistic parameters to prevent our lusers from posting more than two copies of the same message, while using less strict parameters for the incoming news. This has, however, even further removed the possibility to do checks on moderated group posts without putting filtering into the mailer. However, I do save copies of all posts, mailed or not, accepted or not, and lusers haven't been too bad with mailing junk as of yet, so I haven't yet gotten around to deciding whether it would be worth it to add such filtering. Barry Bouwsma Mendelova Zemedelska a Lesnicka Univerzita v Brne, Ceska Republika
Re: INN-2.1 filters
Author: Jeremy
Date: Thu, 06 Aug 1998 00:00
Date: Thu, 06 Aug 1998 00:00
28 lines
1983 bytes
1983 bytes
bill davidsen <davidsen@tmr.com> wrote: > Another Victim of the Usenet Mafia <ag786@yfn.ysu.edu> wrote: > >> Just as a meaningless data point, I found that our reader machine >> performed far better when nnrpd did no perl filtering, being able to >> handle far more readers in its crippled state without this additional >> overhead for each of several hundred readers. > > I assumed that you wouldn't even be able to see the filter (or lack > thereof) as a performance issue, since the innd filter, which gets > called eternally, uses no significant CPU. Is this really an issue? I > assumed that had to be a smaller item than the innd filter. Embedding Perl in nnrpd will make it bigger; almost double the size, actually. I just tried it, with some 2.0 snapshot I have lying around: -rwxr-x--- 1 jeremy staff 724176 Aug 6 17:15 nnrpd-noperl* -rwxr-x--- 1 jeremy staff 1367432 Jul 12 06:38 nnrpd-perl* I'm not sure, though, if using a shared Perl will counteract this. My perl is static at the moment, and I don't feel like recompiling it right now. :) -- Jeremy | jeremy@exit109.com "Never tell me the odds." --Han Solo
Re: INN-2.1 filters
Author: Jan Isley
Date: Fri, 07 Aug 1998 00:00
Date: Fri, 07 Aug 1998 00:00
17 lines
1503 bytes
1503 bytes
According to Another Victim of the Usenet Mafia <ag786@yfn.ysu.edu>: > Just as a meaningless data point, I found that our reader machine > performed far better when nnrpd did no perl filtering, being able to > handle far more readers in its crippled state without this additional > overhead for each of several hundred readers. I run a dedicated local posting host and point all of my nnrpd systems at it. My perl filter lives in innd on the local posting host instead of in nnrpd on the reader systems. This is a most flexible setup. For instance, my main inn server can be down for maintenance yet people can still read and post, though their posts will not show up locally until the big inn box is back up. Jan
Re: INN-2.1 filters
Author: bill davidsen
Date: Mon, 10 Aug 1998 00:00
Date: Mon, 10 Aug 1998 00:00
51 lines
3292 bytes
3292 bytes
In article <6qd6d5$p2j$1@news1.exit109.com>, Jeremy <jeremy@exit109.com> wrote: | bill davidsen <davidsen@tmr.com> wrote: | > Another Victim of the Usenet Mafia <ag786@yfn.ysu.edu> wrote: | > | >> Just as a meaningless data point, I found that our reader machine | >> performed far better when nnrpd did no perl filtering, being able to | >> handle far more readers in its crippled state without this additional | >> overhead for each of several hundred readers. | > | > I assumed that you wouldn't even be able to see the filter (or lack | > thereof) as a performance issue, since the innd filter, which gets | > called eternally, uses no significant CPU. Is this really an issue? I | > assumed that had to be a smaller item than the innd filter. | | Embedding Perl in nnrpd will make it bigger; almost double the size, | actually. I just tried it, with some 2.0 snapshot I have lying around: | | -rwxr-x--- 1 jeremy staff 724176 Aug 6 17:15 nnrpd-noperl* | -rwxr-x--- 1 jeremy staff 1367432 Jul 12 06:38 nnrpd-perl* | | I'm not sure, though, if using a shared Perl will counteract this. | My perl is static at the moment, and I don't feel like recompiling | it right now. :) But the code portion will be shared regardless (at least on most UNIX), so the interesting number is the increase in unshared. nnrpd: 771848 + 122864 + 54744 + 106233 + 0 + 0 = 1055689 nnrpd: 202960 + 28756 + 33316 + 10805 + 0 = 275837 svr09 is running a non-perl compile, svr01 is running with perl. So the increase is 779852 bytes, while the increase in non-code bytes is 210964 bytes, which is enough to notice if you are tight on memory. On the other hand, that code is only used for posters, which are a pretty small number relative to lurkers, so I would expect that code to swap. I'm running the -D option, so that space is almost certainly copy on write, and therefore pretty minimal in impact. It still feels as if the impact should be tiny, unless you cater to a group of spammers who post only ;-) But I respect the actual number posted, although I want to measure on my own systems before I even contemplate giving up filtering at the post level. -- bill davidsen <davidsen@tmr.com> "If I were a diplomat, in the best case I'd go hungry. In the worst case, people would die." -- Robert Lipe
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