You need to install a news server. I used
but others are available (somewhere).
Preferably just check the "News Server" box during your initial install, but alternatively if your distribution uses RPM (RedHat package manager), then use something like...
rpm -i inn-2.2.9.i386.rpm
To manually start or stop the news server, use a command like
To have the news server start at boot you could add a command
like this to end of
/etc/rc.d/rc.local, but that is not the best.
Many distributions have a graphical tool for choosing which daemons
run. You can also try the command line program
chkconfig --add innd
innd is pretty picky about permissions and ownership. For
much of the news config you will need to be the user
To become this user from root...
su - news
ctlinnd, create the newsgroup on your news server. Remember, the
newsgroup will be local, so start it with a distinctive name
so you can filter it out from your news distributions
if you do that stuff. I shamelessly named my newsgroup
ietf.confctrl. The words from left to right go from less to more specific.
You also need to tell
innd that the group is moderated (by using
ctlinnd). Indicating a moderated group is done by specifying
m to the
newgroup command. For example...
ctlinnd newgroup ietf.confctrl m firstname.lastname@example.org
The newsgroup is set up as a moderated group, as this allows us to take advantage of the email capabilities of innd. Any messages posted to a moderated group are not immediately submitted to the group. Instead, messages are emailed to the moderator of the group. In our example email@example.com is the address which is resent by the remailer.
If you are sharing news with other servers, remember to edit your newsfeeds so that this group is not not distributed (unless you specificaly wish this to occur).
By default the news server, doesn't let any clients read news, so I needed to disable the user authentication of innd. This was done in the /etc/news/nnrp.access. Check out the nnrp.access man page to learn the syntax of this file. I changed the first non-comment line to ...
If you want a username/password, fill in the 3rd and 4th (colin separated) fields. For more information on the syntax, check the man page...
I had to change the permissions of /usr/bin/rnews. It was
not world read/executable, but
sendmail runs scripts as
chmod a+rx /usr/bin/rnews
If you copy the following article to a file named
Path: howto From: firstname.lastname@example.org Message-ID: <199907120548.AAA05475@fdd.com> Subject: test Date: Mon, 12 Jul 1999 00:48:49 -0500 (CDT) Newsgroups: ietf.confctrl Approved: email@example.com NNTP-Posting-Host: localhost Organisation: (mail2news gateway) test
Then you should be able to post a file with...
/usr/bin/rnews -r localhost <rick.article
You don't need to wait for
the article to show up as unread, just look at the
subdirectories for files being created.
You may want to increase the expiration time for articles of your new newsgroup. In my case I wanted them never to expire, so I added the following line....
To learn more about the syntax of this file type...