sys file, located in
/etc/news, controls which hierarchies you receive
and forward to other sites. Although there are maintenance tools named
addfeed and delfeed, we think
it’s better to maintain this file by hand.
sys file contains entries for each site to
which you forward news, as well as a description of the groups you
will accept. The first line is a
ME entry that describes your
system. It’s a safe bet to use the following:
You also have to add a line for each site to which you feed news. Each line looks like this:
Entries may be continued across newlines using a backslash
\) at the end of the line to be
continued. A hash sign (
#) denotes a
This is the name of the site the entry applies to. One usually
chooses the site’s UUCP name for this. There has to be an entry
for your site in the
sys file too, or you will not
receive any articles yourself.
C News rejects any articles that have already passed through this site to
prevent loops. C News does this by ensuring that the local site name does not
appear in the
Path: of the article. Some sites may be known
by a number of valid names. For example, some sites use their fully qualified
domain name in this field, or an alias like
site.domain. To ensure the
loop prevention mechanism works, it is important to add all aliases to the
exclusion list, separating them by commas.
For the entry applying to site moria,
for instance, the
site field would contain
moria were also by an alias of
news.orcnet.org, then our
site field would contain
This is a comma-separated subscription list of groups and hierarchies
for this particular site. A hierarchy may be specified by giving the
hierarchy’s prefix (such as
comp.os for all groups whose names start
with this prefix), optionally followed by the keyword
You can exclude a hierarchy or group from forwarding by preceding it with an
exclamation mark. If a newsgroup is checked against the list, the longest
match applies. For example, if
contains this list:
no groups from the
all groups below
be fed to that site.
If the site requests to be forwarded all news you receive yourself, enter
This value is offset from the
a slash and contains a list of distributions to be forwarded. Again,
you may exclude certain distributions by preceding them with an
exclamation mark. All distributions are denoted by
distlist implies a list of
For example, you may use a distribution list of
all,!local to prevent news meant only
for local use from being sent to remote sites.
There are usually at least two distributions:
world, which is often the default
distribution used when none is specified by the user, and
local. There may be other
distributions that apply to a certain region, state, country,
etc. Finally, there are two distributions used by C News only;
ihave, and are used for
the sendme/ihave protocol.
The use of distributions is a subject of debate. The distribution
field in a news article can be created arbitrarily, but for a
distribution to be effective, the news servers in the network must
know it. Some misbehaving newsreaders create bogus distributions by
simply assuming the top-level newsgroup hierarchy of the article
destination is a reasonable distribution. For example, one might
comp to be a
reasonable distribution to use when posting to the
newsgroup. Distributions that apply to regions are often questionable,
too, because news may travel outside of your region when sent across
Distributions applying to an organization, however, are
very meaningful; e.g., to prevent confidential information from
leaving the company network. This purpose, however, is generally
served better by creating a separate newsgroup or hierarchy.
This option describes certain parameters for the feed. It may be empty or a combination of the following:
This creates batch files for active NNTP transfer clients like nntpxmit (see Chapter 22). The batch files contain the article’s filename along with its message ID.
This tells C News to transmit only articles posted at your site. This flag
may be followed by a decimal number
makes C News transfer articles posted only within
hops from your site. C News determines the number of hops from the
This tells C News to batch only articles from unmoderated groups.
This tells C News to batch only articles from moderated groups.
You may use at most one of
This field contains a command that will be executed for each article, unless you enable batching. The article will be fed to the command on standard input. This should be used for very small feed only; otherwise, the load on both systems will be too high.
The default command is:
uux - -r -z
This invokes rnews on the remote system, feeding it the article on standard input.
The default search path for commands given in this field is
/bin:/usr/bin:/usr/lib/news/batch. The latter
directory contains a number of shell scripts whose names start with
via; they are briefly described later in this chapter.
If batching is enabled using one of the
n flags, C News expects to find a
filename in this field rather than a command. If the filename does not
begin with a slash (/), it is assumed to be relative to
/var/spool/news/out.going. If the field is
empty, it defaults to
remote-system/togo. The file is
expected to be in the same format as the
remote-system/togo file and contain a list of articles to transmit.
When setting up C News, you will most probably have to write your own
sys file. Here is a sample file for
vbrew.com, from which you may copy
what you need:
# We take whatever they give us. ME:all/all:: # We send everything we receive to moria, except for local and # brewery-related articles. We use batching. moria/moria.orcnet.org:all,!to,to.moria/all,!local,!brewery:f: # We mail comp.risks to firstname.lastname@example.org ponderosa:comp.risks/all::rmail email@example.com # swim gets a minor feed swim/swim.twobirds.com:comp.os.linux,rec.humor.oracle/all,!local:f: # Log mail map articles for later processing usenet-maps:comp.mail.maps/all:F:/var/spool/uumaps/work/batch
 It is not uncommon for an article posted in say, Hamburg, to go to Frankfurt via reston.ans.net in the Netherlands, or even via some site in the U.S.