🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38589

Re: INND: My quest to configure the beast.

#38589
From: Russ Allbery
Date: Sat, 10 Jul 1999 00:00
174 lines
8690 bytes
Mohan Khurana <mohan@razorfish.com> writes:

> I'm new to INN and new to setting up news servers in general, I was
> rather shocked to see how much configuration needs to go into INN in
> order to get it up and running.  I mean, this is really amazing, 22
> files in ~news/etc.  :)

News is complicated.  :)  One of the things that I've been thinking about
lately is the possibility of writing a "configure wizard" for INN; there
are a few very standard configurations that differ only in site names, and
there's no particular reason why INN couldn't come with a Perl script that
would build those configurations for you after asking you some questions.

Given my current workload, I probably won't get to this any time soon, so
I'm throwing it out as an idea if anyone else wants to work on it.  :)

> I currently have 1 internal newsgroups going, and they seem to be
> working properly.  My test newsgroup is abcd.test.  I shutdown innd, and
> made a new actives file (I will soon learn the Correct method).

        ctlinnd throttle 'editing active file'

Edit the active file and add the groups you want.  Then:

        ctlinnd reload active 'changed'
        ctlinnd go ''

That's the best way for large-scale changes to the active file.  (There
used to be a bug in INN that would cause it to shred the active file under
some circumstances if you did the above, but I'm pretty sure it's been
well squashed long ago.)  For smaller changes, just use ctlinnd newgroup,
ctlinnd rmgroup, and ctlinnd changegroup.

> In the active file, I have some news.* groups, which I am planning to
> tell uunet to send me, as well as my internal newsgroup, abcd.test.
> Here's where one of my questions comes in:  I currently have some
> control* groups and a junk group, what are these for?  Here's a snip
> from my active:

> control 0000000000 0000000000 y
> control.cancel 0000000000 0000000000 n
> control.newgroup 0000000000 0000000000 y
> control.rmgroup 0000000000 0000000000 y
> control.sendsys 0000000000 0000000000 n
> control.checkgroups 0000000000 0000000000 n
> junk 0000000000 0000000000 y

The control newsgroups are used by INN to file control messages into so
that they don't show up in normal groups.  cancels delete articles; the
rest are for newsgroup creation and deletion except for sendsys (which
pretty much no one honors any more).

junk is used to file unwanted articles into if you have wantjunk defined.
Most people don't run this way, and it technically isn't used in those
cases, but INN requires that it exist anyway.

These internal groups are present in pretty much every INN system.  The
control groups are actually useful for finding things and are quite
frequently read by users; the junk group generally isn't.

> It seems strange to me that these groups would be dispayed to users as
> they browse available groups, however, it is clearly necessary, but for
> what?

If you don't want them to show up to users, then you can edit nnrp.access
(readers.conf under 2.3) and put !control*,!junk in the patterns of groups
people are allowed to read.  This will cause the groups to effectively
"disappear" from the perspective of the reader, as well as preventing them
from posting to those groups.

> Okay, the next question I have:  is there any way to delete a specific
> article in a newsgroup?

ctlinnd cancel '<message-id>' will remove a specific article from your
server.  You need the message ID (in the Message-ID header of the
article).

> uunet doesn't allow servers to "pull" data from them, but instead allow
> a mechanism whereby you tell them what feeds you want and then they
> periodically send you all the data you want.

That's typical.

> So, I am 1) supposed to add uunet's inbound feed to a hosts.nntp file,
> that I must create, right?

hosts.nntp for INN 1.x, incoming.conf for INN 2.2.  Yes.

> 2) since I am telling uunet of the feeds I want, I don't need to filter
> anything, right?

Depends on what you mean by filter.  They may still send you spam, and you
may or may not want to filter out that.  Filtering out articles in groups
you don't want is done by INN automatically; it will only accept articles
in groups that are in your active file.

> 3) is there anything else I need to edit?

If you want your posts to be sent back to UUNet, you need to add an entry
for them in newsfeeds and decide what mechanism you want to send posts
with.  For a small server like yours, I'd recommend nntpsend, so you'd add
an entry in newsfeeds with :Tf,Wnm: as the flags, and then add a line in
nntpsend.ctl for UUNet.  You'll also need to run nntpsend periodically
from cron (every hour, every ten minutes, however often you want to send
locally posted articles back to UUNet).

> Also, is the purpose of the newsfeeds file to filter newsgroup data?
> does it filter inbound data or outbound data, or both?

No, the newsfeeds file says where to send articles that you accept.
Here are some excerpts from the INN 2.3 documentation.  In README:

    A news server performs three basic functions:  It accepts articles from
    other servers and stores them on disk, sends articles it has received
    out to other servers, and offers stored news articles to readers on
    demand.  It additionally has to perform some periodic maintenance tasks,
    such as deleting older articles to make room for new ones.

[...]

    INN supports accepting articles via either NNTP connections or via UUCP.
    innd, the heard of INN, handles NNTP feeding connections directly; UUCP
    newsfeeds use rnews (included in INN) to hand articles off to innd. 
    Other parts of INN handle feeding articles out to other news servers,
    most commonly innfeed (for real-time outgoing feeds) or nntpsend and
    innxmit (used to send batches of news created by innd to a remote site
    via TCP/IP).  INN can also handle outgoing UUCP feeds.

And in INSTALL (some of the specific details are different for 1.x):

  newsfeeds

    newsfeeds determines how incoming articles are redistributed to your
    peers and to other INN processes.  newsfeeds is very versatile and
    contains dozens of options; we will touch on just the basics here. 
    newsfeeds(5) contains more detailed information.

[...]

    There are two basic ways to feed articles to remote sites.  The most
    common for large sites and particularly for transit news servers is
    innfeed, which sends articles to remote sites in real time (the article
    goes out to all peers that are supposed to receive it immediately after
    your server accepts it).  For smaller sites, particularly sites where
    the only outgoing messages will be locally posted articles, it's more
    common to batch outgoing articles and send them every ten minutes or so
    from cron using nntpsend and innxmit.  Batching gives you more control
    and tends to be extremely stable and reliable, but it's much slower and
    can't handle lots of articles well.

    Batching outgoing posts is easy to set up; for each peer, add an entry
    to newsfeeds that looks like:

        remote.example.com/news.example.com\
            :<newsgroups>\
            :Tf,Wnm:

    where <newsgroups> is the wildmat pattern for the newsgroups that site
    wants.  In this example, the actual name of the remote site is
    remote.example.com, but it puts news.example.com in the Path: header. 
    If the remote site puts its actual hostname in the Path: header, you
    won't need the `/news.example.com' part.

    This entry will cause innd to write out a file in ~news/db/outgoing
    named remote.example.com and containing the message ID and storage token
    of each message to send to that site.  innxmit knows how to read this
    format of file and send those articles to the remote site.  For
    information on setting it up to run periodically, see the Setting Up the
    Cron Jobs entry elsewhere in this document.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <yliu7s2m81.fsf@windlord.stanford.edu>
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: <37878C57.6DDDF747@razorfish.com>

Show Full Headers
Complete Article Headers
Message-ID: <yliu7s2m81.fsf@windlord.stanford.edu>
Subject: Re: INND: My quest to configure the beast.
Date: Sat, 10 Jul 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <37878C57.6DDDF747@razorfish.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
X-Deja-AN: 499581641
Organization: The Eyrie
Newsgroups: news.software.nntp