🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #45254

Re: News routing software

#45254
From: Steve Walker
Date: Sun, 26 Mar 2000 00:00
110 lines
5058 bytes
On 26 Mar 2000 00:40:31 +0100, Sven Paulus <sven@karlsruhe.org> wrote:

>mouse@nospam.nibble.net wrote:
>|> Right now I only have a Linux version.  I'm not releasing the code
>|> right now, but all the code is standard Unix code.  The only
>|> requirement is it needs pthreads and mmap.
>
>... and libmd5, which isn't easy to find (I located a source RPM on a
>RedHat 5.x archive site).

Thanks for pointing it out.  The current version shouldn't have that
problem.  

>A few comments:
>
>  - I don't like the "almost everything in one directory" concept
>    (executables, data files, configuration), maybe you could add some
>    configuration directives to place them in different directories
>    (and a command line option to specify the configuration file)

You can now choose a config file by including the path to the file on
the command line.

For example:
./earthquake /etc/earthquake.conf

>  - the process doesn't drop root priviledges at any time, this
>    opens the door in case of security holes

I'll work on that.  It was just a quick and dirty way to get started.

>  - the process stays in the foreground, it doesn't detach itself
>    from the terminal (cosmetic)

At this point it's considered a feature.  Since I start and stop so
often during testing it would be a hassle to lookup a pid and send a
kill signal.  If you wish to run in the background just use the
command ./earthquake & for now.  The first non beta version will
detach on it's own.

>  - is there a way to reread configuration without having to 
>    shut down the server? HUP kills the process

I thought about it and I've decided against it for now.  The problem
is that to really reload you have to break all connections and stop
the external spamfilter.    If you do all that why not just kill the
process and restart it?   

>  - IHAVE isn't supported on incoming feeds

Does anyone still use IHAVE to send a feed?  It would be simple to
add, but does anyone really need it?  I'll add it anyway.  I'm just
wondering who uses it.

>  - QUIT takes quite a while to complete

It should now take no more than 5 seconds to hang up. :)

>  - if you give Message-IDs longer than 128 (or so) characters
>    after CHECK or TAKETHIS you're back on command state without
>    a reply (CHECK) or state change (TAKETHIS)

I've changed the max length of a message id to 512 characters.  Any
message id longer than this and earthquake gets confused.  Does this
sound like a reasonable limit.  It can be changed up to 4096 without
any recoding.

>  - earthquake accepts posts with duplicate headers

Do duplicate headers violate the RFC's?  I know that some mail to news
gateways will forward messages with several "Received:" headers.
Should they be rejected?  Also shouldn't this type of checking be part
the of external spam filter?  Suggestions anyone...

>  - in earthquake.conf it says that all patterns are regex, but
>    there are examples like "alt.binaries.pictures.erotica.*"
>    (instead of "^alt\.binaries\.pictures\.erotica\.") and
>    "news.nntpserver.com" (instead if "news\.nntpserver\.com")
>    (btw. are these patterns treated 

These strings are passed right into regcomp.  I've corrected some of
the examples.  While they are not technically correct they should work
even without escaping the . character all over the place.  Would
people rather see glob style pattern matching?

>  - what does "Feeding thread not updated in 9540265542 seconds so
>    killing it" mean? I didn't start the process in January 1970 ;-)

There is a thread that watches for stuck threads.  When a thread wants
to die (quit command) it just sets it's "last update time" to 0.   The
watch thread sees this and closes the thread down.  The non beta
version will not chatter so much to the log file.

>Yes, I know, this is only the first beta release, so don't take this
>list a criticism, but as a combined bug-report/feature request :-)

I love it.  I've fixed most of the item and there is a new version
available now.  Any more ideas?  It so much easier to fix problems if
they are pointed out.

>The concepts sound good and I think this software really fills a gap
>between NNTPrelay (wrong platform) and Cyclone (too expensive).

Thanks,
Steve Walker
mouse@nibble.net
http://nntprouter.nibble.net


Technical Details
Message-ID: <38de5f6d.1023032569@news.nntpserver.com>
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!not-for-mail
References: <(null)> <38dc7c3a$1_1@news.nntpserver.com> <Carla.Brescher@bypass.pool-88.oops.inka.de>

Show Full Headers
Complete Article Headers
Message-ID: <38de5f6d.1023032569@news.nntpserver.com>
Subject: Re: News routing software
Date: Sun, 26 Mar 2000 00:00:00 +0000
From: mouse@NOSPAM.nibble.net (Steve Walker)
References: <(null)> <38dc7c3a$1_1@news.nntpserver.com> <Carla.Brescher@bypass.pool-88.oops.inka.de>
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!not-for-mail
X-Deja-AN: 602428484
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Newsgroups: news.software.nntp