🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Jon Bendtsen Tue, 11 Dec 2007 12:56
readers.conf does not catch localhost and allow mailpost to aprove moderation
#78265
Author: Jon Bendtsen
Date: Tue, 11 Dec 2007 12:56
41 lines
2335 bytes
Hi

i run inn 2.4.3-1 (debian etch) and i wonder why my readers.conf does not allow approving from localhost?

readers.conf:
--------------------------------------------------------------------------------
auth "localhost" {
    hosts: "localhost, 127.0.0.1, stdin, dknntp.laerdal.global, 192.168.123.235"
    default: "<localhost>"
}

access "localhost" {
    users: "<localhost>"
    newsgroups: "*"
    access: RPA
}

auth "ALL" {
    hosts: *
    default: <PUBLIC>
}

access "ALL" {
    users: <PUBLIC>
    newsgroups: *,!junk,!control,!control.*
    access: RPA
}
---------------------------------------------------------------------------------

I had to add A to the access line in ALL.

I was trying to use mailpost to fetch emails and post them as news messages, but i kept on getting this error message:
 
inews failed: inews: cannot send article to server: 441 You are not allowed to approve postings inews: article not posted

I rather quickly found the A flag was needed in readers.conf, but i wonder why it is not enough with adding the local dns name and ip address to the localhost access?




JonB
Re: readers.conf does not catch localhost and allow mailpost to aprove moderation
#78267
Author: Julien ÉLIE
Date: Tue, 11 Dec 2007 13:24
55 lines
2853 bytes
Hi Jon,

> i run inn 2.4.3-1 (debian etch) and i wonder why my readers.conf
> does not allow approving from localhost?

Note that INN 2.4.3-1 in Debian is in fact a 2.4.2.
You have in Lenny (2.4.3+20070806-1) a real 2.4.3.

There was a change in 2.4.3 :
      Fixed yet another problem with verifying that a user has permissions
      to approve posts to a moderated group. Thanks, Jens Schlegel.

I do not know whether this is exactly your problem which was fixed.



> readers.conf:
> --------------------------------------------------------------------------------
> auth "localhost" {
>    hosts: "localhost, 127.0.0.1, stdin, dknntp.laerdal.global, 192.168.123.235"
>    default: "<localhost>"
> }
>
> access "localhost" {
>    users: "<localhost>"
>    newsgroups: "*"
>    access: RPA
> }
>
> auth "ALL" {
>    hosts: *
>    default: <PUBLIC>
> }
>
> access "ALL" {
>    users: <PUBLIC>
>    newsgroups: *,!junk,!control,!control.*
>    access: RPA
> }
> ---------------------------------------------------------------------------------
>
> I had to add A to the access line in ALL.

Oh!  It is perhaps another problem:  when matching auth groups, the last auth group
in the file that matches a given connection and username/password combination is used.

So you should try to invert the order of your two auth groups.

Regards,

-- 
Julien ÉLIE

« La science consiste à passer d'un étonnement à l'autre. » (Aristote) 
Re: readers.conf does not catch localhost and allow mailpost to aprove moderation
#78268
Author: Jeffrey M. Vinocur
Date: Wed, 12 Dec 2007 10:22
19 lines
1604 bytes
In article <fjm1d0$1f5n$1@munin.diku.dk>,
Jon Bendtsen  <noone@example.com> wrote:
>
>i run inn 2.4.3-1 (debian etch) and i wonder why my readers.conf does
>not allow approving from localhost?

Remember:

       When matching auth groups, the last auth group in the file
       that matches a given connection and username/password
       combination is used.

If you swap the order of your auth blocks, I think you should be
okay.

    
-- 
Jeffrey M. Vinocur
jeff@litech.org
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