Thread View: news.software.nntp
8 messages
8 total messages
Started by Henrik Størner
Fri, 24 Jan 2003 21:32
INN 2.3.3: Cannot direct a followup to a moderated group ?
Author: Henrik Størner
Date: Fri, 24 Jan 2003 21:32
Date: Fri, 24 Jan 2003 21:32
39 lines
2435 bytes
2435 bytes
I run a news server for a Linux User Group (SSLUG), where we have a series
of mailing lists that are fed into matching newsgroups.
To get the news-postings also into the mailing lists, I have setup the
newsgroups as moderated, and use the submission address for the mailing
list as the moderator address.
This works fine and well - no problems.
Now I have upgraded from a rather old Red Hat 6.2 system with INN 2.2.2,
to a more recent Red Hat 8 with INN 2.3.3. And now, it seems that when
news-posters direct follow-ups to a specific newsgroup, the posting is
rejected. Posters get an error back from nnrpd:
"480 You are not allowed to approve postings"
Posting articles without a Followup-to header works just fine.
I can see that the error comes from this change in nnrpd/post.c from INN
2.2.2 to 2.3.3:
case NF_FLAG_MODERATED:
- if (!approved && !*modgroup) {
- *modgroup = COPY(GPNAME(gp));
+ if (approved && !PERMaccessconf->allowapproved) {
+ (void)sprintf(Error, "You are not allowed to approve
postings");
+ } else if (!approved && !*modgroup) {
+ *modgroup = COPY(p);
so I could of course just nuke that extra check and have things working
again. But I suppose they were put there for a reason ... can anyone
enlighten me as to why this extra check was deemed necessary ?
TIA,
Henrik St�rner
henrik@hswn.dk / storner@sslug.dk
Re: INN 2.3.3: Cannot direct a followup to a moderated group ?
Author: Henrik Størner
Date: Fri, 24 Jan 2003 21:57
Date: Fri, 24 Jan 2003 21:57
52 lines
2780 bytes
2780 bytes
Henrik St�rner wrote:
> Now I have upgraded from a rather old Red Hat 6.2 system with INN 2.2.2,
> to a more recent Red Hat 8 with INN 2.3.3. And now, it seems that when
> news-posters direct follow-ups to a specific newsgroup, the posting is
> rejected. Posters get an error back from nnrpd:
> "480 You are not allowed to approve postings"
>
> Posting articles without a Followup-to header works just fine.
>
> I can see that the error comes from this change in nnrpd/post.c from INN
> 2.2.2 to 2.3.3:
OK, some digging into the versions pins it down to the change introduced in
INN 2.3.3, The NEWS file states
* An item that was noted in NEWS below but was inadvertently left out
og nnrpd has actually been added this time: users can no longer post
articles containing Approved: headers to moderated groups by default;
they must be specifically given that permission with the access:
parameter in readers.conf. See the man page for more details.
However, the articles that are refused do NOT contain an "Approved:" header,
just a "Followup-To:" header.
Here is the session as captured with Ethereal:
POST
340 Ok, recommended ID <b0scmr$eln$1@www.sslug.dk>
Message-Id: <b0scmr$eln$1@www.sslug.dk>
From: Henrik =?ISO-8859-1?Q?St=F8rner?= <henrik-news@hswn.dk>
Subject: Re: [TEST] followuptest 1
Newsgroups: sslug.test
Followup-To: sslug.test
Date: Fri, 24 Jan 2003 22:54:35 +0100
References: <b0rkjk$541$1@www.sslug.dk>
Lines: 5
Organization: Linux Users Inc.
User-Agent: KNode/0.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
Henrik St�rner wrote:
> knode uden fu.
igen
.
441 You are not allowed to approve postings
Re: INN 2.3.3: Cannot direct a followup to a moderated group ?
Author: Russ Allbery
Date: Fri, 24 Jan 2003 22:18
Date: Fri, 24 Jan 2003 22:18
28 lines
2010 bytes
2010 bytes
Henrik St�rner <henrik-news@hswn.dk> writes:
> Here is the session as captured with Ethereal:
> POST
> 340 Ok, recommended ID <b0scmr$eln$1@www.sslug.dk>
> Message-Id: <b0scmr$eln$1@www.sslug.dk>
> From: Henrik =?ISO-8859-1?Q?St=F8rner?= <henrik-news@hswn.dk>
> Subject: Re: [TEST] followuptest 1
> Newsgroups: sslug.test
> Followup-To: sslug.test
> Date: Fri, 24 Jan 2003 22:54:35 +0100
> References: <b0rkjk$541$1@www.sslug.dk>
> Lines: 5
> Organization: Linux Users Inc.
> User-Agent: KNode/0.7.1
> MIME-Version: 1.0
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8Bit
Is sslug.test a moderated newsgroup?
--
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.
Re: INN 2.3.3: Cannot direct a followup to a moderated group ?
Author: Henrik Størner
Date: Fri, 24 Jan 2003 22:49
Date: Fri, 24 Jan 2003 22:49
28 lines
1833 bytes
1833 bytes
Russ Allbery wrote: > Henrik St�rner <henrik-news@hswn.dk> writes: > >> Here is the session as captured with Ethereal: > >> POST >> 340 Ok, recommended ID <b0scmr$eln$1@www.sslug.dk> >> Message-Id: <b0scmr$eln$1@www.sslug.dk> >> From: Henrik =?ISO-8859-1?Q?St=F8rner?= <henrik-news@hswn.dk> >> Subject: Re: [TEST] followuptest 1 >> Newsgroups: sslug.test >> Followup-To: sslug.test >> Date: Fri, 24 Jan 2003 22:54:35 +0100 >> References: <b0rkjk$541$1@www.sslug.dk> >> Lines: 5 >> Organization: Linux Users Inc. >> User-Agent: KNode/0.7.1 >> MIME-Version: 1.0 >> Content-Type: text/plain; charset=iso-8859-1 >> Content-Transfer-Encoding: 8Bit > > Is sslug.test a moderated newsgroup? > Yes - should have mentioned that.
Re: INN 2.3.3: Cannot direct a followup to a moderated group ?
Author: Russ Allbery
Date: Fri, 24 Jan 2003 22:53
Date: Fri, 24 Jan 2003 22:53
18 lines
1821 bytes
1821 bytes
Henrik St�rner <henrik-news@hswn.dk> writes:
> Russ Allbery wrote:
>> Is sslug.test a moderated newsgroup?
> Yes - should have mentioned that.
So the message should have actually been forwarded to the moderator via
e-mail, right? Because it's a post to a moderated group without an
Approved header? (I'm just trying to get a handle on what bit of code in
particular is going wrong.)
--
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.
Re: INN 2.3.3: Cannot direct a followup to a moderated group ?
Author: Henrik Størner
Date: Sat, 25 Jan 2003 07:56
Date: Sat, 25 Jan 2003 07:56
30 lines
2104 bytes
2104 bytes
Russ Allbery wrote: > Henrik St�rner <henrik-news@hswn.dk> writes: >> Russ Allbery wrote: > >>> Is sslug.test a moderated newsgroup? > >> Yes - should have mentioned that. > > So the message should have actually been forwarded to the moderator via > e-mail, right? Because it's a post to a moderated group without an > Approved header? (I'm just trying to get a handle on what bit of code in > particular is going wrong.) Correct. It is a normal post to a moderated group, except that there is a followup-to header pointing to a moderated group. If the followup-to header is removed, the posting is handled as expected, i.e. mailed to the moderator mailing address. Right now, I do not know if the problem exists when a) the followup-to goes to a moderated group only, or b) whenever there is a folloup-to header, regardless of whether the followup group is moderated or not. I'll check that.
Re: INN 2.3.3: Cannot direct a followup to a moderated group ?
Author: greg andruk
Date: Sat, 25 Jan 2003 08:14
Date: Sat, 25 Jan 2003 08:14
11 lines
2007 bytes
2007 bytes
Henrik Størner wrote: > Correct. It is a normal post to a moderated group, except that there is > a followup-to header pointing to a moderated group. Yep. I can reproduce this bug, it's not just your configuration. The problem is that the ValidNewsgroups() function in nnrpd/post.c is being used to check both the Newsgroups: and Followup-To: headers without making a distinction between the two.
Re: INN 2.3.3: Cannot direct a followup to a moderated group ?
Author: Russ Allbery
Date: Sat, 25 Jan 2003 19:38
Date: Sat, 25 Jan 2003 19:38
21 lines
2127 bytes
2127 bytes
greg andruk <gja@meowing.net> writes:
> Henrik Størner wrote:
>> Correct. It is a normal post to a moderated group, except that there is
>> a followup-to header pointing to a moderated group.
> Yep. I can reproduce this bug, it's not just your configuration.
> The problem is that the ValidNewsgroups() function in nnrpd/post.c is
> being used to check both the Newsgroups: and Followup-To: headers
> without making a distinction between the two.
Ah, yes, I see the problem. Will fix this later this weekend. This might
be worth another INN 2.3.x release. *sigh*
--
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