create groups
,----
| $ /usr/sbin/ctlinnd newgroup demo.comments
`----
edit /var/lib/news/newsgroups
,----
| demo.comments Demo comments
`----
Enable IHAVE to send news from rnews from other client.
edit /etc/news/control.ctl change drop -> doit
,----
| ihave:*:*:doit
`----
| Organization: A poorly-installed InterNetNews site
| MIME-Version: 1.0
| Content-Type: text/plain; charset=UTF-8
| test
|
| QUIT
post message
,----
| /usr/bin/rnews -h usene-server.home.lab -P 119 -S usenet-server.home.lab < test_message.txt
A few remarks below:
create groups
,----
| $ /usr/sbin/ctlinnd newgroup demo.comments
`----
I do not understand well in the documentation when you test the
moderation. There's no moderated newsgroup involved.
Shouldn't demo.comments be a moderated newsgroup?
ctlinnd newgroup demo.comments m
Thanks for your work on explaining how to set up moderation. (It may
still be a bit obscure for people who have never installed a news server
and a mail server.)
| POST[...]
| Organization: A poorly-installed InterNetNews site
Now, your message should appear in demo.comments news group.
Hi Salahuddin,
| POST[...]
| Organization: A poorly-installed InterNetNews site
You can remove that header field.
Now, your message should appear in demo.comments news group.
It won't, as the group is moderated.
You should say that it is normal that the message did not appear in the newsgroup when posted. It was mailed to the moderator for manual approval.
Unless you wish to test whether posting works?
Then I would suggest to create 2 newsgroups: demo.comments and demo.comments.moderated, the first one unmoderated, and the second one moderated.
You first try to post in demo.comments, and ensure the post appears. And
then you send another post to demo.comments.moderated, which does not
appear in the newsgroup.
But you have to set up the local mail server (step 4) before doing that second test.
Removed the header, but for simplicity I kept the newsgroup not
moderated (for testing only).
I assume, initially news moderator won't run a news-server, but use
external news-server for submitting approved post.
I am using external news-server to send the submission by adding
"Approved:" header.
But later, I realized if I want to post news I should have static IP
which my news-server allowed to post news via rnews.
Is there any alternative way news-server can allow any random IP to
submit post via rnews.
Hi Salahuddin,
Removed the header, but for simplicity I kept the newsgroup not
moderated (for testing only).
I assume, initially news moderator won't run a news-server, but use
external news-server for submitting approved post.
I am using external news-server to send the submission by adding
"Approved:" header.
OK, that sounds a more frequent case.
But later, I realized if I want to post news I should have static IP
which my news-server allowed to post news via rnews.
Is there any alternative way news-server can allow any random IP to
submit post via rnews.
Why don't you just use inews instead of rnews?
inews will send a POST command, and as "RPA" access has been allowed in readers.conf, posts with an Approved header field will be allowed. This way, you can have any IP you want.
Furthermore, the setting in incoming.conf is no longer necessary as you
won't use IHAVE commands.
https://www.eyrie.org/~eagle/software/inn/docs/inews.html
inews — Post an article to the local news server
Is there any other inews you mean ?
If I configure /etc/news/inn.conf correctly, then this local news post
to inews will be posted to remote news-server ?
Hi Salahuddin,
https://www.eyrie.org/~eagle/software/inn/docs/inews.html
inews — Post an article to the local news server
Is there any other inews you mean ?
I indeed meant this one.
You can also use tinews.pl shipped with tin, which works pretty well and
is actively maintained. (Looking at the contents of the Debian package, tinews.pl is not directly installed in /usr/bin but in /usr/share/doc/tin/tools/tinews.pl.gz so you'll need an extra step to uncompress it in the right directory. Too bad it is not installed by default...)
If I configure /etc/news/inn.conf correctly, then this local news post
to inews will be posted to remote news-server ?
inews will post the article to the news server set in the "server"
parameter in inn.conf.
I've not tested that use case of posting to a remote server with inews,
but it should normally work. Please tell if it does not.
On 1/23/24 20:03, Julien ÉLIE wrote:
You can also use tinews.pl shipped with tin, which works pretty well
and is actively maintained. (Looking at the contents of the Debian
package, tinews.pl is not directly installed in /usr/bin but in
/usr/share/doc/tin/tools/tinews.pl.gz so you'll need an extra step to
uncompress it in the right directory. Too bad it is not installed by
default...)
I will have a look.
I will try to do a small test with inews in my local virtual servers.
You can also use tinews.pl shipped with tin, which works pretty well
and is actively maintained. (Looking at the contents of the Debian
package, tinews.pl is not directly installed in /usr/bin but in
/usr/share/doc/tin/tools/tinews.pl.gz so you'll need an extra step to
uncompress it in the right directory. Too bad it is not installed by
default...)
tinews.pl worked.
I will try to do a small test with inews in my local virtual servers.
I could not find any option to specify host for inews.
I added "Moderation without server" using IMAP. https://netuse.dynamicmalloc.com/usenet_mod_dev.html
The name of the default NNTP server. If nnrpdposthost is not set and
UNIX domain sockets are not supported, nnrpd tries to hand off
locally-posted articles through an INET domain socket to this server.
actsync, getlist, inews, and nntpget also use this value as the default server to connect to. In the latter cases, the value of the NNTPSERVER environment variable, if it exists, overrides this. The default value is unset.
"""
Just tested, and it works for me. I don't know why it does not for you. Maybe the easiest way is to just use the NNTPSERVER environment variable:
salahuddin wrote:
I added "Moderation without server" using IMAP.
https://netuse.dynamicmalloc.com/usenet_mod_dev.html
no need to install tin, tinews.pl can be fetched from <http://bzr.tin.org/tools/tinews.pl> <ftp://ftp.tin.org/pub/news/clients/tin/tools/tinews.pl>
| Configure tin with server host, login, and password.
^^^ tinews.pl
tinews.pl looks for a config in (first match counts)
$XDG_CONFIG_HOME/tinewsrc
$HOME/.config/tinewsrc
$HOME/.tinewsrc
as "option=value" configuration pairs, last match counts and only
"value" is case sensitive. Available config options are those listed
via tinews.pl --help --verbose. Env.-vars and cmd-line options do override
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 98:58:11 |
Calls: | 6,659 |
Calls today: | 1 |
Files: | 12,208 |
Messages: | 5,334,668 |