Solaris ISP Server 2.0 Reference Guide

Chapter 2 News Command Line Procedures

This section provides the procedures for the SunTM Internet News ServerTM command line tasks:.

This section assumes:

2.1 Procedures

The following procedures explain Sun Internet News Server maintenance tasks.

2.1.1 Start/Stop Reader/Feeder Servers

The snsnews(1m) command is used to start and stop the News reader and feeder daemons, for example:


# /etc/init.d/snsnews start
# /etc/init.d/snsnews stop

2.1.2 Newsgroup Tasks

2.1.2.1 Expiration

Newsgroup article expiration is controlled by the configuration file /var/news/config/expire.ctl (see expire.ctl(4) for an extensive description). The file expire.ctl contains two types of entries; one for history retention, and one for newgroup article retention.

The format for newsgroup article retention is:

newsgroup:newsgroup-type:mindays:maxdays:purgerafter

For example, the entries

*:A:5:10:15
alt.binaries.pictures.animals.*:U:2:3:5

do two things:

You should expire and purge articles more frequently in groups that are likely to use a lot of storage space, such as groups where binaries are posted.

After you make changes to /var/news/config/expire.ctl, you must stop then start the news server using snsnews.

2.1.2.2 Newsgroup Blocking

Blocking news groups from being fed to downstream servers is controlled by the configuration file /var/news/config/newsfeeds (see newsfeeds(4) for an extensive description).

The format for newsgroup blocking is:

server-name:sendgroup,!blockgroup1,!blockgroup2...::

For example, the entries

ME:*,!control,!junk,!local.*::
news.otherplace.com:*,!alt.binaries.*,!local.*::

do two things:

After you make changes to /var/news/config/newsfeeds, you must stop then start the news server using snsnews.