🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #30195

Re: Joys of INN 2.1+Linux+newbie admin!

#30195
From: Russ Allbery
Date: Thu, 30 Jul 1998 00:00
162 lines
7721 bytes
Joe Bernstein <josephb@tezcat.com> writes:

> pid-file:			innfeed.pid		# relative to pathrun
> /*this is the file ctlinnd can't find and therefore fails*/

No, that would be *inn.pid*, not innfeed.pid.  ctlinnd won't care about
innfeed; innfeed gets run by innd when it reads in newsfeeds and sees the
program feed to innfeed.

> gen-html:			false
> /*um, that doesn't really mean I could set up a server to post HTML for
> everything, does it?*/

No, innfeed generates a periodic status report (on disk).  You can choose
whether that status report will be in plain text or in HTML.

> ***end quote*** Now, as far as I can tell, I'm supposed to follow all
> that stuff with more or less an exact replica of my incoming.conf file.
> Do I really need both?  Either?  How can I tell?

incoming.conf (the replacement for the old hosts.nntp) says what peers you
are willing to accept news from.  innfeed.conf tells innfeed what peers
you're sending news to.  The thing to keep in mind here is that innfeed is
run by innd, but is actually a completely separate program and is optional
(there are other ways to send outgoing news -- see below).  Also keep in
mind that there are many circumstances where you may send out news but not
receive it, or vice versa, for certain special peers.

innfeed is one way to send outgoing news; nntpsend is another.  The way
innfeed works is that innd sends it path names and a list of hosts to send
a feed to and it sends the news out immediately (or as fast as it can).
With nntpsend, in contrast, you have innd write out the outgoing news
information into files (that just list the message ID and the path to the
file to send, one file for each site you're feeding), and then you run
nntpsend from cron.  nntpsend finds all the sites with pending news and
runs innxmit to send that news along to them.

nntpsend is therefore somewhat delayed, whereas innfeed is very fast.
Most large sites run innfeed; many smaller sites run nntpsend.  nntpsend
has been around for a lot longer than innfeed.

For a small server, I'd recommend nntpsend, as it's conceptually a lot
simpler, particularly when it comes to setting up newsfeeds.

> passwd.nntp ***begin quote***
> MACHINE.FEED.DOMAIN:sometime:other
> ***end quote***

passwd.nntp you only need if any of your peers requires username/password
authentication for you to feed them.  This may be the case for some ISP
peering arrangements but overall is somewhat rare.

> So OK.  My only real question here is, how many of my woes owe to having
> started innd for a test run prior to getting the feed configured into
> places like these?  Is innd just ignoring ctlinnd and nnrpd because it's
> pining away for the attentions of a non- configured, let alone
> established, feed?

The best way to answer that would be to look at your log files.  innd is
very verbose about bitching about everything that's wrong.  Take a look in
/var/log/news, particularly in errlog and news.crit.  Also make sure that
you have your syslog.conf set up right so that syslogd is writing news
logs in the right place.  You probably want something roughly like this:

news.crit                       /var/log/news/news.crit
news.err                        /var/log/news/news.err
news.notice                     /var/log/news/news.notice

Remember, syslog.conf is *tab*-separated.

> newsfeeds ***begin quote***

> ME\
>       :*,@alt.binaries.*,!junk,!control*,!local*,!SITE.*\
> 		/world,usa,na,gnu,bionet,pubnet,u3b,eunet,vmsnet,inet,ddn,k12\
>       ::

Here's a comment from my newsfeeds file that may clear up what this line
is for:

# The ME feed is very magical.  Anything specified here in the feed section
# is the default feed to remote peers.  Anything given in the distribution
# section are the distributions we're accepting (we want to accept all
# distributions, since they're broken).  All aliases given for ME are path
# aliases for us and will cause us not to accept articles with those sites
# or pseudosites in their Path header.
ME:!*::

Note that I personally accept all distributions because I don't believe
the current distribution system works at all, and that I set up a default
feed of !*.  This is because I like explicitly stating in each of my
seperate feed entries exactly what I'm feeding remote sites and not have
to work out what's being overridden from the defaults and what isn't.
I've seen the ME default feed bite people so many times that I just don't
trust it any more.

> /*OK, so I can see where it could be logistically hard, but why can't I
> get a lot more granularity than this out of this line?  I mean, I'm kind
> of mystified in particular by where newgroups go - am I going to see
> newgroups from every hierarchy on earth, or only from the hierarchies
> with representatives in my active, or ...

What *incoming* messages you get will be determined by what your *peers*
put in *their* newsfeeds file to feed to you.  Your newsfeeds file doesn't
govern that.  You'll then reject any messages that you're sent that are
for newsgroups that aren't in your active file.

> It just makes no sense to me that the active could control which
> newgroups innd will accept,

But that's exactly what it does.  (Modulo odd things like setting
WANT_JUNK or the like.)

> crosspost:*:Tc,Ap,WR:/usr/local/news/bin/crosspost
> overview!:*:Tc,WO,S30000:/usr/local/news/bin/overchan

These are special program feeds to do necessary things with your spool so
that innd doesn't have to.  crosspost makes links for crossposted
articles, and overchan writes overview information for accepted articles
to disk.

> innfeed!:\
> 	!*,\
>       :Tc,Wnm*,S16384:/usr/local/news/bin/startinnfeed -y

> #MACHINE.FEED.DOMAIN/*.FEED.DOMAIN\
> #	:!junk,!control,!SITE/!local\
> #	:Tm:innfeed!

> /*And two questions about the options here.*/

> /*Why wouldn't an H flag prevent all propagation, if set to H1 say?  ie
> no more than one hop gets propagated.  That *is* the default, after
> all...*/

It is?  H1 would mean that you wouldn't send on any articles with more
than one hop, which means that basically you'd only send on local
articles.

> /*And separately, if anyone here is familiar with "smart G5", that is,
> limits on cross-posting that take followups into account so as not to
> nuke RFDs and FAQs, is that something you implement here or with a
> separate filter?  The man doesn't imply that kind of flexibility for the
> G flag.*/

innd can't do that directly.  You have to use something like a Perl filter
for that functionality.  (I've thought about trying to patch it into innd,
but haven't had a chance.)

Note that the above feed entries assume innfeed.  If you want to use
nntpsend instead, you use an entry like:

MACHINE.FEED.DOMAIN/*.FEED.DOMAIN\
        :!junk,!control,!SITE/!local\
        :Tf,Wnm:

which tells innd to write out a batch file that nntpsend can process.

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

Technical Details
Message-ID: <m3k94ufuhd.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: <6pnvjh$45l@huitzilo.tezcat.com> <6po6a8$8a1@huitzilo.tezcat.com>

Show Full Headers
Complete Article Headers
Message-ID: <m3k94ufuhd.fsf@windlord.Stanford.EDU>
Subject: Re: Joys of INN 2.1+Linux+newbie admin!
Date: Thu, 30 Jul 1998 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <6pnvjh$45l@huitzilo.tezcat.com> <6po6a8$8a1@huitzilo.tezcat.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: 376584403
Sender: eagle@windlord.Stanford.EDU
Organization: The Eyrie
Newsgroups: news.software.nntp