🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #59680

Re: newx and innd - hopefully lost ;-(

#59680
From: Remco Blaakmeer
Date: Thu, 25 Jul 2002 22:42
83 lines
5227 bytes
On Thu, 25 Jul 2002 20:58:33 GMT, "A. L. Meyers" <nospam.look@replyto.because.this.is.invalid> wrote:
> 
> Thanks, Miow, from woof-woof, a sad bloodhound who doesn't give up so
> easily. Made some progress today. Installed newsx instead of suck, as I
> couldn't get suck to cooperate with inn and Eric's instructions say
> newsx and inn go more easily together, which is true.
> 
> Ran into new snags, however. Eric's example bundles 40 news messages in
> each downloaded file but rnews -U did not like these files and refused
> to despool them, dumping core. 
[snip]

I am using newsx with inn. Perhaps some words about my own setup will
help you.

In <pathetc in inn.conf>/newsfeeds, I have configured outgoing feeds for
every news server that newsx is supposed to fetch news from and sends
news to. These feeds are configured to create a batch file with storage
tokens. The entries in the newsfeeds file look like this:

<sitename>/<pathhost of site>[,<other pathhost> ...]\
        :<newsgroups pattern>
        :Tf,Wf:

I have chosen to have the sitename equal to the full qualified domain
name of the news server. Its pathhost is not always equal to this. You
can find the pathhost as the first host in de Path header in any article
on that news server.

When newsx runs, it will read the newsgroup pattern and only fetch
groups that are in your active file and match the group pattern.

No entry in incoming.conf is needed. This file is only used for allowing
regular feeds to your server.

The batch file that's created by inn, is stored in <pathoutgoing in
inn.conf>. Make sure this directory is passed to newsx with the --batch
option, or newsx won't be able to find it. On my system (Debian), this
is done by default by the script /usr/lib/news/bin/newsx , which calls
/usr/lib/news/bin/newsx.real with the right opions.

In a file that newsx calls the host active file, it keeps a record of
which articles have been fetched from which groups. This file can most
likely be found in /var/spool/news/in.hosts and is created automatically
the first time newsx runs for a certain site. You may have noticed newsx
complaining about this file not existing when you ran newsx for the
first time, but that's normal.

Instead of running rnews -U, I run newsx with the --rnews option. This
way, newsx will pipe all fetched articles directly into rnews.
Especially when multiple instances of newsx are fetching news from
different sites at the same time, this prevents some problems I
encountered with rnews -U.

Recently, I have created configuration files for newsx instead of using
long command lines. My /etc/newsx.conf looks like this:

--rnews
-u
--forget-inactive

In /var/spool/news/in.hosts , I have configuration files with server
specific options. These are named <sitename>.conf and contain options
like -a <password file> .

I run newsx from cron at regular intervals. It's run as user news. The
only option I give newsx is the sitename. Because the sitename is equal
to the server's hostname, the hostname can be omitted.

When you run newsx for the first time for a give site, it may be wise to
use one of the -z, -Z, -X or --maxart options. See the newsx manual for
their meaning. Especially if the site has a large retention time, the
first newsx run can literally take hours to complete if you let newsx
just fetch all articles.

If I haven't forgotten anything, this is how simple it is to set up
newsx with inn. Setting up inn itself is a whole other story, of
course.

Remco
-- 
remco3:  23:40:01 up 5 days,  5:47, 10 users,  load average: 2.15, 2.50, 2.51
Technical Details
Message-ID: <ahpur7$n6d$1@remco3.remconet>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!193.213.112.26.MISMATCH!newsfeed1.ulv.nextra.no!nextra.com!news01.chello.no!news01.chello.se!amsnews01.chello.com!amsnews03.chello.com.POSTED!not-for-mail
References: <87r8hxm9oo.fsf@landhaus.consult-meyers.com> <slrnajn1ba.2ud.mdalene@pinkrose.local.net> <yladok1dkg.fsf@windlord.stanford.edu> <slrnajpnnq.enn.mdalene@pinkrose.local.net> <ylwurnuhet.fsf@windlord.stanford.edu> <MPG.17a7ea496e3553f698968e@jul-solserv> <87znwgkhhu.fsf@nomad.consult-meyers.com> <goN%8.2845$eb.1920@nwrddc04.gnilink.net> <87it33pls6.fsf_-_@nomad.consult-meyers.com>

Show Full Headers
Complete Article Headers
Message-ID: <ahpur7$n6d$1@remco3.remconet>
Subject: Re: newx and innd - hopefully lost ;-(
Date: Thu, 25 Jul 2002 22:42:30 GMT
From: remco@remco.hn.org (Remco Blaakmeer)
References: <87r8hxm9oo.fsf@landhaus.consult-meyers.com> <slrnajn1ba.2ud.mdalene@pinkrose.local.net> <yladok1dkg.fsf@windlord.stanford.edu> <slrnajpnnq.enn.mdalene@pinkrose.local.net> <ylwurnuhet.fsf@windlord.stanford.edu> <MPG.17a7ea496e3553f698968e@jul-solserv> <87znwgkhhu.fsf@nomad.consult-meyers.com> <goN%8.2845$eb.1920@nwrddc04.gnilink.net> <87it33pls6.fsf_-_@nomad.consult-meyers.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!193.213.112.26.MISMATCH!newsfeed1.ulv.nextra.no!nextra.com!news01.chello.no!news01.chello.se!amsnews01.chello.com!amsnews03.chello.com.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Remco's news servers
Lines: 82
Reply-To: j.blaakmeer@chello.nl (Remco Blaakmeer)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 1.0b.1
NNTP-Posting-Host: 62.163.77.196
X-Complaints-To: abuse@chello.com
X-Trace: amsnews03.chello.com 1027636950 62.163.77.196 (Fri, 26 Jul 2002 00:42:30 MET DST)
NNTP-Posting-Date: Fri, 26 Jul 2002 00:42:30 MET DST
X-Received-Date: Fri, 26 Jul 2002 00:42:31 MET DST (news01.chello.no)