🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87391

Re: Obsolete Received: header

#87391
From: dunno
Date: Fri, 06 May 2016 13:06
123 lines
7158 bytes
dunno <dunno@dunno.dunno> wrote:
> Russ Allbery <eagle@eyrie.org> wrote:
>> 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.
> 
> According to your interpretation of this paragraph, we can write server
> software which rejects any article and still is RFC compliant. :)
> 
> Seriously though, according to RFC 5536, news article with Received: header
> is valid article, and there is no obvious reason to reject it.
> 
>> 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.
> 
> This particular issue is not one of them.

Here is one more thing I've noticed: empty header bodies are permitted by
RFC 5322, but are not allowed by RFC 5536. However, INN does not reject
such articles. Instead, it just removes illegal header fields from them,
and it's far better than rejection, IMHO.

>>> 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.
> 
> Yes, I understand that. However, IMHO such behavior at least should be
> documented. I personally would allow posting of such articles in new
> versions of INN. This problem is very specific, no news agents deal with
> Received: headers except automated mail2news software, so there will be no
> any immediate impact. Current mail2news programs either strip such headers
> or rename them.
> 
> Yes, in the meantime I would change the name of header or use some other
> approach to ensure propagation. But eventually (even if years from now) it
> would be nice to expect that valid articles can be posted.
> 
>> 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.
> 
> I'll keep looking. :)
> 
>> 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:
> 
> I have no problems changing the code on my local machine. Thanks though.
> 
>> 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 },
>> 
> 
> 
> 



-- 
dunno

Technical Details
Message-ID: <1994836095.484232232.038698.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
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> <87bn4kdjpl.fsf@hope.eyrie.org> <438672968.484210805.674404.dunno-dunno.dunno@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <1994836095.484232232.038698.dunno-dunno.dunno@news.mixmin.net>
Subject: Re: Obsolete Received: header
Date: Fri, 06 May 2016 13:06:54 +0000
From: dunno <dunno@dunno.dunno>
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> <87bn4kdjpl.fsf@hope.eyrie.org> <438672968.484210805.674404.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: dunno
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 6 May 2016 13:06:54 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="07f115b4996db9eb275d60c423d3976583e0f5e3";
 logging-data="12830"; mail-complaints-to="abuse@mixmin.net"
User-Agent: NewsTap/5.1.8 (iPhone/iPod Touch)
Cancel-Lock: sha1:QgnUuDZBheOB2NQI3swxV3XPB/A=
X-Face: +Y@4$e3-8y^:[5%r>Y6xxT0FVGRQ%3F"zg9+i6@7@t0}rtq3S8)2":;YgvZ5~2cI}rUZ$X$ sYT%EO6}l1DF*"<0$clFtjHZYnH:ZAf3ShT.Ovq
X-Received-Body-CRC: 2802252001
X-Received-Bytes: 7097