🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63134

Re: Is this a valid Message-ID?

#63134
From: Russ Allbery
Date: Wed, 15 Jan 2003 00:02
78 lines
5172 bytes
Curt Welch <curt@kcwc.com> writes:

> I think Usenet swtiched to that faith about 10 years ago with the relase
> of C-News.  Is that when the old numbering system when out the door?
> It's not just a faith anymore, it's what everyone uses.  It's the only
> way it can practically be done.

INN does not and never has used random numbers to generate message IDs.
If INN is the only message ID generator running with a specific RHS, or if
all other message ID generators running with that same RHS use a different
algorithm (and this is the common case and frequently can be guaranteed),
INN message IDs are guaranteed unique forever.

For example, the only message ID generators running on my news server are
INN and qmail.  Since they use two different algorithms, both of which are
guaranteed unique forever, all message IDs generated by the only system
authorized to use that RHS are, in fact, guaranteed unique forever.

Since there are no valid e-mail addresses with the same RHS other than
contact addresses for the news server, it's fairly unlikely (not
impossible but fairly unlikely) that any news clients are generating
message IDs with the same RHS, since most of the generation systems in
e-mail and news clients that I'm aware of that don't rely on the local
system name or the POP server use the RHS of the user's e-mail address.

> MD5 of the message being posted is a good way to get 128 bits.  Combine
> the current time with the message and take an MD5 of that and you
> probably have more than enough bits for the message-id.

I agree that that's a reasonable algorithm for most situations.  It's not
a random number.  :)  I'll also mention that someone spamming a newsgroup
using a message ID generation algorithm like that may very well generate
duplicate message IDs.  I don't consider that a drawback.  :)

> Many news clients which make up message IDs use either the NNTP server's
> domain name or the users e-mail address domain name.  And they all end
> up completing with each other on the LHS.  And all they have to work
> with for the LHS is the date and random numbers.  Using domain names on
> the RHS doesn't solve the problem, it only divides the problem space
> into multiple smaller problems.

Oh, I agree.

I'm just pointing out that the RHS is doing a lot more than just adding a
few bytes of randomness.  For small sites, it pretty much resolves the
problem entirely; if you've got a timestamp in the message ID and the
correct RHS and you're at a small site, you're probably okay.  This
obviously isn't sufficient for large sites that have thousands and
thousands of users generating message IDs, and for those sites they have
to do something more comprehensive, but the RHS is a great start and
solves the problem for 95% of the sites out there (but a lower percentage
of the users).

Anyway, as for the rest of your message, I don't really feel like
discussing it in depth.  There was a comprehensive I-D written about how
to generate message IDs that I believe is currently stalled waiting for
the outcome of USEFOR that addressed a lot of this in great detail, and
I'd refer people to that if they're curious.

> Using unique domain names on the RHS of a Message-ID in no way
> guarantees uniqueness.

Absolutely.  I never argued that.  You have to also have some knowledge of
what the message ID generators with that RHS are doing (which means that
in practice it's not nearly as useful if people also have e-mail addresses
in that domain, due to the behavior of many clients).

> It's nieve to put wording into an RFC that implies it does, or that
> implies "uniqueness" is even remotely possible today.

Yes, this was the argument that I lost on both USEFOR and with RFC 2822.

-- 
Russ Allbery (rra@stanford.edu)             <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: <yld6mzb7r0.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <4o6cfxfd2.ln2@thune.mrc-home.org> <1rvg0sbd7t.fsf@vingodur.ifi.uio.no> <8dqRqDeocDD@3247.org> <20030114132134.418$09@newsreader.com> <yld6mz8s6f.fsf@windlord.stanford.edu> <20030114171106.956$rG@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <yld6mzb7r0.fsf@windlord.stanford.edu>
Subject: Re: Is this a valid Message-ID?
Date: Tue, 14 Jan 2003 16:02:11 -0800
From: Russ Allbery <rra@stanford.edu>
References: <4o6cfxfd2.ln2@thune.mrc-home.org> <1rvg0sbd7t.fsf@vingodur.ifi.uio.no> <8dqRqDeocDD@3247.org> <20030114132134.418$09@newsreader.com> <yld6mz8s6f.fsf@windlord.stanford.edu> <20030114171106.956$rG@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 77
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1042588932 9898 171.64.13.23 (15 Jan 2003 00:02:12 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter,
 sparc-sun-solaris2.6)
Cancel-Lock: sha1:G9q8P2S0AAUYX768Bsm+Ul/7k1Q=