🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89097

Re: What did / do you find difficult about running Usenet / NNTP / INN server?

#89097
From: Julien ÉLIE
Date: Tue, 18 Jan 2022 13:54
131 lines
6207 bytes
Hi meff,

> A couple things that stood out to me:

Thanks for your valuable comments!


> 1. I only found out about the Checklist in this thread. I naturally
> went straight for the README and INSTALL first because they were at
> the top of the list of docs.

Now improved.


> 2. The "Choosing an article storage format" section seems a bit
> unnecessary for most folks. There's just enough detail to know that
> there's alternatives to things like "tradspool", but not enough to
> know exactly what benefits are offered by something like "cnfs". The
> "nerdy layperson" in me is confused at the choice, the engineer in me
> wants to know just how much faster under what conditions an allocated
> buffer as in cnfs is than tradspool, especially on newer filesystems
> and SSDs.

CHECKLIST is now opiniated.
Besides, I have noted to make a video to explain the differences, with a 
comparison in the form of a table with different criteria.


> 3. The "Overview Storage Mechanism" section also seems a bit
> overkill. The layperson in me would skim the section and pick
> "tradindexed" because "traditional" sounds conservative and easy? The
> engineer in me again wonders under which conditions I would pick one
> or the other. I went with ovsqlite because I'm familiar with the
> performance and guarantees of sqlite.

Same comment as for 2.


> 4. The syntax for the different files is confusing. It's like I'm
> learning a new config DSL for each thing.

Yes, you're totally right.
The long-term goal is to homogenize the syntax across all INN 
configuration files.  At least the new inn-secrets.conf file re-uses the 
same parser as inn.conf.  I hope to convert other configuration files in 
the future (patches welcome of course!).


> 5. I'm unclear as to why Perl and Python are compiled into INN for
> filter usage. Is it to avoid spawning a Perl or Python subprocess when
> running filters? How does this work?

To directly have access to a few functions and variables.  It's also faster.
Notably, spam-filtering with Cleanfeed or PyClean need building INN with 
Perl or Python support.

How does it work?  More background here:
   https://www.eyrie.org/~eagle/software/inn/docs/hook-perl.html
   https://www.eyrie.org/~eagle/software/inn/docs/hook-python.html


> At a high-level I'd like a couple things:
> 
> 1. An opinionated guide on setting up INN that picks sane defaults
> based on today's filesystems, SSDs, and networking assumptions. Folks
> interested in UUCP can certainly read about integrating rmail, but
> most folks setting up INN will just want NNTP support. I also don't
> know how hard it is for a modern computer/VPS to handle Usenet levels
> of traffic, so I'm unsure on how careful the operator needs to be when
> picking the article storage format or the overview storage mechanism.

Normally dealt with in CHECKLIST.


> 2. An architectural explanation on how INN works.

Needs doing, indeed.  I've noted that.


> 3. A clearer explanation on how filters work and why you'd even need
> filters.

What do you think is missing in our documentation about that?
I would appreciate a suggestion of wording I could just integrate in 
CHECKLIST or INSTALL, or elsewhere if you think it is useful.


Notwithstanding, please note that already existing paragraph in INSTALL:

"""
For the most common installation, a standalone news server, a suggested 
set of options is:

     ./configure --with-perl --with-python

provided that you have the necessary versions of Perl and Python 
installed. (Compiling with embedded Perl and Python interpreters will 
allow you to use one of the available excellent spam filters if you so 
choose.)
"""


And these ones in CHECKLIST I recently added:

[Compile Section]
"""
You will need to have the relevant external libraries to compile 
(depending on whether you use OpenSSL for TLS access to your news 
server, libcanlock to verify the authenticity of cancel articles, Perl 
and/or Python for spam and abuse filtering, etc.) and to correctly set 
the right paths to external programs (like for GnuPG to verify the 
authenticity of Usenet control messages).
"""

[Additional Configuration Section]
"""
You may want to install a spam and abuse filter. Good choices are either 
Cleanfeed (a widely used Perl filter you can find at 
<http://www.mixmin.net/cleanfeed/>) or PyClean (also a great Python 
filter you can find at <https://github.com/crooks/PyClean>).

You need to have an INN installation built with Perl and/or Python 
support to be able to use these filters.
"""

-- 
Julien ÉLIE

« Une fois rien, c'est rien ; deux fois rien, c'est pas beaucoup, mais
   pour trois fois rien, on peut déjà acheter quelque chose, et pour pas
   cher. » (Raymond Devos)
Technical Details
Message-ID: <ss6grc$262k0$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <srbfvb$ji$1@tncsrv09.home.tnetconsulting.net> <srd2tv$nnv$4@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <ss6grc$262k0$1@news.trigofacile.com>
Subject: Re: What did / do you find difficult about running Usenet / NNTP / INN server?
Date: Tue, 18 Jan 2022 14:54:52 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <srbfvb$ji$1@tncsrv09.home.tnetconsulting.net> <srd2tv$nnv$4@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 Jan 2022 13:54:52 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="2296448"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Cancel-Lock: sha1:7aCfKr8coNyq2wmbUmPe15lFRJQ= sha256:/CS3ayQHsS1R3SmREDTh8USjHj7kScTxJr2S/8HdUso= sha1:sfQe2ttya8zzKwz9uAOAEYWknDw= sha256:AH+G/4HkNOJOrNodVz0YbdS7UMOs67Q8dJg9cBNYBoo=
Content-Language: fr
In-Reply-To: <srd2tv$nnv$4@dont-email.me>