🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #65505

Re: Newbie Question about INN

#65505
From: Jeffrey M. Vinocur
Date: Tue, 27 May 2003 22:31
107 lines
5276 bytes
In article <bb08sf$g6g$1$830fa7b3@news.demon.co.uk>,
David Cutting <dcutting@spambuster.purplepixie.org> wrote:
>
>I appologise for the newbism (?) of these questions
>and I'm sure the answers are in the documentation
>somewhere (as always); but I am unable to find them.

Yeah, readers.conf confuses pretty much everyone.


>1. A couple of purely local groups
>2. A couple of public Usenet groups gated to my ISP
>3. A couple of private groups shared with one other
>   server accessible globally

*nod*  You didn't ask any specific questions about most of the
issues that can come up there, so I won't go into it unless you
have trouble.


>I've got inn working fine with any number of groups
>I want. I know what I need to do to control access
>via the readers.conf file to certain groups.

Ok, you've got the usual problem, lack of readers.conf Zen.  To
get this working, you need to understand a bit about the purpose
behind the dichotomy between auth and access (I'm guessing you
found it silly to have two groups for every class of
connections).

An incoming connection goes through a two-phase process, first
assigning an identity using auth blocks, and then giving that
identity permission to read or post according to access blocks.
The fact that you can intermingle the two types in readers.conf
is most often deceptive -- if you put all the auth groups at the
top and access groups below (which has the same meaning) it may
become more clear.

First the auth blocks are scanned top-down and the *last*
matching one is used.  So part of your problem is that your auth
blocks need to be reordered to have the most general first.
After this step, the connection has an identity; at this point we
must *forget* about everything except that identity.  Then the
*last* access block matching with users: matching the identity
string is used to determine reading and posting.  In other words,
your access blocks also need to be most general first -- but
seriously, do put them all at the bottom and I think it'll be
less confusing.


Some other comments that aren't breaking anything but may be
informative:
- you can use "hosts: *" instead of 0.0.0.0/0
- "access: RP" is the default if you've used newsgroups: to
  specify access (and access: is deprecated on top of it,
  although still necessary to permit posting to moderated groups)


>1. My local machines can only see newsgroups as
>described in the global rule.

See above.  Also, editing syslog.conf to record news.debug (and
then HUP'ing syslogd) will get you detailed debug output that may
be helpful.


>when my posts appear
>they have a MessageID of post@pixie.pixie.zz which
>is my internal hostname. I don't know if this
>may cause problems for other people? I would like
>them to appear as post@groups.purplepixie.org. I
>have set pathhost and domain in inn.conf. The
>pathhost is ok but I can't find how to change the
>Message ID. Does this matter??

It won't cause a problem per se, but it is best to have a FQDN in
Message-IDs.  You're right that this is tricky to fix (turns out
that domain: in inn.conf is not used for Message-IDs unless INN
can't figure out the hostname any other way), but it can be
overridden in readers.conf although it's somewhat tedious to
specify it in every access block.  See the FAQ:

http://www.eyrie.org/~eagle/faqs/inn.html#S6.6


>I am currently using pullnews to get mail to and
>from my ISP (specifying the ISP newserver to feed
>to from localhost to upload). This seems to be
>working fine but I know that innfeed is the
>preferred way of doing things. Should I be using
>innfeed? I don't post a lot of articles but I
>do take quite a few newsgroups.

Hmm, if pullnews works to send posts to your ISP, that means they
are treating you like an actual peer.  In that case, you really
don't need to be bothering with pullnews for outbound news --
innfeed will work just fine and is much more reliable about
retrying on failure and such things.  The load on the far end
will be the same, but innfeed doesn't need to constantly scan
your server for new articles the way pullnews does, and also
won't try to send back up all the articles you've pulled down.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <bb0p00$gb2$3@puck.litech.org>
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!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail
References: <bb08sf$g6g$1$830fa7b3@news.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <bb0p00$gb2$3@puck.litech.org>
Subject: Re: Newbie Question about INN
Date: Tue, 27 May 2003 22:31:28 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <bb08sf$g6g$1$830fa7b3@news.demon.co.uk>
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!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 106
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1054074688 16738 66.218.0.75 (27 May 2003 22:31:28 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Tue, 27 May 2003 22:31:28 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)