Article View: news.software.nntp
Article #44158RFC 1036 Revision: Duties of Various Agents
From: Jonathan Grobe
Date: Thu, 17 Feb 2000 00:00
Date: Thu, 17 Feb 2000 00:00
296 lines
14254 bytes
14254 bytes
8. Duties of Various Agents ...................................... 0
8.1. General principles to be followed ......................... 0
8.2. Duties of an Injecting Agent .............................. 0
8.2.1. Proto-articles ........................................ 0
8.2.2. Procedure to be followed by Injecting Agents .......... 0
8.3. Duties of a Relaying Agent ................................ 0
8.4. Duties of a Serving Agent ................................. 0
8.5. Duties of a Posting Agent ................................. 0
8.6. Duties of a Followup Agent ................................ 0
8.7. Duties of a Gateway ....................................... 0
8. Duties of Various Agents
The following section sets out the duties of various agents involved
in the creation, relaying and serving of Usenet articles.
In this section, the word "trusted", as applied to the source of some
article, means that an agent processing that article has verified, by
some means, the identity of that source (which may be another agent
or a poster).
NOTE: In many implementations, a single agent may perform
various combinations of the injecting, relaying and serving
functions. Its duties are then the union of the various duties
concerned.
8.1. General principles to be followed
There are two important principles that news implementors (and
administrators) need to keep in mind. The first is the well-known
Internet Robustness Principle:
Be liberal in what you accept, and conservative in what you
send.
However, in the case of news there is an even more important
principle, derived from a much older code of practice, the
Hippocratic Oath (we will thus call this the Hippocratic Principle):
First, do no harm.
It is VITAL to realize that decisions which might be merely
suboptimal in a smaller context can become devastating mistakes when
amplified by the actions of thousands of hosts within a few minutes.
In the case of gateways, the primary corollary to this is:
Cause no loops.
8.2. Duties of an Injecting Agent
An Injecting Agent is responsible for taking a proto-article from a
posting agent and either forwarding it to a moderator or injecting it
into the relaying system for access by readers.
As such, an injecting agent is considered responsible for ensuring
that any article it injects conforms with the rules of this standard
and the policies of any newsgroups or hierarchies that the article is
posted to. It is also expected to bear some responsibility towards
the rest of the network for the behaviour of its posters (and
provision is therefore made for it to be easily contactable by
email).
To this end injecting agents MAY cancel articles which they have
previously injected (see 7.5).
8.2.1. Proto-articles
A proto-article is one that has been created by a posting agent and
has not yet been injected into the news system by an injecting agent.
It SHOULD NOT be propagated in that form to other than injecting
agents. A proto-article has the same format as a normal article
except that some of the following mandatory headers MAY be omitted:
Message-Id, Date and Path. These headers MUST NOT contain invalid
values; they MUST either be correct or not present at all.
A proto-article SHOULD NOT contain the '%' delimiter in any Path
header, except in the rare cases where an article gets injected
twice. It MAY contain path-identities with other delimiters in the
pre-injection portion of the Path header (5.6.3).
8.2.2. Procedure to be followed by Injecting Agents
A injecting agent receives proto-articles from posting and followup
agents. It verifies them, adds headers where required and then either
forwards them to a moderator or injects them by passing them to
serving or relaying agents.
If an injecting agent receives an otherwise valid article that has
already been injected it SHOULD either act as if it is a relaying
agent or else pass the article on to a relaying agent completely
unaltered. Exceptionally, it MAY reinject the article, perhaps as a
part of some complex gatewaying process (in which case it will add a
second '%' delimiter to the Path header). It MUST NOT forward an
already injected article to a moderator.
An injecting agent processes articles as follows:
1. It SHOULD verify that the article is from a trusted source.
However, it MAY allow articles in which headers contain "forged"
email addresses, that is, addresses which are not valid for the
known and trusted source, especially if they end in ".invalid".
2. It MUST reject any article whose Date header is more than 24 hours
into the past or into the future (cf. 5.1).
3. It MUST reject any article that does not have the correct
mandatory headers for a proto-article (5 and 8.2.1) present, or
which contains any header that does not have legal contents.
4. If the article is rejected, or is otherwise incorrectly formatted
or unacceptable due to site policy, the posting agent MUST be
informed (such as via an NNTP 44x response code) that posting has
failed and the article MUST NOT then be processed further.
5. The Message-ID and Date headers (and their content) MUST be added
when not already present.
6. A Path header with a tail-entry (5.6.3) MUST be correctly added if
not already present (except that it SHOULD NOT be added if the
article is to be forwarded to a moderator).
7. The path-identity of the injecting agent with a '%' delimiter
(5.6.2) MUST be prepended to the Path header; moreover, that
path-identity MUST be an FQDN mailable address (5.6.2).
[At this point, we should mention the Injector-Info header if/when we
invent it.]
8. The injecting agent MAY add other headers not already provided by
the poster, but SHOULD NOT alter, delete or reorder any headers
already present in the article (except for headers intended for
tracing purposes). The injecting agent MUST NOT alter the body of
the article in any way.
[An Injector-Info header would be mentioned as an example of tracing.]
9. If the Newsgroups line contains one or more moderated groups and
the article does NOT contain an Approved header, then the
injecting agent MUST forward it to the moderator of the first
(leftmost) moderated group listed in the Newsgroups line via
email. The complete article SHOULD be encapsulated (headers and
all) within the email, preferably using the Content-Type
"application/news-transmission" (6.17.6.1).
10.Otherwise, the injecting agent forwards the article to one or more
relaying or serving agents.
8.3. Duties of a Relaying Agent
A Relaying Agent accepts injected articles from injecting and other
relaying agents and passes them on to relaying or serving agents
according to mutually agreed policy. Relaying agents SHOULD accept
articles ONLY from trusted agents.
A relaying agent processes articles as follows:
1. It MUST verify the leftmost entry in the Path header and then
prepend its own path-identity with a '/' delimiter, and possibly
also the verified path-identity of its source with a '?' delimiter
(5.6.2).
2. It MUST reject any article whose Date header is stale (see 5.1).
3. It MUST reject any article that does not have the correct
mandatory headers (section 5) present with legal contents.
4. It SHOULD reject any article whose optional headers (section 6) do
not have legal contents.
5. It SHOULD reject any article that has already been sent to it (a
database of message identifiers of recent messages is usually kept
and matched against).
6. It SHOULD reject any article that has already been Canceled,
Superseded or Replaced by its author or by another trusted entity.
7. It MAY reject any article without an Approved header posted to
newsgroups known to be moderated (this practice is strongly
recommended, but the information necessary to do it may not be
available to all agents).
8. It then passes articles which match mutually agreed criteria on to
neighboring relaying and serving agents. However, it SHOULD NOT
forward articles to sites whose path-identity is already in the
Path header.
NOTE: It is usual for relaying and serving agents to restrict
the Newsgroups, Distributions, age and size of articles that
they wish to receive.
If the article is rejected as being invalid, unwanted or unacceptable
due to site policy, the agent that passed the article to the relaying
agent SHOULD be informed (such as via an NNTP 43x response code) that
relaying failed. In order to prevent a large number of error messages
being sent to one location, relaying agents MUST NOT inform any other
external entity that an article was not relayed UNLESS that external
entity has explicitly requested that it be informed of such errors.
In order to prevent overloading, relaying agents SHOULD NOT routinely
query an external entity (such as a key-server) in order to verify an
article.
[But do we want to say that it is OK if you then keep a decent-sized
cache?]
Relaying agents MUST NOT alter, delete or rearrange any part of an
article expect for the Path and Xref Headers.
8.4. Duties of a Serving Agent
A Serving Agent takes an article from a relaying or injecting agent
and files it in a "news database". It also provides an interface for
reading agents to access the news database. This database is normally
indexed by newsgroup with articles in each newsgroup identified by an
article-locater (usually in the form of a decimal number - see 6.14).
NOTE: Since control messages are often of interest, but should
not be displayed as normal articles in regular newsgroups, it is
common for serving agents to make them available in a pseudo-
newsgroup named "control" or in a pseudo-newsgroup in a sub-
hierarchy under "control." (e.g. "control.cancel").
A serving agent processes articles as follows:
1. It MUST verify the leftmost entry in the Path header and then
prepend its own path-identity with a '/' delimiter, and possibly
also the verified path-identity of its source with a '?' delimiter
(5.6.2).
2. It MUST reject any article whose Date header is stale (see 5.1).
3. It MUST reject any article that does not have the correct
mandatory headers (section 5) present, or which contains any
header that does not have legal contents.
4. It SHOULD reject any article that has already been sent to it (a
database of message identifiers of recent messages is usually kept
and matched against).
5. It SHOULD reject any article that has already been Canceled,
Superseded or Replaced by its author or by another trusted entity,
and delete any of such article that it already has in its news
database.
6. It MUST reject any article without an Approved header posted to
any moderated newsgroup which it is configured to receive, and it
MAY reject such articles for any newgroup it knows be moderated.
7. It SHOULD generate a correct Xref header (6.14) for each article.
8. Finally, it stores the article in its news database.
8.5. Duties of a Posting Agent
A Posting Agent is used to assist the poster in creating a valid
proto-article and forwarding it to an injecting agent.
Postings agents SHOULD ensure that proto-articles they create are
valid Netnews articles according to this standard and other
applicable policies.
Posting agents meant for use by ordinary posters SHOULD reject any
attempt to post an article which cancels, Supersedes or Replaces
another article of which the poster is not the author.
8.6. Duties of a Followup Agent
A Followup Agent is a special case of a posting agent and as such is
bound by all the posting agent's requirements plus additional ones.
Followup agents MUST create valid followups, in particular by
providing correctly adjusted forms of those headers described as
inheritable (4.2.2.2), notably the Newgroups header (5.5), the
Subject header (5.4) and the References header (6.8), and they SHOULD
observe appropriate quoting conventions in the body (see 4.3.2).
Followup agents MUST by default follow the Followup-To header when
deciding which newsgroups a followup is posted to; however posters
MAY override the default if they wish.
Followup agents MUST NOT attempt to send email to any address ending
in ".invalid". Followup agents SHOULD NOT email copies of the
followup to the author of the precursor (or any other person) unless
this has been explicitly requested.
[Mention the Mail-Copies-To header if/when we have that.]
8.7. Duties of a Gateway
NOT DONE
[Volunteers to write it? There is lots of useful material in [Son-of-
1036].]
Technical Details
Message-ID:
<slrn8an5g3.vch.grobe+news@worf.netins.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn8an5g3.vch.grobe+news@worf.netins.net> Subject: RFC 1036 Revision: Duties of Various Agents Date: Thu, 17 Feb 2000 00:00:00 +0000 From: grobe+news@netins.net (Jonathan Grobe) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail X-Deja-AN: 586811455 Mail-Copies-To: never Organization: netINS, Des Moines, IA, USA User-Agent: slrn/0.9.6.2 (OSF1) Reply-To: <> Newsgroups: news.admin.misc,news.software.nntp,news.software.readers