🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #33747

Re: Is INN my solution?

#33747
From: Klaus G Wagner
Date: Sat, 12 Dec 1998 00:00
273 lines
11064 bytes
Hi,

"Charles Wilkins" <chas@pcscs.com> writes:


>I am running a linux redhat-5.2 system on my network.
...
>I want it to be our news server as well and suspect that innd is what I
>need to learn.

Seems right. Note that the most appropriate newsgroup for your
question is 

        news.software.nntp   [Followup set]

Hope my reply isn't frowned upon  in comp.os.linux.misc 
nevertheless -- have forbearance, please.


>I am new to innd and am a bit confused abouts its abilities as well as its
>configurations.

>I have read /usr/doc/inn-1.7.2/Install.ms
>I have read www.redhat.com/support/docs/rhl/INN-Tips/
>I have read many postings in several newsgroups, such as this group.
>I have been able to initialize innd with groups: junk, control, test and
>to.
>I can post to these groups, but that is as far as I have gotten.

>Here is what I want to do:
>I have accounts with a few Internet News Services such as:
>news.supernews.com and 
>news.erols.com.

>I want to be able to archive or download all or some of their newsgroups
>and articles to the linux box.
>I then want to be able to access these articles using other systems on my
>network as well as be able to 
>post articles to my linux box from these systems.
>Finally, I want the articles that are posted to reach their intended
>destinations in the appropriate groups 
>on the Internet.

>Does inn-1.7.2 do this?

Yes, it fits nicely. In fact, inn is a very common open newsserver 
software. OTOH, it's a really _big_ package intended for _big_ 
servers, so it is very natural that you find it difficult to become 
familiar with it.

It comes with lots of auxiliary tools and config possibilities which
only experience will teach you to master (I too wish I had it...).

Anyway, I'll try to give you a sketchy roadmap of essential steps to get
inn up and running (please observe that some paths may be different
on your system, as I use SuSE Linux instead of Red Hat. I run inn
on my home system which gets its newsfeed per UUCP). I follow the
/var/lib/news/README.linux contained in the SuSE inn package.

NOTE to the INN old-hands out there: please don't flame me for 
unintentional inaccuracies (better post a followup to simply 
correct them ;-)


  1.  Get /var/lib/news/active (the raw newsgroups list) and 
      /var/lib/news/newsgroups (the newsgroups descriptions) from your
      news-server.
      Look at getlist(1) to find out how to do this if you don't have an
      account on the server machine.

      Edit  active  to reset the upper and lower bounds for the
      articles available (upper=0, lower=1 to indicate that there
      are no articles yet): e.g.

comp.os.linux.misc 0000000000 00001 y

      Note: inn includes a manpage for active(5).
      Note: your local inn knows _only_ the groups listed in  active.

  2.  Edit in /var/lib/news:

      - inn.conf (this file is well-commented and contains but a few
        entries like domain, organization etc.)

      - control.ctl (the defaults should be reasonable for a start,
        though) . This file defines which control messages your
        newsserver will honour and what type of authorization checks
        it will apply to them.

      - expire.ctl   to define your expire time limits. The more
                     general rules should come first, then the more
                     specific ones. There's a manpage for this file
                     too. Example entries:

# hold for 1 day at least, default expire after 10 days, force expire
# after 14 days
comp.os.linux.*:A:1:10:14
....
# this group's articles shall have a shorter life...
comp.os.linux.advocacy:A:1:3:3

       
      - hosts.nntp : these are the authorization data for the hosts
        which may contact your system via NNTP to feed it news. Only
        needed if some of your newsfeeds contact your system on their
        own initiative (usually, it's the other way round: that
        _your_ system does some sort of polling to get its feeds).

      - newsfeeds : this is the most complicated of the config files,
        describing in detail the newsfeeds you *provide*.  There's a 
        default entry called "ME" at the start which is sort of
        included into all the following entries. Usually an entry
        for the local OVERVIEW database follows (= the article
        database most modern newsreader programs prefer to use for 
        searching articles). After this, you must provide entries for
        your newsservers too as only these enable you to get your
        articles out to The World.

        Observe that a newsfeeds entry usually does nothing more than
        storing a list of articles to be fed into a file in
        /var/spool/news/out.going. The actual feeding itself is done
        by separate tools, see below.

        Also this file has a (difficult) manpage and a commented
        example in the inn package. Here are some entries of my system:

-------------8<---------------------------------8<-------------

# for NOV overview database: feed to the  overchan  utility which
# maintains this database. The junk and control* groups are excluded.
OVERVIEW!:*,!junk,!control*:Tc,WO:/usr/lib/news/bin/overchan

# Feed new incoming articles back to my newsserver _except_
# for those which I got from there, i.e., which have the 
# FQDN.of.newsserver already in their path (which are by far 
# the most, of course). Groups junk and local.* are excluded (for
# obvious reasons ;-) 
#
# Feed type is file (Tf), i.e., /var/spool/news/out.going/my_newsserver
# Wnb says what info about each article is stored: path and size.
# The B term defines the collection of outgoing articles in "batches". 
#
# Observe that the first  my_newsserver  is the name expected/used
# by the utility which actually executes the feed (e.g. the
# configured UUCP name for the newsserver, if the feed is done
# by /usr/lib/news/bin/send-uucp). 
#
# The newsserver name matters also in the exclude expression  
# FQDN.of.my_newsserver (look up the  Path: of the articles you get 
# from there to check for the  correct exclude expression -- only 
# thus you avoid feeding  all those articles back to where you got them)
#
my_newsserver/FQDN.of.my_newsserver:!junk,!local.*:Tf,Wnb,B65536/1024:

# This is another host for which _you_ are a main newsfeed: for this
# one you construct larger batches since it'll also get many of the
# articles you got from _your_ main newsfeed.
#
# Note that this entry needs to be maintained, if the fedhost
# wants to change its selection of newsgroups. I don't know about
# a possibility to replace the groups list or the whole entry
# by some sort of include-other-configfile statement.
#
fedhost/FQDN.of.fedhost\
     :newsgroups.for.fedhost.*,more-newsgroups.*\
          :Tf,Wnb,B262144/1024

-------------8<------  end of newsfeeds ex.  ---8<-------------

      -  nnrp.access : this is the NNTP access control file for your
         newsserver. Your localnet hosts should be in there.


3.  Set up a crontab for the news account doing the feeding and the
    regular chores. AFAIK this is not very well documented in the INN
    docu... Here's mine:


--------------8<--------   news's crontab   ---------8<------

#  crontab of news@watari.franken.de for inn 
#
MAILTO=news@watari.franken.de


#
#  prepare batches via UUCP (this creates the UUCP jobs. The
#  transmitting itself will take place during the next UUCP polling,
#  initiated by invoking  uucico  for the respective system):
#
#  Every 20 minutes for our main newsfeed (UUCP) . The name
#  my_newsfeed must match both the /var/lib/news/newsfeeds entry name
#  and the UUCP name of this newsfeed host.
#
#  Note: send-uucp logs to /var/lib/news/log/send-uucp.log
#
*/20 * * * *        /usr/lib/news/bin/send-uucp my_newsfeed

# half-hourly batches also to fedhost:
10,40 * * * *          /usr/lib/news/bin/send-uucp fedhost
 
#-----------------------------------------------------------
# Daily housekeeping ... expires news and other things ...
#-----------------------------------------------------------
#    news.daily is a shellscript doing most of the daily chores (expire!).
#    Here: expire also the overview database, using the list of expired
#    articles /var/lib/news/bin/expire.rm created by expire
40 20 * * *          /usr/lib/news/bin/news.daily expireover delayrm

#    Once a week expire/update the overview database looking 
#    directly at the articles present ( 0 = Sunday)
24 20 * * 0          /usr/lib/news/bin/expireover -a -v >/dev/null

#    Once a month build the history file from scratch. Only the newsgroups
#    present in the active file are checked. (here: 1st of month)
24 1 1 * *          /usr/lib/news/bin/makehistory -buv

#    Every 10 min send /var/spool/news/in.coming/* to innd.
*/10 * * * *          /usr/bin/rnews -U

-------------8<--------   news's crontab: end  -----8<------



4.  Configure syslog to catch the inn logs in an appropriate logfile.
    My entry in /etc/syslog.conf runs:

news.*      -/var/log/news

    Send the syslogd a SIGHUP in order to activate this new
    configuration.    

    Then try to start inn by doing (as root):

          /usr/lib/news/bin/rc.news.

    and observe /var/log/news. Do a 

         /usr/lib/ctlinnd feedinfo _host_  

    for every _host_ you configured newsfeeds for.    


5.  Now make yourself familiar with the ctlinnd(8) command. Extensive
    manpage! The other /usr/lib/news/bin/* utilities follow.....

    To shutdown inn, the command is:

    /usr/lib/news/bin/ctlinnd shutdown now


6.  Add the startup and shutdown commands for inn to your system
    startup scripts (A good Linux distro should have this included 
    in its inn package).


7.  Collect experience ;-))


>Thanks to all who reply!
>Charles Wilkins
>chas@pcscs.com

Best wishes for your success!
                                   Klaus

-- 
  Klaus Wagner       kgw@watari.franken.de
  PGP (1024/D7A16B1D) = 42 5B CD ED EC E7 8F 50 C0 B0 14 1E 3B 9F DC 08
"Linux was made by foreign terrorists to take money from true
US companies like Microsoft." -- Some A*L'er.

Technical Details
Message-ID: <74uak6$15a$1@watari.franken.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <01be24bd$c0633aa0$2b6e60cf@the-helm.pcscs.com>

Show Full Headers
Complete Article Headers
Message-ID: <74uak6$15a$1@watari.franken.de>
Subject: Re: Is INN my solution?
Date: Sat, 12 Dec 1998 00:00:00 +0000
From: kgw@watari.franken.de (Klaus G Wagner)
References: <01be24bd$c0633aa0$2b6e60cf@the-helm.pcscs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 421598229
X-Server-Date: 12 Dec 1998 17:54:14 GMT
Followup-To: news.software.nntp
Organization: my lovely private site - not organizable
Newsgroups: comp.os.linux.misc,news.software.nntp