Article View: news.software.nntp
Article #63162Re: Is this a valid Message-ID?
From: Curt Welch
Date: Wed, 15 Jan 2003 13:45
Date: Wed, 15 Jan 2003 13:45
74 lines
4624 bytes
4624 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > > Russ Allbery <rra@stanford.edu> wrote: > > >> INN does not and never has used random numbers to generate message > >> IDs. > > > How does it work? > > The INN message ID consists of three components: the current time to > second resolution, the process ID, and a counter that increases by one > with each generated message ID. That's a pretty standard way to generate > unique IDs on Unix. Ah yes, I remember that now. I used to know that years ago. It's funny how things just completly fade from your memeory. And that started back in the time where a 1 second resolution clock is all you typically had access to on a Unix box so using a microsecond clock wasn't really a portable option either. > > And if you run two INN servers on the same box or configued with the > > same RHS domain name, how do they prevent dups with each other? > > Different process IDs. > > > How does it prevent dups when the sys admin sets the clock 5 minutes > > back? > > It is possible but very unlikely Yeah, much less likely than when only a clock is used. Not impossible, but still very very hard to happen even by accident. I guess the most likely way for a dup to happen on any system using that technique is on a crash and reboot where the processes gets created in the the same sequence and gets the same processes id and uses the same counter value and where at the same time, the clock gets set back somehow. > In general, it's hard to guarantee message ID uniqueness if people are > going to be screwing with the clock (on my systems, I run ntpd, which > doesn't have that problem since it skews the clock instead), but even > given that degree of system trouble, it's extremely unlikely that a > message ID would be regenerated. > > Now, if a client uses the server name as its base for message ID > generation, that could cause problems. I don't believe that any clients > are using message ID generation algorithms that make a collision with an > INN message ID possible (the dollar signs are useful), but that's a good > point. I could use something other than the advertised server name as > the base for message ID generation (like the path host). Of course that's not even justified because the odds of a dup are so small already that you don't need to try any harder. But grabbing all this "almost guaranteed unique" data is just a variation on the idea of using random data really. And it has the nasty side-effect of looking far more secure than it really is. It's an interesting probelm. > >> Yes, this was the argument that I lost on both USEFOR and with RFC > >> 2822. > > > It's lonely sometimes being the only one that "gets it" isn't it? :) > > I don't think it was as much that other people didn't get it as that it > was late enough in the process (for RFC 2822) that no one considered it > worth changing, and then USEFOR wanted to just copy RFC 2822 and not > think about it further. Yeah, that's easy to believe. It's not like Message-IDs are a problem that anyone should waste much time on. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20030115084509.089$ic@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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<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> <yld6mzb7r0.fsf@windlord.stanford.edu> <20030114200245.757$8h@newsreader.com> <ylu1gb8b5f.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <20030115084509.089$ic@newsreader.com>
Subject: Re: Is this a valid Message-ID?
Date: Wed, 15 Jan 2003 13:45:09 +0000
From: curt@kcwc.com (Curt Welch)
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> <yld6mzb7r0.fsf@windlord.stanford.edu> <20030114200245.757$8h@newsreader.com> <ylu1gb8b5f.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com fpUSN8QJrmUrscWJ/oZt4pcLvfDImpQ7IcfRAlxOlRFtFr
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 73