🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
14 messages
14 total messages Started by Joe Bernstein Wed, 29 Jul 1998 00:00
Joys of INN 2.1+Linux+newbie admin!
#30149
Author: Joe Bernstein
Date: Wed, 29 Jul 1998 00:00
88 lines
3920 bytes
Hi

I apologise for the bunches of questions I'm about to toss at y'all.
If the proper answer is "Buy this book", ok, I'll go buy it; but I
haven't observed a current book, I think much of my trouble is precisely
thanks to outdated documentation, and I'm under a deadline.  So.

I'm going to follow up to this post with a bunch of config files that
I have questions about.  So you can kill on this alone if you don't
want to see that.  This post however is not questions but actual
problems.

Basically, I'm setting up a toy news server (about a hundred groups) on
a Linux box.  This box belongs to my brother.  The ISP my brother works
for is meanwhile switching from INN 1.whatever to Diablo, using the
feed to this toy server as a test.  What I get from this is, um,
learning.

   uname -a

  Linux SITE 2.0.27 #22 Thu Mar 12 18:38:29 CST 1998 i586

If I master this feed, I'll go hunting for a net.* feed, not out of
personal interest but out of a sense that my brother might like it
and for the challenge.  (This would appear to be the first net.*
site near here, if I do it.)  Meantime, though, my brother is not
interested in Usenet, primarily for fear of e-mail spam; and between
that and the upgrade thing, I don't feel free to name either SITE or
FEED.  Apologies.

Anyway.  The first thing I did upon getting innd running (which I
did by executing /usr/local/news/bin/rc.news WITHOUT rebooting
and BEFORE getting the feed actually set up) was test ctlinnd by 
trying to throttle it and shut it down.  Both commands got this result:

   whoami

  news

   pwd
  
  /usr/local/news

   ./bin/ctlinnd throttle "Test run done."

(Note that man ctlinnd does not say whether reasons have to be quoted...)

  No innd.pid file; did server die?

(No, says ps.  I wish.  But there's more.)

  Can't send "throttle" command (sendto failure) No such file or directory.

End of story.  Except that the same thing happens if I run ctlinnd as
root, or if I leave the reason unquoted.

I find reference to innd.pid in the innfeed.conf configuration file,
which has other mysteries, and which I'll post in a followup.

OK.  So I can't use ctlinnd.  Can I use nnrpd?

Netscape 4.something doesn't seem to know what news: URLs are.  This is
probably not INN's fault.  Knews is of the opinion that it lacks
permission to talk to INN, which peeves me greatly since I did do
a bunch of looking at DejaNews for this group and did take pains with
nnrp.access; so that's posted too, in a coming followup.  Trn is
much bolder, and flatly declares that none of my groups exists.  Does
this mean I should have rebooted, or does this mean I had to manually
create the spool directories for each group in my beginning active file?  
Or something else?  I'm not up to trying to deal with Gnus today, so
there ends the nnrpd test:  failure on all counts.

innd, on the other hand, seems to be working fine:  every time I look
at it with ps, it's sleeping soundly, which is sorta what I'd expect
it to do if it's not willing to talk to anyone.

So OK, I think that's it for actual problems.  Following posts include
a variety of entertaining config files, with rude questions.

Thanks for any help!

Joe Bernstein

-- 
Joe Bernstein, writer                    http://www.tezcat.com/~josephb/
Speaking for myself alone       joe@sfbooks.com       josephb@tezcat.com

Re: Joys of INN 2.1+Linux+newbie admin!
#30128
Author: Brian Edmonds
Date: Wed, 29 Jul 1998 00:00
65 lines
4264 bytes
Joe Bernstein <josephb@tezcat.com> writes:
> checkincludedtext:	false
> /*This is the switch for that business some sites have of messages
> having to be over 50% original text, right?*/

As far as I know, yes.

> maxartsize:		1000000
> /*So this means 1M, or what?*/

Yes, but not 1MB, as that's a few kB more than 1M, at least the way I
count them. :)

Personally I've set this to 512000.  Some sites I peer with have it at
256000.

> verifycancels:		false
> logcancelcomm:		false
> /*So, um, INN is free to verify cancels but usually *doesn't*?  Huh?
> Presumably because it costs too much time?  What does "verify" mean, 
> anyway, sanity checking or PGP checking? Is this something I can 
> switch to true if I'm running cleanfeed and anyway not taking alt.*?  
> And what is logcancelcomm?*/

Verifying a cancel requires that the original article exist on your
spool so that it can check the From/Sender match with the cancel.  If
you have any intention of using an express cancel feed you can't verify
cancels, as the object then is to get the cancel there first to generate 
the dummy history file entry.

According to the inn.conf manpage the log flag determines if explicit
cancels with ctlinnd cancel are logged.

> refusecybercancels:	false
> /*This has gotta be how to turn off the legitimate despammers.  Why isn't
> it documented?*/

Dunno, it's documented just fine in my INN 2.1 inn.conf manpage.  It's a 
lot like putting cyberspam in your site exclusion list, except that it
checks for <cancel. in the message id before the article itself is ever
transmitted (at least for an IHAVE feed).

> doinnwatch:		true
> /*Questions about innwatch in a separate post, but I take it that this
> Really Is A Good Idea?  Anyway, someplace I have a note alleging that
> rc.news should be run with a FLAGS -L option; is there a reason for 
> doing so or should I conclude that I was braindead while writing that
> note?  Anyway, no more questions to the end of this post.*/

Depends.  If you're running a space-variable spool, having innwatch
around to throttle the server should things get tight can be handy.  On
my old transfer server I had another script that would start an expire
if the space dropped too low and it was too far from the regular expire
time.  With CNFS on my transfer server it's not a lot of use.

As for -L, presumably this is to pass to innd, where it will prevent INN
from making the links for crossposts.  Generally this means you've got a
feed to the crosspost program to offload the system calls.

-- 
 o         Brian Edmonds <bedmonds@cs.ubc.ca>, Team Jubal Mech Labs
 \\_/\_,   Moderator: rec.arts.anime.creative, rec.music.info/reviews
(*)   (*)  Are you tired of spam?  Visit http://www.spam.abuse.net/spam/

Re: Joys of INN 2.1+Linux+newbie admin!
#30135
Author: Joe Bernstein
Date: Wed, 29 Jul 1998 00:00
20 lines
1384 bytes
In article <6po628$19l$1@news.tbcnet.com>,
Daniel W. Halverson <danh@tbcnet.com> wrote:

> Check to make sure that you're not running RedHat 5.1 with their INN RPM
> installed.  It installs ctlinnd and others into /usr/sbin I believe.  Then
> the wrong ctlinnd is trying to run...

Nope, that's why I was running ./ctlinnd...  (Well, ok, also because I
was fed up with trying to manipulate $PATH around the incredible
depredations worked on it by this X Windows mess.)

This is Slackware 3.0 courtesy of a Que book, and although the standard 
install helpfully includes a ton of outdated inn man pages, causing a 
yet-to-be-determined part of my problem, you get the option of not
installing inn itself and my brother took that option.  No ctlinnd
in sight except for my mute one.

Thanks though - JLB

Re: Joys of INN 2.1+Linux+newbie admin!
#30157
Author: Russ Allbery
Date: Wed, 29 Jul 1998 00:00
14 lines
1214 bytes
Just as an aside here, in the midst of these questions you've done a good
job of highlighting places where you, as a first time news admin, found
the documentation unclear, missing, or incomplete.  If you would be
willing to take the time to summarize those into one message and send it
to inn-bugs@isc.org, I'm sure the INN maintainers would *greatly*
appreciate it.

One of the biggest problems with writing documentation is that it often
isn't clear what needs to be documented and to what level of detail.

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

Re: Joys of INN 2.1+Linux+newbie admin!
#30160
Author: Joe Bernstein
Date: Wed, 29 Jul 1998 00:00
120 lines
6675 bytes
In article <6pnvjh$45l@huitzilo.tezcat.com>, I wrote:

> I'm going to follow up to this post with a bunch of config files that
> I have questions about.  
 
>    uname -a
> 
>   Linux SITE 2.0.27 #22 Thu Mar 12 18:38:29 CST 1998 i586

Already posted, the inn.conf.  I won't post the control.ctl, 
distrib.pats, expire.ctl, moderators, overview.ctl, or overview.fmt
because none of them seems likely to be doing me harm (but corrections
welcome!).  The same holds for motd.news, which is empty, and 
storage.ctl, which has no uncommented lines (I'm not running the 
storeageAPI, this box is way too small to justify it).

I'd assumed that without the storeageAPI the configure would leave
cycbuff.conf bare, and without any expression of interest in syncing
it would also leave actsync.cfg and actsync.ign bare.  Oops.  Do I
need to delete these (*non*-empty) files?
 
So onward.  This post has innreport.conf and innwatch.ctl.

First innreport.conf ***starts here***

section default {
	libpath         "/usr/local/news/lib";
	logpath		"/usr/local/news/log";
	unknown		true;        # want unknown entries.
	max_unknown     50;          # max unknown entries to display.
	casesensitive   true;
	module		"innreport_inn";  # ${libpath}/${module}.pm
	unwanted_log	"unwanted.log";   # ${logpath}/${unwanted_log}
        text            true;
        html            false;
        graph           true;        # need 'html'
	archive		true;  # use false to keep only the latest HTML report.
	index		"index.html"; # name of the HTML index file.
      # html_dir        "/var/www/News/stats"; # default to pathhttp in inn.conf
	img_dir         "pics";      # images will go to ${html_dir}/${img_dir}
	cycle		none;        # use a number or 'none'.
        separator       ".";         # use a valid filename character.
	title		"Daily Usenet report";
      # title	     "Daily Usenet report for <A HREF=\"/stat/\">news.y.z</A>";
      # footer		"Local contact: <A HREF=\"mailto:x@y.z\">x@y.z</A>";
      # html_body	"BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"";
      # html_header_file "header.html";  # ${html_dir}/${html_header_file}
      # html_footer_file "footer.html";  # ${html_dir}/${html_footer_file}
        graph_width	550;         # graph width (in pixels)
        transparent	true;        # graph background transparent ?
        graph_fg        "#000000";   # graph foreground color.
        graph_bg        "#FFFFFF";   # graph background color.
};

***end of quote here***

After this, tons of stuff that looks like a relative of C snipped.
What is it all doing in a config file?

I *gather* what this is meant to do is produce a web page full of 
informative data about my news server, which sounds like a fine thing,
though I'd rather it were documented.  Am I going to get this report
automatically, or do I have to do something?  How much space is it
going to eat up (ie, is it automatically retired or do I have to
clean up after it?)

Oh, well, at least it's commented.  Then we get to this:

***begin quote, long lines left intact***

##  First, just exit innwatch if innd has gone away.
!!! test -f ${LOCKS}/innd.pid && echo 0 || echo 1 ! eq ! 1 ! exit ! innd dead

##  Next test the load average.  Above first threshold pause, above higher
##  threshold throttle, below restart limit undo whatever was done.
##  =()<!load!load hiload! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! lt ! @<INNWATCH_LOLOAD>@ ! go ! loadav>()=
!load!load hiload! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! lt ! 1000 ! go ! loadav
##  =()<!hiload!+ load! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! @<INNWATCH_HILOAD>@ ! throttle ! loadav>()=
!hiload!+ load! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! 2000 ! throttle ! loadav
##  =()<!load!+! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! @<INNWATCH_PAUSELOAD>@ ! pause ! loadav>()=
!load!+! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! 1500 ! pause ! loadav

##  If load is OK, check space (and inodes) on various filesystems
##  =()<!!! /bin/df . | awk 'NR == 2 { print $@<INNWATCH_BLOCKS>@ }' ! lt ! @<INNWATCH_SPOOLSPACE>@ ! throttle ! No space (spool)>()=
!!! /bin/df . | awk 'NR == 2 { print $4 }' ! lt ! 8000 ! throttle ! No space (spool)
##  =()<!!! /bin/df ${BATCH} | awk 'NR == 2 { print $@<INNWATCH_BLOCKS>@ }' ! lt ! @<INNWATCH_BATCHSPACE>@ ! throttle ! No space (newsq)>()=
!!! /bin/df ${BATCH} | awk 'NR == 2 { print $4 }' ! lt ! 800 ! throttle ! No space (newsq)
##  =()<!!! /bin/df ${PATHDB} | awk 'NR == 2 { print $@<INNWATCH_BLOCKS>@ }' ! lt ! @<INNWATCH_LIBSPACE>@ ! throttle ! No space (newslib)>()=
!!! /bin/df ${PATHDB} | awk 'NR == 2 { print $4 }' ! lt ! 25000 ! throttle ! No space (newslib)
##  =()<!!! /bin/df -i . | awk 'NR == 2 { print $@<INNWATCH_INODES>@ }' ! lt ! @<INNWATCH_SPOOLNODES>@ ! throttle ! No space (spool inodes)>()=
!!! /bin/df -i . | awk 'NR == 2 { print $7 }' ! lt ! 200 ! throttle ! No space (spool inodes)
##  =()<!!! /bin/df ${OVERVIEWDIR} | awk 'NR == 2 { print $@<INNWATCH_BLOCKS>@ }' ! lt ! @<INNWATCH_SPOOLSPACE>@ ! throttle ! No space (overview)>()=
!!! /bin/df ${OVERVIEWDIR} | awk 'NR == 2 { print $4 }' ! lt ! 8000 ! throttle ! No space (overview)

***end quote***

Um, ok.  This is basically gibberish to me.  I suspect if I just sat down
and pored over it for a few hours it would make sense, and there's a very
detailed and informative man page telling me to do so...

but that man page does *not* tell me what sort of basis I'm supposed to
do the (extremely necessary!) site-level configuration on, or where
in the mess it goes,

and it does *not* actually explain just how innwatch comes to be running
as a process on this system.

Is this a feature continuous with 1.4, say, so I can check the RKT?
Or is it a new thing, and if so, where can I find out the rest of the
story?

Thanks much

Joe Bernstein

-- 
Joe Bernstein, writer                    http://www.tezcat.com/~josephb/
Speaking for myself alone       joe@sfbooks.com       josephb@tezcat.com

Re: Joys of INN 2.1+Linux+newbie admin!
#30162
Author: Daniel W. Halverson
Date: Wed, 29 Jul 1998 00:00
100 lines
4662 bytes
Check to make sure that you're not running RedHat 5.1 with their INN RPM
installed.  It installs ctlinnd and others into /usr/sbin I believe.  Then
the wrong ctlinnd is trying to run...

        Good Luck.  E-Mail me if you need more help.  Just set up a big
INN-2.1 server on Linux.

                Dan

Joe Bernstein wrote in message <6pnvjh$45l@huitzilo.tezcat.com>...
>Hi
>
>I apologise for the bunches of questions I'm about to toss at y'all.
>If the proper answer is "Buy this book", ok, I'll go buy it; but I
>haven't observed a current book, I think much of my trouble is precisely
>thanks to outdated documentation, and I'm under a deadline.  So.
>
>I'm going to follow up to this post with a bunch of config files that
>I have questions about.  So you can kill on this alone if you don't
>want to see that.  This post however is not questions but actual
>problems.
>
>Basically, I'm setting up a toy news server (about a hundred groups) on
>a Linux box.  This box belongs to my brother.  The ISP my brother works
>for is meanwhile switching from INN 1.whatever to Diablo, using the
>feed to this toy server as a test.  What I get from this is, um,
>learning.
>
>   uname -a
>
>  Linux SITE 2.0.27 #22 Thu Mar 12 18:38:29 CST 1998 i586
>
>If I master this feed, I'll go hunting for a net.* feed, not out of
>personal interest but out of a sense that my brother might like it
>and for the challenge.  (This would appear to be the first net.*
>site near here, if I do it.)  Meantime, though, my brother is not
>interested in Usenet, primarily for fear of e-mail spam; and between
>that and the upgrade thing, I don't feel free to name either SITE or
>FEED.  Apologies.
>
>Anyway.  The first thing I did upon getting innd running (which I
>did by executing /usr/local/news/bin/rc.news WITHOUT rebooting
>and BEFORE getting the feed actually set up) was test ctlinnd by
>trying to throttle it and shut it down.  Both commands got this result:
>
>   whoami
>
>  news
>
>   pwd
>
>  /usr/local/news
>
>   ./bin/ctlinnd throttle "Test run done."
>
>(Note that man ctlinnd does not say whether reasons have to be quoted...)
>
>  No innd.pid file; did server die?
>
>(No, says ps.  I wish.  But there's more.)
>
>  Can't send "throttle" command (sendto failure) No such file or directory.
>
>End of story.  Except that the same thing happens if I run ctlinnd as
>root, or if I leave the reason unquoted.
>
>I find reference to innd.pid in the innfeed.conf configuration file,
>which has other mysteries, and which I'll post in a followup.
>
>OK.  So I can't use ctlinnd.  Can I use nnrpd?
>
>Netscape 4.something doesn't seem to know what news: URLs are.  This is
>probably not INN's fault.  Knews is of the opinion that it lacks
>permission to talk to INN, which peeves me greatly since I did do
>a bunch of looking at DejaNews for this group and did take pains with
>nnrp.access; so that's posted too, in a coming followup.  Trn is
>much bolder, and flatly declares that none of my groups exists.  Does
>this mean I should have rebooted, or does this mean I had to manually
>create the spool directories for each group in my beginning active file?
>Or something else?  I'm not up to trying to deal with Gnus today, so
>there ends the nnrpd test:  failure on all counts.
>
>innd, on the other hand, seems to be working fine:  every time I look
>at it with ps, it's sleeping soundly, which is sorta what I'd expect
>it to do if it's not willing to talk to anyone.
>
>So OK, I think that's it for actual problems.  Following posts include
>a variety of entertaining config files, with rude questions.
>
>Thanks for any help!
>
>Joe Bernstein
>
>--
>Joe Bernstein, writer                    http://www.tezcat.com/~josephb/
>Speaking for myself alone       joe@sfbooks.com       josephb@tezcat.com



Re: Joys of INN 2.1+Linux+newbie admin!
#30174
Author: Joe Bernstein
Date: Wed, 29 Jul 1998 00:00
177 lines
6088 bytes
In article <6pnvjh$45l@huitzilo.tezcat.com>, I wrote:

> I'm going to follow up to this post with a bunch of config files that
> I have questions about.  
 
> Basically, I'm setting up a toy news server (about a hundred groups) on
> a Linux box.  This box belongs to my brother.  The ISP my brother works
> for is meanwhile switching from INN 1.whatever to Diablo, using the
> feed to this toy server as a test.  What I get from this is, um,
> learning.
> 
>    uname -a
> 
>   Linux SITE 2.0.27 #22 Thu Mar 12 18:38:29 CST 1998 i586
> 
> If I master this feed, I'll go hunting for a net.* feed, not out of
> personal interest but out of a sense that my brother might like it
> and for the challenge.  (This would appear to be the first net.*
> site near here, if I do it.)  Meantime, though, my brother is not
> interested in Usenet, primarily for fear of e-mail spam; and between
> that and the upgrade thing, I don't feel free to name either SITE or
> FEED.  Apologies.

And the fact that this quote is longer than the quotes in the other
two config posts does mean that this one is all the news-feeding stuff,
in all its wonderfully redundant glory.  Somehow I suspect this is
also where my trouble really is, on the ctlinnd side, anyway.

Since of the *FIVE* config files that overlappingly take care of feeds,
newsfeeds is rather the longest, I'll leave it for last.  Here quickly
are the others.  Throughout, /*comments are like this*/.

incoming.conf ***begin quote***

streaming:              true   # streaming allowed by default
max-connections:        8      # per feed

peer ME {
  hostname:         "localhost, 127.0.0.1"
}

# peer FEEDNAME {
#   hostname:         "FEED.DOMAIN.NAME"
# }

***end quote***

innfeed.conf ***begin quote***

pid-file:			innfeed.pid		# relative to pathrun

/*this is the file ctlinnd can't find and therefore fails*/

debug-level:			0
use-mmap:			false
log-file:			innfeed.log		# relative to pathlog
stdio-fdmax:			0

backlog-directory:		innfeed			# relative to pathspool
backlog-rotate-period:		60
backlog-ckpt-period:		30
backlog-newfile-period:		600

dns-retry:			900
dns-expire:			86400
close-period:			3600
gen-html:			false

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

status-file:			innfeed.status		# relative to pathlog
connection-stats:		false
host-queue-highwater:		200
stats-period:			600
stats-reset:			43200

max-reconnect-time:		3600
initial-reconnect-time:		30

article-timeout:		600
response-timeout:		300
initial-connections:		1
max-connections:		5
max-queue-size:			25
streaming:			true
no-check-high:			95.0
no-check-low:			90.0
no-check-filter:		50.0
port-number:			119
backlog-limit:			0
backlog-factor:			1.10
backlog-limit-highwater:	0
dynamic-method:			3
dynamic-backlog-filter:		0.7
dynamic-backlog-low:		25.0
dynamic-backlog-high:		50.0
no-backlog:			false

/*and here it ends*/

***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?

Next the short guys.

nntpsend.ctl ***begin quote***

MACHINE.SITE.DOMAIN:MACHINE.SITE.DOMAIN:1m:-T1800 -t60 -a

***end quote*** See, that was easy.  Next,

passwd.nntp ***begin quote***

MACHINE.FEED.DOMAIN:sometime:other

***end quote***

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?

Now for the big one.

newsfeeds ***begin quote***

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

/*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 ...  It just makes
no sense to me that the active could control which newgroups innd
will accept, so I'm not entirely convinced this line has nothing to
do with it.  And of course it'd be just as nice to have a second
check against propagatin articles in groups I don't want *anyway*...*/

crosspost:*:Tc,Ap,WR:/usr/local/news/bin/crosspost

overview!:*:Tc,WO,S30000:/usr/local/news/bin/overchan

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...*/

/*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.*/

Again, thanks!

Joe Bernstein

-- 
Joe Bernstein, writer                    http://www.tezcat.com/~josephb/
Speaking for myself alone       joe@sfbooks.com       josephb@tezcat.com

Re: Joys of INN 2.1+Linux+newbie admin!
#30176
Author: Joe Bernstein
Date: Wed, 29 Jul 1998 00:00
165 lines
5270 bytes
In article <6pnvjh$45l@huitzilo.tezcat.com>, I wrote:

> I'm going to follow up to this post with a bunch of config files that
> I have questions about.

And this is the first, containing the inn.conf file and some questions
about how it works.  At the moment I've looked at the cleanfeed docs
but not really read them - I'd expected to do *that* in the time 
between getting INN running and the time I had to work on setting
up the feed, oops.  Since some of my questions have to do with 
cancels, I apologise for asking without exhausting my resources.
 
>    uname -a
> 
>   Linux SITE 2.0.27 #22 Thu Mar 12 18:38:29 CST 1998 i586

I cleverly omitted to mention that I configured inn 2.1 with options
--enable-tagged-hash, --enable-pgp-verify, --with-perl.  (Option
--with-tcl appears to rely on your Tcl being outdated so I
regretfully gave up on it.)

I also cleverly omitted to mention that nothing happened when,
before executing rc.news, I tried inndstart.  I mean a) no terminal
output and b) no processes resulting, according to ps.
Is that supposed to happen with inndstart now?

OK, so on with the inn.conf (my questions are /* commented out;
I've removed most or all comments from all of these config files
for posting).


organization:		

/*Ok, it's trivial, but this REALLY WILL give users the option to leave
this header blank, an option I currently lack, right?*/

server:			localhost
pathhost:		MACHINE.SITE.DOMAIN
moderatormailer:	%s@moderators.isc.org
# domain:
fromhost:		SITE.DOMAIN
# pathalias:
complaints:		abuse@SITE.DOMAIN
mta:			/usr/bin/sendmail -oi %s
mailcmd:		/usr/local/news/bin/innmail
checkincludedtext:	false

/*This is the switch for that business some sites have of messages
having to be over 50% original text, right?*/

maxforks:		10
maxartsize:		1000000

/*So this means 1M, or what?*/

nicekids:		4
verifycancels:		false
logcancelcomm:		false

/*So, um, INN is free to verify cancels but usually *doesn't*?  Huh?
Presumably because it costs too much time?  What does "verify" mean, 
anyway, sanity checking or PGP checking? Is this something I can 
switch to true if I'm running cleanfeed and anyway not taking alt.*?  
And what is logcancelcomm?*/

wanttrash:		false
remembertrash:		true
linecountfuzz:		true
peertimeout:		3600
clienttimeout:		600
allownewnews:		false
localmaxartsize:	1000000
logartsize:		true
logipaddr:		true
logsitename:		true
maxconnections:		50
artcutoff:		14
icdsynccount:		10
hiscachesize:		1024
readertrack:		false
strippostcc:		false
status:			600
timer:			600
allowreaders:		true
extendeddbz:		false
nnrpdoverstats:		false
storeonxref:		true
nnrpdcheckart:		true
storemsgid:		true
backoff_auth:		false
backoff_db:		/usr/local/news/db/backoff
backoff_postfast:	0L
backoff_postslow:	1L
backoff_trigger:	10000L
mimeversion:
mimecontenttype:
mimeencoding:
refusecybercancels:	false

/*This has gotta be how to turn off the legitimate despammers.  Why isn't
it documented?*/

activedenable:		false
activedupdate:		30
activedport:		1119

chaninacttime:		600
chanretrytime:		300
pauseretrytime:		300
nntplinklog:		false
nntpactsync:		200
badiocount:		5
blockbackoff:		120

wireformat:		false
xrefslave:		false
nnrpdposthost:
spoolfirst:		false
writelinks:		true
storageapi:		false
articlemmap:		false
overviewmmap:		true
bindaddress:		all
port:			119

keywords:		false
keylimit:		512
keyartlimit:		100000
keymaxwords:		250

innflags:		
doinnwatch:		true

/*Questions about innwatch in a separate post, but I take it that this
Really Is A Good Idea?  Anyway, someplace I have a note alleging that
rc.news should be run with a FLAGS -L option; is there a reason for 
doing so or should I conclude that I was braindead while writing that
note?  Anyway, no more questions to the end of this post.*/

pathnews:		/usr/local/news
pathbin:		/usr/local/news/bin
pathfilter:		/usr/local/news/bin/filter
pathcontrol:		/usr/local/news/bin/control
pathdb:			/usr/local/news/db
pathetc:		/usr/local/news/etc
pathrun:		/usr/local/news/run
pathlog:		/usr/local/news/log
pathhttp:		/usr/local/news/log
pathtmp:		/usr/local/news/tmp
pathspool:		/usr/local/news/spool
patharticles:		/usr/local/news/spool/articles
pathoverview:		/usr/local/news/spool/overview
pathoutgoing:		/usr/local/news/spool/outgoing
pathincoming:		/usr/local/news/spool/incoming
patharchive:		/usr/local/news/spool/archive
pathuniover:		/usr/local/news/spool/uniover
overviewname:		.overview



-- 
Joe Bernstein, writer                    http://www.tezcat.com/~josephb/
Speaking for myself alone       joe@sfbooks.com       josephb@tezcat.com

Re: Joys of INN 2.1+Linux+newbie admin!
#30178
Author: Andrew Gierth
Date: Wed, 29 Jul 1998 00:00
59 lines
2892 bytes
>>>>> "Joe" == Joe Bernstein <josephb@tezcat.com> writes:

 Joe> checkincludedtext:	false

 Joe> /*This is the switch for that business some sites have of messages
 Joe> having to be over 50% original text, right?*/

Yup

 Joe> maxartsize:		1000000

 Joe> /*So this means 1M, or what?*/

Yup

 Joe> nicekids:		4
 Joe> verifycancels:		false
 Joe> logcancelcomm:		false

 Joe> /*So, um, INN is free to verify cancels but usually *doesn't*?  Huh?
 Joe> Presumably because it costs too much time?  What does "verify" mean, 
 Joe> anyway, sanity checking or PGP checking? Is this something I can 
 Joe> switch to true if I'm running cleanfeed and anyway not taking alt.*?  

verifycancels is simply checking that the cancel claims to be from the
same user as the original. It's useless because it doesn't detect any
significant proportion of forgeries, and it stops the cancel from
working if it arrives before the article (if verifycancels is false,
then if the cancel arrives first the article is added to history
before it even arrives, causing it to be refused when offered - this
is a huge win).

 Joe> And what is logcancelcomm?*/

Whether or not to log the fact that a local cancel (ctlinnd cancel or
the program equivalent) was issued - you wont be doing many of these
unless you run NoCeM-on-spool.

 Joe> refusecybercancels:	false

 Joe> /*This has gotta be how to turn off the legitimate despammers.
 Joe> Why isn't it documented?*/

Probably a newish addition? I'd guess that it is the hack to refuse
message-ids on CHECK that start with <cancel.

 Joe> /*Questions about innwatch in a separate post, but I take it that this
 Joe> Really Is A Good Idea?  Anyway, someplace I have a note alleging that
 Joe> rc.news should be run with a FLAGS -L option; is there a reason for 
 Joe> doing so or should I conclude that I was braindead while writing that
 Joe> note?  Anyway, no more questions to the end of this post.*/

You need the -L flag to innd if you run crosspost (which you probably
should).

-- 
Andrew.

Re: Joys of INN 2.1+Linux+newbie admin!
#30179
Author: Joe Bernstein
Date: Wed, 29 Jul 1998 00:00
51 lines
2382 bytes
In article <6pnvjh$45l@huitzilo.tezcat.com>, I wrote:
 
> I'm going to follow up to this post with a bunch of config files that
> I have questions about.

And all that's left to go is nnrp.access.  Whee!
 
> Basically, I'm setting up a toy news server (about a hundred groups) on
> a Linux box.  This box belongs to my brother.  What I get from this is, 
> um, learning.
> 
>    uname -a
> 
>   Linux SITE 2.0.27 #22 Thu Mar 12 18:38:29 CST 1998 i586
> 
> If I master this feed, I'll go hunting for a net.* feed, not out of
> personal interest but out of a sense that my brother might like it
> and for the challenge.  Meantime, though, my brother is not
> interested in Usenet, primarily for fear of e-mail spam; 

I'm actually not in nearly as much of a hurry to test posting as other
stuff, though maybe the ISP providing the feed is.  But it's pretty
galling that nnrp.access is apparently not working.  What did I
do wrong?

## Default is no access, no way to authentication, and no groups.
*:: -no- : -no- :!*
##  Foo, Incorporated, hosts have no password, can read anything.
*.SITE.DOMAIN:Read Post:::*

stdin:Read Post:::*
localhost:Read Post:::*
127.0.0.1:Read Post:::*

Seems to me that anything running on this machine ought to know itself
as part of *.SITE.DOMAIN, and therefore ought to take this as
permission to read and post.  Why doesn't Knews?  And what is
trn up to, telling me that perfectly good groups that are in
my active are bogus?  Is X Windows the difference between Knews'
claim it lacks permission and trn's insouciance?

With a sinking heart, I suspect the real need is a reboot, but we'll
see...

Joe Bernstein

-- 
Joe Bernstein, writer                    http://www.tezcat.com/~josephb/
Speaking for myself alone       joe@sfbooks.com       josephb@tezcat.com

Re: Joys of INN 2.1+Linux+newbie admin!
#30180
Author: Joe Bernstein
Date: Wed, 29 Jul 1998 00:00
34 lines
2008 bytes
In article <37emv4nwoy.fsf@cascade.cs.ubc.ca>,
Brian Edmonds  <bedmonds@cs.ubc.ca> wrote:

> Joe Bernstein <josephb@tezcat.com> writes:
 
> > refusecybercancels:	false
> > /*This has gotta be how to turn off the legitimate despammers.  Why isn't
> > it documented?*/
> 
> Dunno, it's documented just fine in my INN 2.1 inn.conf manpage.  

Ack oop.  I knew that there were a whole battery of man pages that 
hadn't been auto-installed; it was certainly naive of me to assume
that the man pages that *did* come up with a simple "man whatever"
would be current.  Argh.  My apologies for wasting y'all's time
with this whole subthread, though I'm grateful for the additional info on
cancel verification (which is considerably more revealing than what
*that* paragraph of the man page says).

(Memo to self.  After procmail, learn man...)

Russ Allbery take note, but thanks for the compliment...  I was figuring
to send the inn folks a bug report on the documentation, but not until
I had my problem pretty much solved (since that'll probably involve
finding more documentation problems) and not until I've had some
sleep (which should help catch idiocies like mine above, mea culpa).

Joe Bernstein
 
-- 
Joe Bernstein, writer                    http://www.tezcat.com/~josephb/
Speaking for myself alone       joe@sfbooks.com       josephb@tezcat.com

Re: Joys of INN 2.1+Linux+newbie admin!
#30195
Author: 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/>

Re: Joys of INN 2.1+Linux+newbie admin!
#30196
Author: Russ Allbery
Date: Thu, 30 Jul 1998 00:00
36 lines
1883 bytes
Joe Bernstein <josephb@tezcat.com> writes:

> I'm actually not in nearly as much of a hurry to test posting as other
> stuff, though maybe the ISP providing the feed is.  But it's pretty
> galling that nnrp.access is apparently not working.  What did I do
> wrong?

The first question to ask yourself is if you told your news reader what
news server to use.  You may have to do something like:

        setenv NNTPSERVER localhost

(or the equivalent for sh-style shells) first before running it.

> ## Default is no access, no way to authentication, and no groups.
> *:: -no- : -no- :!*
> ##  Foo, Incorporated, hosts have no password, can read anything.
> *.SITE.DOMAIN:Read Post:::*

> stdin:Read Post:::*
> localhost:Read Post:::*
> 127.0.0.1:Read Post:::*

> Seems to me that anything running on this machine ought to know itself
> as part of *.SITE.DOMAIN, and therefore ought to take this as permission
> to read and post.

It depends heavily on how the machine is configured.  I've seen a lot of
PPP or similar dynamic setups where it really didn't know what IP address
it had under a lot of circumstances.  localhost is generally reliable,
though.

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

Re: Joys of INN 2.1+Linux+newbie admin!
#30207
Author: Russ Allbery
Date: Thu, 30 Jul 1998 00:00
142 lines
6763 bytes
I'm afraid that I can't help you all that much with all of this, as a lot
of what you're asking is 2.1- (or at least 2.0-) specific, and I've not
installed anything more recent than 1.7.2 yet.

Joe Bernstein <josephb@tezcat.com> writes:

> Already posted, the inn.conf.  I won't post the control.ctl,
> distrib.pats, expire.ctl, moderators, overview.ctl, or overview.fmt
> because none of them seems likely to be doing me harm (but corrections
> welcome!).

You'll want to at least look over control.ctl and expire.ctl to get a
feeling for what newgroup/rmgroup messages you're accepting and acting on
currently and how fast things are expiring, and you'll need to change
distrib.pats if (as you mentioned elsewhere) you end up getting an net.*
feed.

The rest should be fine, with the possible exception of overview.ctl which
I believe is a Storage API thing and therefore not something I'm that
familiar with.

> I'd assumed that without the storeageAPI the configure would leave
> cycbuff.conf bare, and without any expression of interest in syncing it
> would also leave actsync.cfg and actsync.ign bare.  Oops.  Do I need to
> delete these (*non*-empty) files?

Not entirely sure on cycbuff.conf, but the actsync.* files won't do
anything unless you run actsync, so just don't do that.

> So onward.  This post has innreport.conf and innwatch.ctl.

[snip innreport.conf]

> After this, tons of stuff that looks like a relative of C snipped.

Perl, actually.

> What is it all doing in a config file?

Probably stuff that's configurable, but not trivially.

> I *gather* what this is meant to do is produce a web page full of
> informative data about my news server, which sounds like a fine thing,
> though I'd rather it were documented.  Am I going to get this report
> automatically, or do I have to do something?  How much space is it going
> to eat up (ie, is it automatically retired or do I have to clean up
> after it?)

innreport I believe has completely replaced the old report generator in
INN, so you'll get the report that it generates every night in your e-mail
when you run news.daily (which should run nightly from news's crontab).
I'm not sure if it generates HTML by default; it might not.  I don't know
that much about that portion of it.

> Oh, well, at least it's commented.  Then we get to this:

> ***begin quote, long lines left intact***

[snipped the default innwatch.ctl]

> Um, ok.  This is basically gibberish to me.

You and most everyone else.  :/  innwatch is the part of the news system
that I personally consider almost the most cryptic.  I'm still not running
it on most of my servers because I haven't had time to really configure
it.

The first thing to keep in mind is that innwatch *isn't necessary*.  It's
designed to preventatively throttle the server if it's in danger of
running into problems and to notify the news user when problems happen,
but you can get by without running it at all.

If you do want to try to puzzle out the configuration file, ! is a
delimiter, and most of the complication is in the shell commands that are
being run.  (The description of how states work in the man page is
confusing, but you don't need most of that functionality.)  Here's the
innwatch.ctl file I'm playing with right now, which only does a limited
subset of what the default does:

                      ------------------------------

# If INN has exited, innwatch should also.
!!! test -f /var/news/run/innd.pid && echo 0 || echo 1 !eq!1!exit!innd dead

# Check free space on various file systems.  /news/spool is the current
# directory.
!!! /var/news/local/diskfree /news     !lt!20000!throttle!No space (0)
!!! /var/news/local/diskfree -i /news  !lt!25000!throttle!No space (0 inodes)
!!! /var/news/local/diskfree /news1    !lt!20000!throttle!No space (1)
!!! /var/news/local/diskfree -i /news1 !lt!25000!throttle!No space (1 inodes)
!!! /var/news/local/diskfree /news2    !lt!20000!throttle!No space (2)
!!! /var/news/local/diskfree -i /news2 !lt!25000!throttle!No space (2 inodes)
!!! /var/news/local/diskfree /var/news !lt!25000!throttle!No space (newslib)

                      ------------------------------

This one just checks for the death of INN (the first part) and various
disk space conditions.  I took the semi-complicated shell code and put it
in a separate file to make this more readable.  /var/news/local/diskfree
is just:

#!/bin/sh
/usr/local/bin/df $* | awk 'NR == 2 { print $4 }'

where /usr/local/bin/df is GNU df.

One of the site customizations is that df tends to return different things
on nearly every platform.  :/  I usually just install df and point things
at that so that the output is reliable.

The idea of innwatch is that it runs a command which returns a number, and
then it does a test against that number (like eq, lt, gt, etc.) and takes
an action if the test is true.  That action is usually throttling the
server, but can be something else.

Note that innwatch also watches your critical error log file and will mail
you if anything gets logged to it; it does this on its own without an
innwatch.ctl entry.  That's probably the most useful thing it does.

> but that man page does *not* tell me what sort of basis I'm supposed to
> do the (extremely necessary!) site-level configuration on, or where in
> the mess it goes,

The site configuration they're expecting mostly falls into two categories:
Making sure that innwatch checks the disk space usage on *all* your disks,
and making sure that the shell code is adjusted for the format that your
uptime, df, and similar programs really returns.

> and it does *not* actually explain just how innwatch comes to be running
> as a process on this system.

It's started by rc.news; if you read the very beginning of it, you'll see
where you can decide whether or not to run innwatch.

> Is this a feature continuous with 1.4, say, so I can check the RKT?

Yeah, innwatch has been around forever.

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

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads