Article View: news.software.nntp
Article #87386Re: Obsolete Received: header
From: Russ Allbery
Date: Fri, 06 May 2016 02:05
Date: Fri, 06 May 2016 02:05
90 lines
5464 bytes
5464 bytes
dunno <dunno@dunno.dunno> writes:
> I'm not sure I understand. RFC 1849 is obsolete, and Received: header is
> a standard header of mail messages, according to RFC 5322, and
> supposedly RFC 5536 is built on RFC 5322. Thus, INN does not conform to
> the current standards.
No Netnews agent is ever required to accept any article. It is
common for injecting, relaying, and serving agents to reject well-
formed articles for reasons of local policy (such as not wishing to
carry a particular newsgroup or attempting to filter out unwanted
articles). This document specifies how articles are to be treated if
they are accepted and specifies some cases where they must be
rejected, but an agent MAY always reject any article for other
reasons than those stated here.
There isn't a compliance issue here. There may be a quality of
implementation issue.
Also, please note the following extremely important paragraph in RFC 5536:
All header fields in a Netnews article are compliant with [RFC5322];
this specification, however, is less permissive in what can be
generated and accepted by agents. The syntax allowed for Netnews
article headers is a strict subset of the Internet Message Format
headers, making all headers compliant with this specification
inherently compliant with [RFC5322]. Note however that the converse
is not guaranteed to be true in all cases.
and see appendix C of that document. There are a bunch of other reasons
why a valid email message may not be a valid netnews messages.
> If not for that, we were able to post email messages as news articles
> without touching the headers (provided that email message already have
> valid Newsgroups: header).
And they would have shitty distribution because INN has rejected messages
containing Received headers for literally decades. So you would accept a
message and then that message would (silently) fail to propagate to other
servers, which is something that historically we've tried to avoid.
I've thought a few times about relaxing this requirement since it would
make mail to news gatewaying a lot easier, but it's a restriction of very
long standing, and the silent dropping of articles on subsequent
propagation is pretty bad. I think it's better to force people to rename
the headers so that they can propagate properly.
> Is there any other undocumented behavior of INN which does not conform
> to the current standards?
Probably. But if I wrote it all up, it would then be documented, and then
that would cause a paradox. :)
More seriously, while we've done a few audits of INN against various
standards, it probably doesn't conform in some places because people
haven't found those issues (or, in some rare cases, because the standard
is dubious in some respect). Most of them would be bugs if you found
them.
But, as noted above, rejection of these articles when offered for posting
is completely consistent with the standards and not a conformance issue.
> P.S. I would suggest to remove checking the presence of Received:
> header. Even if someone in year of 2016 will decide to generate article
> in "B News" format, it won't be received by servers because this format
> uses Article-I.D.: header instead of Message-ID:.
Feel free. You have all the source code. :) Specifically, this would
probably do what you want:
Index: post.c
===================================================================
--- inn/nnrpd/post.c (revision 10008)
+++ inn/nnrpd/post.c (working copy)
@@ -62,7 +62,6 @@
{ "Keywords", true, HTstd, 0, NULL, NULL, 0 },
{ "User-Agent", true, HTstd, 0, NULL, NULL, 0 },
{ "Date-Received", false, HTobs, 0, NULL, NULL, 0 },
- { "Received", false, HTobs, 0, NULL, NULL, 0 },
{ "Posted", false, HTobs, 0, NULL, NULL, 0 },
{ "Posting-Version", false, HTobs, 0, NULL, NULL, 0 },
{ "Relay-Version", false, HTobs, 0, NULL, NULL, 0 },
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87bn4kdjpl.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<1980019869.484135557.600886.dunno-dunno.dunno@news.mixmin.net> <787344371.484136045.060677.dunno-dunno.dunno@news.mixmin.net> <ngg6lq$c6g$1@news.trigofacile.com> <1995491407.484179298.591919.dunno-dunno.dunno@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <87bn4kdjpl.fsf@hope.eyrie.org> Subject: Re: Obsolete Received: header Date: Thu, 05 May 2016 19:05:42 -0700 From: Russ Allbery <eagle@eyrie.org> References: <1980019869.484135557.600886.dunno-dunno.dunno@news.mixmin.net> <787344371.484136045.060677.dunno-dunno.dunno@news.mixmin.net> <ngg6lq$c6g$1@news.trigofacile.com> <1995491407.484179298.591919.dunno-dunno.dunno@news.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 88 NNTP-Posting-Host: hope.eyrie.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: usenet.stanford.edu 1462500342 554 166.84.7.155 (6 May 2016 02:05:42 GMT) X-Complaints-To: action@cs.stanford.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:aPGRvg28RhDno4JxvyrFONu9snY= X-Received-Body-CRC: 3821766469 X-Received-Bytes: 5408