Thread View: news.software.nntp
5 messages
5 total messages
Started by Franck
Sat, 01 Feb 2020 04:47
Distribution header
Author: Franck
Date: Sat, 01 Feb 2020 04:47
Date: Sat, 01 Feb 2020 04:47
17 lines
1462 bytes
1462 bytes
Hello, I've read RFC 2980 & 3977 (DISTRIB.PATS), RFC 6048 (DISTRIBUTIONS) and RFC 5536 (Header Distribution) but it's always unclear for me. Except for "local", could someone explain to me in detail what a server should do when it receives an article with a "Distribution" header? Exactly what steps are taken (if any)? - If the name given in this header is not configured on the server, - If the newsgroups listed in the "Newsgroups" header do not match the distribution pattern, - Other cases? Thanks in advance to those who will take the time to enlighten me on the subject.
Re: Distribution header
Author: Julien ÉLIE
Date: Sat, 01 Feb 2020 10:43
Date: Sat, 01 Feb 2020 10:43
106 lines
4952 bytes
4952 bytes
Bonjour Franck,
> I've read RFC 2980 & 3977 (DISTRIB.PATS), RFC 6048 (DISTRIBUTIONS) and
> RFC 5536 (Header Distribution) but it's always unclear for me.
>
> Except for "local", could someone explain to me in detail what a server
> should do when it receives an article with a "Distribution" header?
There's also RFC 5537 (USEPRO):
3.6. Duties of a Relaying Agent
An article SHOULD NOT be relayed unless the sending agent has been
configured to supply, and the receiving agent to receive, at least
one of the <newsgroup-name>s in its Newsgroups header field and at
least one of the <dist-name>s in its Distribution header field (if
present).
6.3. Leakage
Articles that are intended to have restricted distribution are
dependent on the goodwill of every site receiving them. Restrictions
on dissemination and retention of articles may be requested via the
Archive and Distribution header fields, but such requests cannot be
enforced by the protocol.
> Exactly what steps are taken (if any)?
If the result of "LIST DISTRIB.PATS" for instance contains
"5:fr.*:france", INN (nnrpd) adds the Distribution header field with the
value "france" if a posting agent hasn't set a Distribution header field
itself.
As for relaying articles, I see that the newsfeeds man page gives some
explanation:
https://www.eyrie.org/~eagle/software/inn/docs/newsfeeds.html
%%
sitename[/exclude,exclude,...]\
:pattern,pattern...[/distribution,distribution...]\
:flag,flag...\
:parameter
A subscription can be further modified by specifying distributions that
the site should or should not receive. The default is to send all
articles to all sites that subscribe to any of the groups where it has
been posted, but if an article has a Distribution: header and any
distributions are specified, then they are checked according to the
following rules:
- If the Distribution: header matches any of the values in the
sub-field, the article is sent.
- If a distribution starts with an exclamation point, and it matches the
Distribution: header, the article is not sent.
- If the Distribution: header does not match any distribution in the
site's entry and no negations were used, the article is not sent.
- If the Distribution: header does not match any distribution in the
site's entry and any distribution started with an exclamation point, the
article is sent.
If an article has more than one distribution specified, then each one is
handled according according to the above rules. If any of the specified
distributions indicate that the article should be sent, it is; if none
do, it is not sent. In other words, the rules are used as a logical or.
%%
and
%%
ME:!*/!local,!collabra-internal::
If the ME entry has a distribution sub-field, only articles that match
that distribution list are accepted and all other articles with a
distribution are rejected. A common use for this is to put something
like /!local in the ME entry to reject local postings from other
misconfigured sites. The distribution sub-field of ME has no effect on
the acceptance or rejection of articles that do not have a Distribution
header field.
%%
> - If the name given in this header is not configured on the server,
> - If the newsgroups listed in the "Newsgroups" header do not match the
> distribution pattern,
> - Other cases?
>
> Thanks in advance to those who will take the time to enlighten me on the
> subject.
I hope this helps.
Basically, distributions permit to reject received articles (like
"local") and to not propagate them to some or all peers.
--
Julien ÉLIE
« Ma parole… Vous êtes soûls ! Heu ! Sourds… » (Astérix)
Re: Distribution header
Author: Franck
Date: Sat, 01 Feb 2020 17:13
Date: Sat, 01 Feb 2020 17:13
72 lines
3315 bytes
3315 bytes
Le 01/02/2020 à 11:43, Julien ÉLIE a écrit : Bonjour Julien, > There's also RFC 5537 (USEPRO): Omited to mention it, but read :-) > If the result of "LIST DISTRIB.PATS" for instance contains > "5:fr.*:france", INN (nnrpd) adds the Distribution header field with the > value "france" if a posting agent hasn't set a Distribution header field > itself. Ok. But to be sure : If "Distribution" is set by the server, it's just for internal use as I do not see "Distribution" in every article on usenet. Correct? > As for relaying articles, I see that the newsfeeds man page gives some > explanation: >  https://www.eyrie.org/~eagle/software/inn/docs/newsfeeds.html Thanks for the link! > - If the Distribution: header matches any of the values in the > sub-field, the article is sent. OK > - If a distribution starts with an exclamation point, and it matches the > Distribution: header, the article is not sent. OK > - If the Distribution: header does not match any distribution in the > site's entry and no negations were used, the article is not sent. OK > - If the Distribution: header does not match any distribution in the > site's entry and any distribution started with an exclamation point, the > article is sent. OK > If an article has more than one distribution specified, then each one is > handled according according to the above rules. If any of the specified > distributions indicate that the article should be sent, it is; if none > do, it is not sent. In other words, the rules are used as a logical or. > %% OK > %% > ME:!*/!local,!collabra-internal:: > > If the ME entry has a distribution sub-field, only articles that match > that distribution list are accepted and all other articles with a > distribution are rejected. A common use for this is to put something > like /!local in the ME entry to reject local postings from other > misconfigured sites. The distribution sub-field of ME has no effect on > the acceptance or rejection of articles that do not have a Distribution > header field. > %% Hum, this part needs more investigations for me. > I hope this helps. > Basically, distributions permit to reject received articles (like > "local") and to not propagate them to some or all peers. Yes, as always, it helps A LOT! Thanks a lot, Julien, for all the clarifications.
Re: Distribution header
Author: Russ Allbery
Date: Sat, 01 Feb 2020 19:50
Date: Sat, 01 Feb 2020 19:50
38 lines
2818 bytes
2818 bytes
Franck <franck@email.invalid> writes:
> But to be sure : If "Distribution" is set by the server, it's just for
> internal use as I do not see "Distribution" in every article on usenet.
> Correct?
No, it's included in the posted article and sent with it to every other
server. You don't see a Distribution header on most articles because use
of the feature is now quite rare and most servers have an empty
distrib.pats file (or don't support the feature at all).
The original idea was that there would be some newsgroup carried by
everyone (net.forsale, for instance), but if you're selling some physical
object, it doesn't make sense to send that article to everyone in the
world. So you cold use, say, Distribution: sfbay, to indicate that the
article should only go to servers in the SF Bay Area, and people would
configure their news servers so that they only accepted their regional
distributions.
This never really worked, and was quickly replaced by regional hierarchies
instead, and Distribution became this odd legacy feature that no one
really used.
Many years later, some limited-distribution hierarchies repurposed the
Distribution header as a mechanism to help ensure that articles in those
hierarchies weren't accidentally propagated to hosts not intended to be
part of the network (which became more of an issue than it would have been
in the early days of Usenet because it's become common for major transit
servers to run in a mode where they accept and propagate articles to any
newsgroup without checking whether that newsgroup exists locally). So far
as I know, that, plus a few oddities like Distribution: local, are the
only remaining uses of the Distribution header field.
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Distribution header
Author: Franck
Date: Sat, 01 Feb 2020 20:56
Date: Sat, 01 Feb 2020 20:56
37 lines
2899 bytes
2899 bytes
Le 01/02/2020 à 20:50, Russ Allbery a écrit : > No, it's included in the posted article and sent with it to every other > server. You don't see a Distribution header on most articles because use > of the feature is now quite rare and most servers have an empty > distrib.pats file (or don't support the feature at all). > > The original idea was that there would be some newsgroup carried by > everyone (net.forsale, for instance), but if you're selling some physical > object, it doesn't make sense to send that article to everyone in the > world. So you cold use, say, Distribution: sfbay, to indicate that the > article should only go to servers in the SF Bay Area, and people would > configure their news servers so that they only accepted their regional > distributions. > > This never really worked, and was quickly replaced by regional hierarchies > instead, and Distribution became this odd legacy feature that no one > really used. > > Many years later, some limited-distribution hierarchies repurposed the > Distribution header as a mechanism to help ensure that articles in those > hierarchies weren't accidentally propagated to hosts not intended to be > part of the network (which became more of an issue than it would have been > in the early days of Usenet because it's become common for major transit > servers to run in a mode where they accept and propagate articles to any > newsgroup without checking whether that newsgroup exists locally). So far > as I know, that, plus a few oddities like Distribution: local, are the > only remaining uses of the Distribution header field. Thank you for your very detailed explanations, Russ. As a result, I wonder if I should waste time implementing LIST DISTRIB.PATS and LIST DISTRIBUTIONS since nobody seems to use them today :-) "local" should do the trick. Also seems that LIST SUBSCRIPTIONS is not very usefull theses days...
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads