Article View: news.software.nntp
Article #80780Re: Gating mailing lists - Why preserve the Message-ID field?
From: D. Stussy
Date: Mon, 27 Apr 2009 19:39
Date: Mon, 27 Apr 2009 19:39
100 lines
6360 bytes
6360 bytes
Additional: Given: An article posted to a single newsgroup gated to a single mailing list, with "N" gateways. The article is distributed off host by both NNTP and SMTP. 1) With message-ID rewriting: Every news server will therefore receive: 1 copy of the message via NNTP with its original message-ID, PLUS N-1 additional copies of the message, to the list and back, with new message-IDs. 2) With preserving the original message-ID: Every news server will therefore receive EXACTLY ONE copy of the message. Some servers will receive the NNTP copy first - via NNTP. Some servers may receive a gated (presumedly NNTP->SMTP->NNTP) copy. Additional copies which might otherwise be received will be denied as duplicates via the CHECK/TAKETHIS phase of NNTP and thus never transmitted, or at the other N-1 gateways, when the mail2news script sees that the message-ID has already been received, no duplicate will be posted. This is why the message-ID needs to be preserved with gated messages. No one wants "N" copies of a message (whether in the same group or spread across multiple groups [i.e. multi-posted] because the gateways use different newsgroup names to translate the mailing list). Note: If there exists a single news/mail gateway for a group/list pairing, there will not be any problem as news servers will only see the NNTP version and no server will ever see a NNTP->SMTP->NNTP transmitted copy. -------------------------- More complex situation: A cross-posted message where more than one group is gated to mailing lists. It doesn't matter if any one group is gated to multiple lists or if there's more than one group being gated, each to a single list, or some warped combination of the above. 1) With message-ID rewriting: It gets even worse, as one will have to SUM across every gated group/list combination all the individual "N"s. Thus, for example: 1 copy via NNTP, plus A-1 copies via list "a" with "A" gateways, plus B-1 copies via list "b" with "B" gateways, plus ... Z-1 copies via list "z" with "Z" gateways. The duplication is even worse. 2) Preserving the message-ID: Still, only ONE copy will be kept in the news spool. Those receiving the original message via NNTP will have a message crossposted to all the groups. Those receiving the message via a gateway transition (NNTP->SMTP->NNTP) will have one copy of the message, but DEPENDING ON THE GATEWAYS' capabilities, it may be crossposted to the original groups, or it may be posted only to one group - the group pertaining to the mailing list where it was gated back to NNTP. Other copies received via SMTP for other lists will be rejected as duplicates by the mail2news script, as expected. If news <=> mail gateways PRESERVE the original message's newsgroups header, then it's POSSIBLE to have the gated message crossposted just as if it were received via NNTP. -------------------------- So, what does this mean? A) Message-IDs MUST NOT be recreated by any mail/news gateway, and B) For proper recreation of a gated message coming back into news from a mailing list, the original newsgroups header data needs to be preserved and recreated (or otherwise interpreted). To accomplish this: a) The NNTP->SMTP gateway needs to preserve the "Newsgroups:" header data. (Whether this is done by translating it to an "X-" header or by keeping its literal, ignored as not being a valid RFC2821 header, may be a matter for a future RFC). b) The SMTP->NNTP gateway needs to recognize preserved newsgroups header data and recreate the message crosspostings appropriately, OR reject a message specifying such and wait for the native NNTP copy to show up (assuming it will ever show up). I suggest that when the newsgroups data is injected into SMTP, a comment field (in parentheses) be added to indicate the name of the news server gating the message (or a separate "X-NNTP-Gateway:" header be added). Note: I am quite aware that mail->news gateways that create crossposted messages based on this procedure may create an open security hole for abuse, since there is no way to authenticate the crossposted group list. It is every gateway's responsibility to make certain that they don't gate a message back to the list that they received from the list. I have also not addressed the case where multiple news servers send the same message to the list. It is the list software's responsibility to recognize that the message-ID was recently seen (based on that criterion ALONE; i.e. no "X-List-Loop" BS) and therefore avoid distributing a subsequent copy. Since many list software packages keep an archive of messages posted to the list, retention of the message-ID is clearly available.
Technical Details
Message-ID:
<gt51l0$bj1$1@aux.snarked.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.snarked.org!not-for-mailReferences:
<6vmku45940u095srq731bfmidplen76thg@4ax.com> <gsdna6$g3i$1@news.trigofacile.com> <gsqh3a$6e7$1@aux.snarked.org> <gsqi81$t7b$1@news.trigofacile.com> <gsqrf1$7r7$1@aux.snarked.org> <87ljprkmjf.fsf@windlord.stanford.edu> <gsr8p1$9av$1@aux.snarked.org> <87hc0e227b.fsf@windlord.stanford.edu> <gsrf1i$aq4$1@aux.snarked.org> <gssa8g$k4c$1@gondor.sdsu.edu> <gstri7$mri$1@aux.snarked.org> <gsub0g$lf8$1@msgid.netzverwaltung.net> <gt0cas$s8d$1@aux.snarked.org> <gt1gh2$lqs$1@msgid.netzverwaltung.net>Show Full Headers
Complete Article Headers
Message-ID: <gt51l0$bj1$1@aux.snarked.org> Subject: Re: Gating mailing lists - Why preserve the Message-ID field? Date: Mon, 27 Apr 2009 12:39:01 -0700 From: "D. Stussy" <spam@bde-arc.ampr.org> References: <6vmku45940u095srq731bfmidplen76thg@4ax.com> <gsdna6$g3i$1@news.trigofacile.com> <gsqh3a$6e7$1@aux.snarked.org> <gsqi81$t7b$1@news.trigofacile.com> <gsqrf1$7r7$1@aux.snarked.org> <87ljprkmjf.fsf@windlord.stanford.edu> <gsr8p1$9av$1@aux.snarked.org> <87hc0e227b.fsf@windlord.stanford.edu> <gsrf1i$aq4$1@aux.snarked.org> <gssa8g$k4c$1@gondor.sdsu.edu> <gstri7$mri$1@aux.snarked.org> <gsub0g$lf8$1@msgid.netzverwaltung.net> <gt0cas$s8d$1@aux.snarked.org> <gt1gh2$lqs$1@msgid.netzverwaltung.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.snarked.org!not-for-mail Newsgroups: news.software.nntp,news.admin.peering Lines: 100 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-106-211-188.lsanca.dsl-w.verizon.net X-Trace: aux.snarked.org 1240861152 11873 71.106.211.188 (27 Apr 2009 19:39:12 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Mon, 27 Apr 2009 19:39:12 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478