Thread View: news.software.nntp
4 messages
4 total messages
Started by David Cutting
Tue, 27 May 2003 18:04
Newbie Question about INN
Author: David Cutting
Date: Tue, 27 May 2003 18:04
Date: Tue, 27 May 2003 18:04
93 lines
3354 bytes
3354 bytes
Hi there,
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.
I'm using INN under RedHat and want to provide:
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
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. I've
followed the syntax shown and this has given me:
auth "localhost" {
hosts: "localhost, 127.0.0.1, stdin"
default: "<localhost>"
}
access "localhost" {
users: "<localhost>"
newsgroups: "*"
access: RPA
}
# Now for my LAN
auth "local" {
hosts: "*.pixie.zz, pixie.zz, 10.0.1.0/24"
default: "<local>@purplepixie.org"
}
auth "global" {
hosts: "0.0.0.0/0"
default: "<global>@purplepixie.org"
}
access "local" {
users: "<local>@purplepixie.org"
newsgroups: "*"
access: RPA
}
access "global" {
users: "<global>@purplepixie.org"
newsgroups: "test.*, global.*"
access: RP
}
Currently I have two problems and one further
question as follows:
1. My local machines can only see newsgroups as
described in the global rule. I've tried any and
(as you can see) all of the possible permutations
in hosts to describe my LAN (10.0.1.0/24) with all
valid hosts reversing to X.pixie.zz hostnames.
2. I have porting of group posts to/from my ISP's
server without problem but 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??
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.
Any help would be greatly appreciated.
Cheers,
Dave.
--
David Cutting
.sig on .strike
Re: Newbie Question about INN
Author: Jeffrey M. Vinocur
Date: Tue, 27 May 2003 22:31
Date: Tue, 27 May 2003 22:31
107 lines
5276 bytes
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
Re: Newbie Question about INN
Author: David Cutting
Date: Tue, 27 May 2003 23:01
Date: Tue, 27 May 2003 23:01
29 lines
1679 bytes
1679 bytes
Dear Jeffrey, Thank you very much for your detailed and polite reply. Following your directions I have solved the access problem and have my FQDN shown on the MessageID's. If I could just take your time with one more question I would be very greatful. How can I specify read access to certain types of groups and full access to others. Would I use something like: newsgroups: "test.*" access: RP newsgroups: "global.*" access: R in the access section or have two access sections? Thank you once again for your help. Regards, David Cutting.
Re: Newbie Question about INN
Author: Russ Allbery
Date: Tue, 27 May 2003 23:03
Date: Tue, 27 May 2003 23:03
26 lines
1714 bytes
1714 bytes
David Cutting <dcutting@spambuster.purplepixie.org> writes:
> If I could just take your time with one more question I would be very
> greatful. How can I specify read access to certain types of groups and
> full access to others.
> Would I use something like:
> newsgroups: "test.*"
> access: RP
> newsgroups: "global.*"
> access: R
No, use:
read: "test.*,global.*"
post: "test.*"
in one access section.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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