Thread View: news.software.nntp
41 messages
41 total messages
Started by Curt Welch
Tue, 10 Aug 2004 00:00
Rejecting bad Message-IDs
Author: Curt Welch
Date: Tue, 10 Aug 2004 00:00
Date: Tue, 10 Aug 2004 00:00
25 lines
2084 bytes
2084 bytes
I just noticed another rash of invalid message Id's with double @s like this one: <part1of27.3FFKHNqU0t4LUqf9fTn$@axe@powerpost.local> My server rejects these as invalid both for local posts and on transit. Yet I see all the other large sites I check accepted these articles. I've changed my code maybe 5 times in the past few years to make it more lax on what it will accept simply because I don't like being the only site that doesn't have an article because my code bothered to check and reject invalid Message-IDs. Should I just give up my attempts to do the right thing and accept any string starting with < and ending with > as a valid Message-ID? I do at least have separate requirements for localy posted articles than for articles received from peers. Local articles must have valid Message-Ids even if I accept all sorts of invalid crap from peers. Or is my problem that I'm using the wrong defintion of what a valid Message-ID is? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Re: Rejecting bad Message-IDs
Author: Russ Allbery
Date: Tue, 10 Aug 2004 00:23
Date: Tue, 10 Aug 2004 00:23
21 lines
1966 bytes
1966 bytes
Curt Welch <curt@kcwc.com> writes:
> I just noticed another rash of invalid message Id's with double @s like
> this one:
> <part1of27.3FFKHNqU0t4LUqf9fTn$@axe@powerpost.local>
> My server rejects these as invalid both for local posts and on transit.
> Yet I see all the other large sites I check accepted these articles.
> I've changed my code maybe 5 times in the past few years to make it more
> lax on what it will accept simply because I don't like being the only
> site that doesn't have an article because my code bothered to check and
> reject invalid Message-IDs.
INN rejects those and always has.
--
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.
Re: Rejecting bad Message-IDs
Author: Curt Welch
Date: Tue, 10 Aug 2004 05:28
Date: Tue, 10 Aug 2004 05:28
30 lines
2415 bytes
2415 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > > > I just noticed another rash of invalid message Id's with double @s like > > this one: > > > <part1of27.3FFKHNqU0t4LUqf9fTn$@axe@powerpost.local> > > > My server rejects these as invalid both for local posts and on transit. > > Yet I see all the other large sites I check accepted these articles. > > I've changed my code maybe 5 times in the past few years to make it > > more lax on what it will accept simply because I don't like being the > > only site that doesn't have an article because my code bothered to > > check and reject invalid Message-IDs. > > INN rejects those and always has. Good to know I'm not completely alone on that... I know Diablo was once very lax about Message-IDs. It even allowed spaces. I think it at least rejects that these days, but other than checking for valid characters inside the Message-ID, I suspect it doesn't go any further. nntprelay also seemed to allow just about anything based on what I have seen in the past coming from a peer who ran that. But I thought most other software was better about rejecting invalid Message-IDs than they seem to be. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Re: Rejecting bad Message-IDs
Author: Colin Wilson
Date: Tue, 10 Aug 2004 17:45
Date: Tue, 10 Aug 2004 17:45
20 lines
1627 bytes
1627 bytes
Curt Welch wrote: > Or is my problem that I'm using the wrong defintion of what a valid > Message-ID is BTW, where did you get the definition of what constitutes a valid Message-ID? XanaNews generates <Randomstuff@hostname> which seems to work fine except when the hostname is 'localhost' (because some users are using a local proxy eg. Hamster) I need to fix it, and I'd like to get it right! -- Colin - using XanaNews HTTP Transport e-mail :colin@wilsonc.demon.co.uk web: http://www.wilsonc.demon.co.uk/delphi.htm Posted with XanaNews 1.16.4.1
Re: Rejecting bad Message-IDs
Author: Ben Shimmin
Date: Tue, 10 Aug 2004 23:52
Date: Tue, 10 Aug 2004 23:52
11 lines
1400 bytes
1400 bytes
Colin Wilson <colin@wilsonc.demon.co.uk>:
> BTW, where did you get the definition of what constitutes a valid
> Message-ID?
RFC 1036.
b.
--
Ben Shimmin (bas@bas.me.uk) <URL:http://bas.me.uk/>
<URL:http://gpg.bas.me.uk/>
Re: Rejecting bad Message-IDs
Author: Curt Welch
Date: Wed, 11 Aug 2004 00:29
Date: Wed, 11 Aug 2004 00:29
21 lines
1892 bytes
1892 bytes
"Colin Wilson" <colin@wilsonc.demon.co.uk> wrote: > Curt Welch wrote: > > > Or is my problem that I'm using the wrong defintion of what a valid > > Message-ID is > > BTW, where did you get the definition of what constitutes a valid > Message-ID? I'm not sure. But RFC 1036, which makes vague refrence the RFC822 (email) was part of it. And then there's son of 1036 which attempts to talk more about the issue. 1036 I see starts the problem by defining a Message-ID to be any string of characters inside < > as long as space and > is not inside the Message-Id. But then it goes on the talk about RFC 822 without making it clear if you should follow 822 or not. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Re: Rejecting bad Message-IDs
Author: Andrew - Supernews
Date: Wed, 11 Aug 2004 00:48
Date: Wed, 11 Aug 2004 00:48
32 lines
2355 bytes
2355 bytes
On 2004-08-11, Curt Welch <curt@kcwc.com> wrote: > "Colin Wilson" <colin@wilsonc.demon.co.uk> wrote: >> Curt Welch wrote: >> > Or is my problem that I'm using the wrong defintion of what a valid >> > Message-ID is >> >> BTW, where did you get the definition of what constitutes a valid >> Message-ID? > > I'm not sure. But RFC 1036, which makes vague refrence the RFC822 (email) > was part of it. And then there's son of 1036 which attempts to talk more > about the issue. > > 1036 I see starts the problem by defining a Message-ID to be any string of > characters inside < > as long as space and > is not inside the Message-Id. > But then it goes on the talk about RFC 822 without making it clear if you > should follow 822 or not. You should follow both. What we do is to be relatively loose on incoming message-ids; we require them to have no whitespace, no embedded "<" or ">" (slightly stricter than 1036) and no more than 250 characters. We don't check for @ or for the dot-atom syntax. (Arguably we should probably check for the @. I'll think about that.) On local posts, though, we do the stricter checks as well - better to reject the article upfront rather than have it only partially propagate. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Rejecting bad Message-IDs
Author: Juergen Helbing
Date: Wed, 11 Aug 2004 05:04
Date: Wed, 11 Aug 2004 05:04
30 lines
1883 bytes
1883 bytes
curt@kcwc.com (Curt Welch) wrote: >[...] >Should I just give up my attempts to do the right thing and accept any >string starting with < and ending with > as a valid Message-ID? >[...] >Or is my problem that I'm using the wrong defintion of what a valid >Message-ID is? >From what I saw in the UseFor drafts you can entirely forget about plausibility checks on MsgIds in the future. (That part of the UseFor spec is the most confusing crap I've ever seen). The conception that a single '@' seperates the left-hand-side from the domain/host right-hand-side seems to be outdated. I believe that a 'common consense' among Usenet software writers is necessary on the MsgId. And its smallest possible consense would be to accept anything which has less than 250 chars and is enclosed into <> is a valid MsgId. (I am myself only making a check for <> from the beginning of MyNews). But as I read Russ' comment it might be still a good idea to create MsgIds the 'old fashioned way', to reject any misformatted preloaded POSTs and to relay anything you get as long as it has <>. Just my 2 euro-cents. -- Juergen
Re: Rejecting bad Message-IDs
Author: Colin Wilson
Date: Wed, 11 Aug 2004 09:52
Date: Wed, 11 Aug 2004 09:52
28 lines
1921 bytes
1921 bytes
Juergen Helbing wrote: > From what I saw in the UseFor drafts you can entirely forget about > plausibility checks on MsgIds in the future. ... Thanks Juergen and everyone else who responded! Of course the problem with writing a newsreader is it has to work with as many servers as possible. So it's important that it generates Message-Ids that are 'Standard' - so that they don't get rejected by for instance 'Acme News Server - written in 1998 when "Great-Aunt of RFC 1036"' was the latest thing! There seems to be one server out there that is rejecting <RandomStuff@localhost> Message-Ids. I'll try and find out which one it is. BTW - Most of the time XanaNews leaves it to the server to generate message IDs, but it can be configured to generate them itself. -- Colin - using XanaNews HTTP Transport e-mail :colin@wilsonc.demon.co.uk web: http://www.wilsonc.demon.co.uk/delphi.htm Posted with XanaNews 1.16.4.1
Re: Rejecting bad Message-IDs
Author: Bill Cole
Date: Wed, 11 Aug 2004 14:46
Date: Wed, 11 Aug 2004 14:46
14 lines
1579 bytes
1579 bytes
In article <06047.b84200@liebchen.winews.net>, archiver+nsn@i3w.com (Juergen Helbing) wrote: [...] > I believe that a 'common consense' among Usenet software writers > is necessary on the MsgId. And its smallest possible consense > would be to accept anything which has less than 250 chars and is > enclosed into <> is a valid MsgId. That is a positively absurd approach. MID's must be globally unique for news to function properly, and that makes it necessary to have sort of localization in MID's. -- Now where did I hide that website...
Re: Rejecting bad Message-IDs
Author: Russ Allbery
Date: Wed, 11 Aug 2004 16:23
Date: Wed, 11 Aug 2004 16:23
24 lines
2183 bytes
2183 bytes
Juergen Helbing <archiver+nsn@i3w.com> writes:
> From what I saw in the UseFor drafts you can entirely forget about
> plausibility checks on MsgIds in the future. (That part of the UseFor
> spec is the most confusing crap I've ever seen). The conception that a
> single '@' seperates the left-hand-side from the domain/host
> right-hand-side seems to be outdated.
The wording is ridiculous (the NNTP draft has much better wording), but
all that USEFOR is attempting to say is that you have to follow the RFC
2822 Message-ID spec (which certainly does have the single '@' rule) but
you're not allowed to take advantage of the stuff that quoting would
normally let you do, like embedding whitespace or having:
<"foo\bar"@example.com>
<foobar@example.com>
be the same message ID.
--
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.
Re: Rejecting bad Message-IDs
Author: Andrew - Supernews
Date: Wed, 11 Aug 2004 16:37
Date: Wed, 11 Aug 2004 16:37
17 lines
1852 bytes
1852 bytes
On 2004-08-11, Russ Allbery <rra@stanford.edu> wrote: > Juergen Helbing <archiver+nsn@i3w.com> writes: >> From what I saw in the UseFor drafts you can entirely forget about >> plausibility checks on MsgIds in the future. (That part of the UseFor >> spec is the most confusing crap I've ever seen). The conception that a >> single '@' seperates the left-hand-side from the domain/host >> right-hand-side seems to be outdated. > > The wording is ridiculous (the NNTP draft has much better wording), but > all that USEFOR is attempting to say is that you have to follow the RFC > 2822 Message-ID spec (which certainly does have the single '@' rule) Not entirely. RFC2822 allows, for example, <"foo@bar"@baz.com> (ick). -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Rejecting bad Message-IDs
Author: Russ Allbery
Date: Wed, 11 Aug 2004 17:00
Date: Wed, 11 Aug 2004 17:00
17 lines
1986 bytes
1986 bytes
Andrew <- Supernews <andrew+nonews@supernews.com>> writes:
> On 2004-08-11, Russ Allbery <rra@stanford.edu> wrote:
>> The wording is ridiculous (the NNTP draft has much better wording), but
>> all that USEFOR is attempting to say is that you have to follow the RFC
>> 2822 Message-ID spec (which certainly does have the single '@' rule)
> Not entirely. RFC2822 allows, for example, <"foo@bar"@baz.com> (ick).
Ah, yeah, that falls into the stuff that you can't do because it's taking
advantage of quoting.
--
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.
Re: Rejecting bad Message-IDs
Author: Curt Welch
Date: Wed, 11 Aug 2004 18:06
Date: Wed, 11 Aug 2004 18:06
13 lines
1705 bytes
1705 bytes
archiver+nsn@i3w.com (Juergen Helbing) wrote: > But as I read Russ' comment it might be still a good idea to create > MsgIds the 'old fashioned way', to reject any misformatted preloaded > POSTs and to relay anything you get as long as it has <>. At this point, I think I'm going to be forced to accept anything inside <> from peers because I can't afford to be missing articles which other sites are carrying. But I'll continue to do the strict RFC 822 checking for locally posted articles. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Re: Rejecting bad Message-IDs
Author: Russ Allbery
Date: Wed, 11 Aug 2004 18:28
Date: Wed, 11 Aug 2004 18:28
17 lines
1981 bytes
1981 bytes
Juergen Helbing <archiver+nsn@i3w.com> writes:
> But as I read Russ' comment it might be still a good idea to create
> MsgIds the 'old fashioned way', to reject any misformatted preloaded
> POSTs and to relay anything you get as long as it has <>.
All news software I write will only relay messages with properly formatted
message IDs. I see no reason to give relaying a free pass. But I don't
run a commercial news server whose partial selling point is providing
people with a complete set of broken articles, and I realize that there
are cases where people *are* in that situation.
--
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.
Re: Rejecting bad Message-IDs
Author: Curt Welch
Date: Wed, 11 Aug 2004 20:01
Date: Wed, 11 Aug 2004 20:01
99 lines
6702 bytes
6702 bytes
Bill Cole <bill@scconsult.com> wrote: > In article <06047.b84200@liebchen.winews.net>, > archiver+nsn@i3w.com (Juergen Helbing) wrote: > [...] > > I believe that a 'common consense' among Usenet software writers > > is necessary on the MsgId. And its smallest possible consense > > would be to accept anything which has less than 250 chars and is > > enclosed into <> is a valid MsgId. > > That is a positively absurd approach. MID's must be globally unique for > news to function properly, and that makes it necessary to have sort of > localization in MID's. That's just not true at all. There is no requirement that they be unique for Usenet to function properly. You have a mis-guided definition of "proper function" for Usenet. Usenet is not, never has been, and never will be, error free. There is always noise, and errors, and lost articles, and duplicate messages and duplicate message-ids. For Usenet (or any machine) to work, the only requirement is that problems like those be kept low enough to allow Usenet to still be useful. There will always be hardware malfunctions that corrupt articles from time to time, somewhere in the net. There will always be software bugs that will corrupt and disrupt Usenet from time to time. There will always be operator error causing errors, and problems. It's physically impossible to prevent this in the universe. What we do instead is create machines and systems which minimize the impact of these errors. Duplicate message-ids (on different articles), is one of these many problems. And, if we could create globally unique for all time message-ids, we would not have any collisions. That would of course be good. So that's a fine engineering goal to try and reach. But, it's impossible to achieve. Mistakes will be made (either by accident, or by design), and dups will be created. In my attempt to do message-id's "correctly", and reject articles with invalid Message-Ids, I've actually created more problems (thousands of lost articles which my users never got to see but which were available on all the other large sites). So, the question really is, what's the best system we can use to generate message-ids to minimize problems, including the one being talked about here, which caused me to drop thousands of articles this week. The dream of global uniqueness of course is a very simple engineering solution and one which, if achieved, clearly satisfies the goal of keeping collisions well below all the other problems that cause articles to be lost. But, global uniqueness requires central management of message-ids. And central management is not something that fits well on Usenet since there is no central management in control of all Usenet sites and posters. And it's something which currently isn't working for Message-IDs. The old design, which Usenet has grown from, is the idea that Message-Id generators would use a system to guarantee global uniqueness of their message-ids in their local part (the LFS before the @), and that the RHS would play off the centrally managed domain name system so that every message-id generator would be assigned a unique RHS. If every message-id generator creating Usenet Message-IDs followed this convention, and every admin and user correctly set up and configured the software, we would have no dups. But newsreaders commonly want/need to make up their own message-ids. And the author of the newsreader has no option available to guarantee that every copy of his software is correctly configued to use a unique domain name. A very common, and completely invalid (based on the above design) approach is to take the domain name of the mail address the user enters. And that's pointless. The requirement for the RHS is not to use "valid" domain names. The requirement is to use unique domain names for every Message-ID generator domain. And if you have 1000 different and independent copies of some newsreader software all generating ids for some common domain like aol.com, or earthlink.com, then the system is already broken. The dream of global uniqueness through this two level distributed system is lost. Yet, Usenet still functions fine, because even though the original design for generating global unique IDs has failed, it is still trivial using hash systems to generate message IDS with a low enough probability of collision that other factors (like spam, hardware problems, and software bugs) cause problems at a rate which is still many orders of magnitude higher than the problems we see due to Message-ID collisions. I suspect that the best approach at this point is to just totally drop the dream (myth) of globally unique message-ids, and instead just understand that Usenet is not centralized and any attempt at global uniqueness was mis-guided from the start. And instead, just replace it with the far simpler concept of low probability of collision IDs (which many are already using as it is). That is, just use a good random number source and generate an N bit random number as the message ID. For Usenet message-id syntax, moving forward, this just means we need to accept just about anything between <>. But for backward compatiblity, it would be wise to only generate IDs which correctly met all the previous standards. The Mail RFCs and the son-of-1036 seem to be the most restrictive. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Re: Rejecting bad Message-IDs
Author: J.B. Moreno
Date: Wed, 11 Aug 2004 20:58
Date: Wed, 11 Aug 2004 20:58
42 lines
2717 bytes
2717 bytes
In article <1092217938.3066.0@echo.uk.clara.net>, Colin Wilson <colin@wilsonc.demon.co.uk> wrote: > Juergen Helbing wrote: > > > From what I saw in the UseFor drafts you can entirely forget about > > plausibility checks on MsgIds in the future. > > ... > > Thanks Juergen and everyone else who responded! > > Of course the problem with writing a newsreader is it has to work with as > many servers as possible. So it's important that it generates Message-Ids > that are 'Standard' - so that they don't get rejected by for instance > 'Acme News Server - written in 1998 when "Great-Aunt of RFC 1036"' was the > latest thing! That's not going to be a problem -- if anything the rules are getting more lax not stricter. As a newsreader author, you can't possibly be too strict about what characters you allow in the message-id. Basically it ought to be ASCII, with no quoting or escaping allowed, it should have one and only one @ sign, " and \ and probably ' not allowed (I'd have to check to be sure). The RHS should be a domain name (some allow IP instead), technically it should be the name used to connect to the server, but this has never been enforced (except by servers that rewrite the MID anyway, so you don't have to worry about them), and it's generally accepted that the user can specify a domain that he controls (you have to trust him on that). Personally, I think that creating the message-id based upon the user's email address (with appropriate checking of the user's address) is the best thing to do. Several clients do that, including the one I'm using... -- J.B. Moreno
Re: Rejecting bad Message-IDs
Author: Juergen Helbing
Date: Thu, 12 Aug 2004 04:50
Date: Thu, 12 Aug 2004 04:50
21 lines
1582 bytes
1582 bytes
Russ Allbery <rra@stanford.edu> wrote: >All news software I write will only relay messages with properly formatted >message IDs. I see no reason to give relaying a free pass. When did you leave the principle "be liberal on what you accept but conservative on what you send" ? >But I don't >run a commercial news server whose partial selling point is providing >people with a complete set of broken articles, and I realize that there >are cases where people *are* in that situation. Missing articles in a controversial thread could even cause more disturbance than a missing binary. I dont believe this would be a case of 'commercial/ISP/text' server. CU -- Juergen
Re: Rejecting bad Message-IDs
Author: Juergen Helbing
Date: Thu, 12 Aug 2004 04:57
Date: Thu, 12 Aug 2004 04:57
20 lines
1618 bytes
1618 bytes
Russ Allbery <rra@stanford.edu> wrote: >[...] >The wording is ridiculous (the NNTP draft has much better wording), but >all that USEFOR is attempting to say is that you have to follow the RFC >2822 Message-ID spec (which certainly does have the single '@' rule) but >you're not allowed to take advantage of the stuff that quoting would >normally let you do, like embedding whitespace or having: >[...] Good luck in writing the 'implementation tips' for that doc. I was not able to understand this section - after 5 years of studying computer science @ university, 30 years of programming and writing my own newsreader+server. I doubt anybody outside the crew of creators will ever do it right. CU -- Juergen
Re: Rejecting bad Message-IDs
Author: Russ Allbery
Date: Thu, 12 Aug 2004 16:58
Date: Thu, 12 Aug 2004 16:58
40 lines
3160 bytes
3160 bytes
Juergen Helbing <archiver+nsn@i3w.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> All news software I write will only relay messages with properly
>> formatted message IDs. I see no reason to give relaying a free pass.
> When did you leave the principle "be liberal on what you accept but
> conservative on what you send" ?
It's impossible to follow that axiom with message IDs in the way that
you're implying, since if I accept an article, I then generate it as
well. So the choices are to reject it up-front, or to break the Usenet
protocols with everything else I do with that article, throwing bad data
at all of my downstream clients and peers.
Rejecting it is a much better move, IMO.
> Missing articles in a controversial thread could even cause more
> disturbance than a missing binary.
My news server carries news articles, not collections of random garbage
that happen to be formatted similarly. There are enough exceptions to
that already for things like bizarre From headers and weird Date headers
that INN has historically accepted. I don't see any need or reason to
make an exception for bad message IDs, which INN has never accepted. If
they want their posts to be seen by the rest of the world, they can use
properly formed message IDs just like the rest of us.
99% of those messages with double @-signs are spam, at least as of the
last time I looked at a wad of them. I don't know if any badly broken
client has since materialized that's producing them.
Message IDs with a trailing period were actually much more common, last
time I looked, but I haven't looked in a while.
--
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.
Re: Rejecting bad Message-IDs
Author: Russ Allbery
Date: Thu, 12 Aug 2004 16:59
Date: Thu, 12 Aug 2004 16:59
25 lines
2366 bytes
2366 bytes
Juergen Helbing <archiver+nsn@i3w.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> [...]
>> The wording is ridiculous (the NNTP draft has much better wording), but
>> all that USEFOR is attempting to say is that you have to follow the RFC
>> 2822 Message-ID spec (which certainly does have the single '@' rule) but
>> you're not allowed to take advantage of the stuff that quoting would
>> normally let you do, like embedding whitespace or having:
>> [...]
> Good luck in writing the 'implementation tips' for that doc. I was not
> able to understand this section - after 5 years of studying computer
> science @ university, 30 years of programming and writing my own
> newsreader+server. I doubt anybody outside the crew of creators will
> ever do it right.
Don't worry, USEFOR will never be published in its current form. Look at
the NNTP draft instead; it's much clearer.
--
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.
Re: Rejecting bad Message-IDs
Author: Curt Welch
Date: Thu, 12 Aug 2004 20:11
Date: Thu, 12 Aug 2004 20:11
13 lines
1851 bytes
1851 bytes
Russ Allbery <rra@stanford.edu> wrote: > 99% of those messages with double @-signs are spam, at least as of the > last time I looked at a wad of them. I don't know if any badly broken > client has since materialized that's producing them. The one's I've seen a few times in the past few weeks were binary multipart posts where the posting tool was configured wrong by the user. It looks like they entered an email address instead of a domain name and the posting tool used it without checking to generate the Message-ID. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Re: Rejecting bad Message-IDs
Author: J.B. Moreno
Date: Thu, 12 Aug 2004 22:46
Date: Thu, 12 Aug 2004 22:46
27 lines
2429 bytes
2429 bytes
In article <20040811160137.822$iC@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: > A very common, and completely invalid (based on the above design) > approach is to take the domain name of the mail address the user > enters. And that's pointless. The requirement for the RHS is not to > use "valid" domain names. The requirement is to use unique domain > names for every Message-ID generator domain. And if you have 1000 > different and independent copies of some newsreader software all > generating ids for some common domain like aol.com, or earthlink.com, > then the system is already broken. The dream of global uniqueness > through this two level distributed system is lost. For that exact approach, it is, but not for the closely related approach that the people that are doing that are taking..... As every address is supposed to be unique, the combination "%user@domain" could be considered a "unique" domain for every MID generator. You have to adjust what is considered the RHS, but once you do that, you're back to every generator having it's own, unique, RHS. The chief problem with this is that users can lie, and so you end up with "duplicate" generators (admins could lie to, but that's a smaller problem, there being fewer admins). -- J.B. Moreno
Re: Rejecting bad Message-IDs
Author: David Canzi -- non-mailable addr...
Date: Thu, 12 Aug 2004 23:01
Date: Thu, 12 Aug 2004 23:01
66 lines
4617 bytes
4617 bytes
In article <20040811160137.822$iC@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: >Bill Cole <bill@scconsult.com> wrote: >> In article <06047.b84200@liebchen.winews.net>, >> archiver+nsn@i3w.com (Juergen Helbing) wrote: >> [...] >> > I believe that a 'common consense' among Usenet software writers >> > is necessary on the MsgId. And its smallest possible consense >> > would be to accept anything which has less than 250 chars and is >> > enclosed into <> is a valid MsgId. >> >> That is a positively absurd approach. MID's must be globally unique for >> news to function properly, and that makes it necessary to have sort of >> localization in MID's. > >That's just not true at all. There is no requirement that they be unique >for Usenet to function properly. You have a mis-guided definition of >"proper function" for Usenet. Usenet is not, never has been, and never >will be, error free. There is always noise, and errors, and lost articles, >and duplicate messages and duplicate message-ids. For Usenet (or any >machine) to work, the only requirement is that problems like those be kept >low enough to allow Usenet to still be useful. Unique message IDs provide a simple and reliable way for a news server to recognize when it receives the same article more than once, and to refuse the article if it has already seen it. This allows the graph of connections between news servers to be multiply connected, rather than a tree, so that USENET doesn't break into fragments when some busy server goes down. The requirement for unique message IDs was designed into USENET early, and a lot of software has been written to depend on it. Because it's so sensible and useful, software designers reasonably assumed that they could rely on it. Removing this requirement would break many things. Why do that? So somebody out there can write some sloppy single-buttocked posting program? It's not as if it's hard to Do The Right Thing. There are no good reasons not to continue to require it. >There will always be hardware malfunctions that corrupt articles from time >to time, somewhere in the net. There will always be software bugs that >will corrupt and disrupt Usenet from time to time. There will always be >operator error causing errors, and problems. It's physically impossible to >prevent this in the universe. What we do instead is create machines and >systems which minimize the impact of these errors. There are two ways to try to minimize the impact of errors. One is to adapt to them, and the other is to discourage them. One works in the short term, the other in the long term. If news servers refuse nonstandard and/or duplicate message IDs, the software that produces them will either be fixed or fall out of use. If news servers are updated to adapt to the latest silly mistakes in posting software, bad software never goes away, and the reliability of USENET degrades over time. The various (mostly minor) disasters you mention above can be rare events, or they can be common events. It's up to you and people like you. -- David Canzi "Nonconformists travel as a rule in bunches. You rarely find a nonconformist who goes it alone. And woe to him inside a nonconformist clique who does not conform with nonconformity." -- Eric Hoffer
Re: Rejecting bad Message-IDs
Author: Andrew - Supernews
Date: Thu, 12 Aug 2004 23:33
Date: Thu, 12 Aug 2004 23:33
31 lines
2759 bytes
2759 bytes
On 2004-08-12, J.B. Moreno <planB@newsreaders.com> wrote: > For that exact approach, it is, but not for the closely related > approach that the people that are doing that are taking..... > > As every address is supposed to be unique, the combination > "%user@domain" could be considered a "unique" domain for every MID > generator. You have to adjust what is considered the RHS, but once you > do that, you're back to every generator having it's own, unique, RHS. Requiring @domain or %user@domain doesn't guarantee uniqueness, since owning a domain _now_ doesn't tell you anything about what IDs have been generated before you owned it, or will be generated after you no longer own it. Same argument (even more so) for %user@domain. So you put the time in the LHS - but you don't know if a future user is going to use the same time format or same epoch. So the only solution is to put as much entropy in the LHS as seems reasonable - and accept the possibility that there's still a small chance of collision over a long timeframe. If you look at actual message-ids now, you'll find it's quite common for them to be reused over quite short timescales for a number of reasons. This is of course a very bad thing; the main offenders are those sites that use overriding the message-id as a very feeble anti-spam mechanism. We get about 300 per day of IDs which have expired off our transit spools but which duplicate an ID which is on the main storage spool. This alone vastly outweighs any chance collisions. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Rejecting bad Message-IDs
Author: Andrew - Supernews
Date: Thu, 12 Aug 2004 23:50
Date: Thu, 12 Aug 2004 23:50
23 lines
2235 bytes
2235 bytes
On 2004-08-12, David Canzi -- non-mailable address <dmcanzi@remulak.ads.uwaterloo.ca> wrote: > Unique message IDs provide a simple and reliable way for a news server > to recognize when it receives the same article more than once, [...] That's not really relevent to this discussion, which is more about "can this message-ID be absolutely guaranteed to be unique forever" than whether it's unique within the expected lifetime of an article in transit. >From a practical point of view, it's enough to have enough entropy in the message-id, _regardless of format_, that there's no reasonable chance that someone else will use the same ID. This is the approach taken by, for example, the Agent newsreader, which puts all its message-ids in the 4ax.com domain by default. Some people argue that the localpart@domain format for IDs allows for a stronger guarantee of uniqueness, but this isn't really true unless you know that the domain hasn't been previously owned by someone else and that no-one besides you will use it in future. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Rejecting bad Message-IDs
Author: Andrew - Supernews
Date: Thu, 12 Aug 2004 23:57
Date: Thu, 12 Aug 2004 23:57
20 lines
2140 bytes
2140 bytes
On 2004-08-12, Curt Welch <curt@kcwc.com> wrote: > Russ Allbery <rra@stanford.edu> wrote: >> 99% of those messages with double @-signs are spam, at least as of the >> last time I looked at a wad of them. I don't know if any badly broken >> client has since materialized that's producing them. > > The one's I've seen a few times in the past few weeks were binary multipart > posts where the posting tool was configured wrong by the user. It looks > like they entered an email address instead of a domain name and the posting > tool used it without checking to generate the Message-ID. If that's the tool I'm thinking of, you could get it removed from use or updated within a matter of days, because it generates _predictable_ message-ids for multipart posts. Anyone can catch the early part numbers in the feed and inject articles matching later parts of the same post, thus preventing those parts from ever propagating. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Rejecting bad Message-IDs
Author: Juergen Helbing
Date: Fri, 13 Aug 2004 04:34
Date: Fri, 13 Aug 2004 04:34
31 lines
2279 bytes
2279 bytes
Andrew - Supernews <andrew+nonews@supernews.com> wrote: >[...] >If you look at actual message-ids now, you'll find it's quite common for >them to be reused over quite short timescales for a number of reasons. This >is of course a very bad thing; the main offenders are those sites that >use overriding the message-id as a very feeble anti-spam mechanism. We get >about 300 per day of IDs which have expired off our transit spools but which >duplicate an ID which is on the main storage spool. This alone vastly >outweighs any chance collisions. >[...] THX for this detailled info. Would you be so kind and post some example msg-ids? I believe that most of them would be <....@127.0.0.1> They are produced by a handful of spammers who are posting kiddie porn and some other auto-subject+from-morphing posting robots. Unfortunately I might be one of the reasons why some spammers are now using this tactics: I did send some thousand CCM (cancel+complaint-messages) to a bunch of their NSPs - with the result that a few spammers switched their msgid to 'preloaded' (with @127.0.0.1) and short LHS. The good thing with this method is that filtering on @127.0.0.1 is one of the best spam-filters I'm having today (LOL). TIA -- Juergen
Re: Rejecting bad Message-IDs
Author: Juergen Helbing
Date: Fri, 13 Aug 2004 04:47
Date: Fri, 13 Aug 2004 04:47
39 lines
2541 bytes
2541 bytes
dmcanzi@remulak.ads.uwaterloo.ca (David Canzi -- non-mailable address) wrote: >[...] >The requirement for unique message IDs was designed into USENET early, >and a lot of software has been written to depend on it. Because it's >so sensible and useful, software designers reasonably assumed that >they could rely on it. Removing this requirement would break many >things. Why do that? So somebody out there can write some sloppy >single-buttocked posting program? > >It's not as if it's hard to Do The Right Thing. There are no good >reasons not to continue to require it. [...] Generating own MsgIds is a _good_ thing for a posting program. It permits duplicate detection in case of failed POST. And it permits easy and automtaic identification of own posts and replies to own posts (list of replies to my own posts). I dont want to miss these features! However it is nearly impossible to generate a 'good' msgid today for a simple posting program because it would require to prevent the newbie user from specifying the RHS himself. I'm myself using the approach to generate a 'good RHS' by running an own register-server for a special domain and the user can enter only a 'nick' (third level domain) which is verified to be unique. But this is far more than the average programmer can do. You can still _require_ to do the 'right thing'. But we cannot cannot reach this. So we need 'better MsgIds' earlier or later. The more messages we get on Usenet the larger the problem becomes. Just another time bomb. CU -- Juergen
Re: Rejecting bad Message-IDs
Author: Curt Welch
Date: Fri, 13 Aug 2004 04:53
Date: Fri, 13 Aug 2004 04:53
28 lines
2611 bytes
2611 bytes
dmcanzi@remulak.ads.uwaterloo.ca (David Canzi -- non-mailable address) wrote: > Unique message IDs provide a simple and reliable way for a news server > to recognize when it receives the same article more than once, and > to refuse the article if it has already seen it. This allows the > graph of connections between news servers to be multiply connected, > rather than a tree, so that USENET doesn't break into fragments when > some busy server goes down. > > The requirement for unique message IDs was designed into USENET early, > and a lot of software has been written to depend on it. Because it's > so sensible and useful, software designers reasonably assumed that > they could rely on it. Removing this requirement would break many > things. Why do that? So somebody out there can write some sloppy > single-buttocked posting program? > > It's not as if it's hard to Do The Right Thing. There are no good > reasons not to continue to require it. You missed the point I was making. I was talking about the subtle problems of _generating_ unique message-ids and how that relates to the syntax we currently use. I take it as an obvious fact that all usenet servers must assume that articles with the same message-id are the same article. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Re: Rejecting bad Message-IDs
Author: Juergen Helbing
Date: Fri, 13 Aug 2004 04:57
Date: Fri, 13 Aug 2004 04:57
24 lines
1624 bytes
1624 bytes
Russ Allbery <rra@stanford.edu> wrote: >> Good luck in writing the 'implementation tips' for that doc. I was not >> able to understand this section - after 5 years of studying computer >> science @ university, 30 years of programming and writing my own >> newsreader+server. I doubt anybody outside the crew of creators will >> ever do it right. > >Don't worry, USEFOR will never be published in its current form. Look at >the NNTP draft instead; it's much clearer. Dont worry ? If USEFOR and the NNTP draft are using different methods to specify the MsgId for Usenet then the mess is worse than I thought. ;-) I did understand USEFOR in a way that MsgIds with duplicate '@' would be even legal. Please have mercy with those posting-program-creators and give them a unique and proper spec. -- Juergen
Re: Rejecting bad Message-IDs
Author: Curt Welch
Date: Fri, 13 Aug 2004 05:18
Date: Fri, 13 Aug 2004 05:18
26 lines
2662 bytes
2662 bytes
andrew@supernews.com wrote: > Some people argue that the localpart@domain format for IDs allows for a > stronger guarantee of uniqueness, but this isn't really true unless you > know that the domain hasn't been previously owned by someone else and > that no-one besides you will use it in future. Yeah, adding @domain to a message-id clearly reduces the probability of collison and makes it "stronger". But the real question is how much stronger does it make it compared to what you could do with a far smaller number of strong entropy bits in its place. For example, any domain you use on a regular basis might be picked up some day by someone writting spam posting code which attempts to generate look-alike IDs to hide the true source of the spam. There's just no way to control who else may one day, in the future use the same domain and same general syntax IDs. The only real protection from dups is entropy bits. The amount of entropy a typical domain name adds to a Message-ID is far less than the number of bits it wastes in the Message-ID. So, if you are going to add N characters to a Message-ID to make it stronger, the best thing to do is always to add N strong entropy characters, not more domain names, or dates, or processes IDs. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Re: Rejecting bad Message-IDs
Author: Andrew - Supernews
Date: Fri, 13 Aug 2004 11:52
Date: Fri, 13 Aug 2004 11:52
38 lines
2827 bytes
2827 bytes
On 2004-08-13, Juergen Helbing <archiver+nsn@i3w.com> wrote: > THX for this detailled info. > Would you be so kind and post some example msg-ids? > I believe that most of them would be <....@127.0.0.1> Nope. 99%+ of them are <md5hash@domain> where "domain" is any of the NNTPServer resellers or hosted sites. i.e. teranews, 1usenet, meganetnews etc. It seems there is only one person in the industry who thinks that this is a good idea. The remaining handful of the ones I checked from yesterday's log were from some sort of BBS-to-Usenet gateway. > They are produced by a handful of spammers who are posting > kiddie porn and some other auto-subject+from-morphing posting robots. Most of the duplicate IDs I see are spam, but not all. > Unfortunately I might be one of the reasons why some spammers > are now using this tactics: I did send some thousand CCM > (cancel+complaint-messages) to a bunch of their NSPs - with > the result that a few spammers switched their msgid to > 'preloaded' (with @127.0.0.1) and short LHS. I'm failing to see why them using @127.0.0.1 would make any difference at all. > The good thing with this method is that filtering on @127.0.0.1 > is one of the best spam-filters I'm having today (LOL). In our logs for yesterday there are about 30,000 message-ids with @127.0.0.1, of which we rejected about 5,000 as spam. Eyeballing the logs for the ones that were not rejected doesn't suggest that they are spam that we missed. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Rejecting bad Message-IDs
Author: Russ Allbery
Date: Fri, 13 Aug 2004 18:02
Date: Fri, 13 Aug 2004 18:02
33 lines
2750 bytes
2750 bytes
Juergen Helbing <archiver+nsn@i3w.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> Don't worry, USEFOR will never be published in its current form. Look
>> at the NNTP draft instead; it's much clearer.
> Dont worry ? If USEFOR and the NNTP draft are using different methods
> to specify the MsgId for Usenet then the mess is worse than I thought.
> ;-)
The mess is entirely contained in USEFOR, which is a disaster and should
not be referred to by any implementor.
> Please have mercy with those posting-program-creators and give them a
> unique and proper spec.
The NNTP draft basically defers to RFC 2822, with the addition of
explaining exactly the sorts of things that RFC 2822 allows but that NNTP
doesn't. So you need to read the specification in RFC 2822.
RFC 2822 isn't the easiest document to understand, but it is thorough and
fairly precise, and lots of people have written software against it or
against RFC 822 (which is even more complicated). I'm afraid that you're
simply going to have to bite the bullet and understand RFC 2822 if you
intend to write news software, for many reasons other than just message
IDs. It's the only place you can go to understand all sorts of other
things about message format that apply to Usenet.
--
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.
Re: Rejecting bad Message-IDs
Author: Frank
Date: Fri, 13 Aug 2004 19:57
Date: Fri, 13 Aug 2004 19:57
22 lines
2174 bytes
2174 bytes
On Fri, 13 Aug 2004 11:52:17 -0000, Andrew - Supernews <andrew+nonews@supernews.com> wrote: >On 2004-08-13, Juergen Helbing <archiver+nsn@i3w.com> wrote: >> THX for this detailled info. >> Would you be so kind and post some example msg-ids? >> I believe that most of them would be <....@127.0.0.1> > >Nope. > >99%+ of them are <md5hash@domain> where "domain" is any of the NNTPServer >resellers or hosted sites. i.e. teranews, 1usenet, meganetnews etc. It seems >there is only one person in the industry who thinks that this is a good idea. Can you explain why <md5hash@domain> are more prone to be duplicated, and is this not the default way Agent generates Message IDs (with a far more common domain)? If so, is it then right to assume it's how NNTPServer generates the hash that's the problem, rather than the <md5hash@domain> format itself?
Re: Rejecting bad Message-IDs
Author: Curt Welch
Date: Fri, 13 Aug 2004 19:59
Date: Fri, 13 Aug 2004 19:59
59 lines
4451 bytes
4451 bytes
andrew@supernews.com wrote: > On 2004-08-13, Juergen Helbing <archiver+nsn@i3w.com> wrote: > > THX for this detailled info. > > Would you be so kind and post some example msg-ids? > > I believe that most of them would be <....@127.0.0.1> > > Nope. > > 99%+ of them are <md5hash@domain> where "domain" is any of the NNTPServer > resellers or hosted sites. i.e. teranews, 1usenet, meganetnews etc. It > seems there is only one person in the industry who thinks that this is a > good idea. Yeah, I see those all the time as well. For those that don't understand, what nntpserver decided to do with their software was to steal the airnews message-id generation convention and make the Message-Id a hash of the article body. So if someone tries to repost a message with the exact same body, it will be given the exact same message-id (and rejected by all sits which still have the Message-ID from the previous post in their history file). They do this as a way to prevent duplicate posts. In the case of a spammer trying to post 10,000 idential messages, this of course is good. But for far more reasons, it's the worst thing in the world to do. And it's a shame because nntpserver picked up this crappy idea just when Frank had finally decided to come to his senses and abandon it. For this to work, they must override any message-id supplied by the posting program. So every newsreader that uses custom message-ids for tracking posts is broken by this technique. But the far worse problem is the fact that binary posters are constantly trying to repost segments of messing files, which end up having the exact same body as the orginal post. So they get the same message-id assigned, and get rejected if the old message-id is still in the history file of the posting server. But, the nntp server machines seem to have a fairly short history file, because they are constantly (100s per day), allowing new posts with duplicate message-ids to be sent out to Usenet. How far these travel depending on the size of the history files of all the servers. And like Andrew, my transit servers tend to have shorter history files, and allow more of these duplicated messages to be received, yet they get rejected when the tranist servers try to send them to the main server, which has a much longer history file. So these re-posts no doubt are failing most the time when people try to post them on any of the nntpserver systems, yet when they do work, they waste bandwidth being sent around to a lot of transit servers, and then fail to make it to the end uses, even though the original has expired from the server but not from the history file. It just totaly breaks the Usenet file propigation algorithm and causes more inconsistencies between sites. Here's an example of one of the Message-IDs: <fd3f59d344b09c7e398f7d260bff49a0@news.meganetnews.com> -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Re: Rejecting bad Message-IDs
Author: Curt Welch
Date: Fri, 13 Aug 2004 20:55
Date: Fri, 13 Aug 2004 20:55
57 lines
3820 bytes
3820 bytes
Frank wrote: > On Fri, 13 Aug 2004 11:52:17 -0000, Andrew - Supernews > <andrew+nonews@supernews.com> wrote: > > >On 2004-08-13, Juergen Helbing <archiver+nsn@i3w.com> wrote: > >> THX for this detailled info. > >> Would you be so kind and post some example msg-ids? > >> I believe that most of them would be <....@127.0.0.1> > > > >Nope. > > > >99%+ of them are <md5hash@domain> where "domain" is any of the > >NNTPServer resellers or hosted sites. i.e. teranews, 1usenet, > >meganetnews etc. It seems there is only one person in the industry who > >thinks that this is a good idea. > > Can you explain why <md5hash@domain> are more prone to be duplicated, > and is this not the default way Agent generates Message IDs (with a > far more common domain)? > > If so, is it then right to assume it's how NNTPServer generates the > hash that's the problem, rather than the <md5hash@domain> format > itself? Using a hash is not bad. Using a hash based only on the body of the message is bad. And that is what they are doing. If you hashed the body and the headers and used that value, it would be ok. If you could throw in some more entropy bits from a local source like a microsecond clock or the bits from the configuration file of the newsreader, or header data from the group you were posting to, that would be even better. 128 bits however is overkill. I think the number needed for todays size Usenet is closer to 40 (what it would take to get articles dropped by accidential dup ids below the noise floor of all the other reaons articles get dropped these days). You need to add about 2 bits per year so 128 bits is about what you might need around the year 2046 if usenet continues to grow at the current pace. And hex encoding only puts 4 bits per character which is poor. It's trival to get 6 per character reducing the Message-Id to only 7 characters. So instead of this: <fd3f59d344b09c7e398f7d260bff49a0@news.meganetnews.com> You could use message-ids like this (ignoring the syntax compatibilty problem): <dI8Khj0> And usenet would still work as well as it works today. For safety and growth however, it would be easy to justify more bits, but 128 bits is around 3 times the number you need for todays usenet. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Re: Rejecting bad Message-IDs
Author: Frank
Date: Sat, 14 Aug 2004 00:31
Date: Sat, 14 Aug 2004 00:31
70 lines
4606 bytes
4606 bytes
On 13 Aug 2004 20:55:17 GMT, curt@kcwc.com (Curt Welch) wrote: >Frank wrote: >> On Fri, 13 Aug 2004 11:52:17 -0000, Andrew - Supernews >> <andrew+nonews@supernews.com> wrote: >> >> >99%+ of them are <md5hash@domain> where "domain" is any of the >> >NNTPServer resellers or hosted sites. i.e. teranews, 1usenet, >> >meganetnews etc. It seems there is only one person in the industry who >> >thinks that this is a good idea. >> >> Can you explain why <md5hash@domain> are more prone to be duplicated, >> and is this not the default way Agent generates Message IDs (with a >> far more common domain)? >> >> If so, is it then right to assume it's how NNTPServer generates the >> hash that's the problem, rather than the <md5hash@domain> format >> itself? > >Using a hash is not bad. Using a hash based only on the body of the >message is bad. And that is what they are doing. If you hashed the body >and the headers and used that value, it would be ok. If you could throw >in some more entropy bits from a local source like a microsecond clock or >the bits from the configuration file of the newsreader, or header data from >the group you were posting to, that would be even better. Thanks. I thought this was how they did it - I think it was a post by you some time ago in fact, perhaps in this group, where I read it, but I was not sure if they changed how they did it since. I assumed this method was used because -- in theory -- it's unlikely to the point of impossible that an identical article could be *typewritten* more than once. I didn't even consider that the same M-ID would be given to a reposted article -- even though it's an obvious (side)effect -- because even to a layman like me, that seems to be a silly idea. Having read the other -- very informative -- post, it's even more clear why it's not an ideal thing to do. You said in that post that it can prevent the same spam message appearing more than once, which is presumably the reason they do it. If so, isn't this a very unsophisticated way to stop spam (and easily evaded if spam software generates random characters in the body for each post)? >128 bits however is overkill. I think the number needed for todays size >Usenet is closer to 40 (what it would take to get articles dropped by >accidential dup ids below the noise floor of all the other reaons >articles get dropped these days). You need to add about 2 bits per year so >128 bits is about what you might need around the year 2046 if usenet >continues to grow at the current pace. > >And hex encoding only puts 4 bits per character which is poor. It's trival >to get 6 per character reducing the Message-Id to only 7 characters. > >So instead of this: > > <fd3f59d344b09c7e398f7d260bff49a0@news.meganetnews.com> > >You could use message-ids like this (ignoring the syntax compatibilty >problem): > > <dI8Khj0> > >And usenet would still work as well as it works today. For safety and >growth however, it would be easy to justify more bits, but 128 bits is >around 3 times the number you need for todays usenet. Isn't the Agent M-ID even greater though; 170 bits? That seems like uber-overkill. :)
Re: Rejecting bad Message-IDs
Author: Robert Nichols
Date: Sat, 14 Aug 2004 06:36
Date: Sat, 14 Aug 2004 06:36
11 lines
1796 bytes
1796 bytes
In article <30346.d84200@liebchen.winews.net>, Juergen Helbing <archiver+nsn@i3w.com> wrote: :The good thing with this method is that filtering on @127.0.0.1 :is one of the best spam-filters I'm having today (LOL). A scan of my (small) news spool finds about 0.4% of the articles have a Message-ID <...@127.0.0.1>, and they all appear to be legitimate postings. (My feeds are reasonably clean.) -- Bob Nichols AT comcast.net I am "rnichols42"
Re: Rejecting bad Message-IDs
Author: Andrew - Supernews
Date: Sat, 14 Aug 2004 11:27
Date: Sat, 14 Aug 2004 11:27
46 lines
3842 bytes
3842 bytes
On 2004-08-14, Frank <> wrote: > I assumed this method was used because -- in theory -- it's unlikely > to the point of impossible that an identical article could be > *typewritten* more than once. Actually it does happen - especially with, for example, test posts. Comparing md5 hashes of the article body is a common method of detecting spam (it's our second most effective single filtering method for example); but when used for that purpose, it's not usual to limit to one occurrence of any hash value, more usually a small number (maybe in the range 3-10) is used to allow for cases where the same article is legitimately posted more than once. Even then it's necessary to exempt test groups and do special-case handling of messages with no or very little body text. > You said in that post that it can prevent the same spam message > appearing more than once, which is presumably the reason they do it. > If so, isn't this a very unsophisticated way to stop spam (and easily > evaded if spam software generates random characters in the body for > each post)? Exactly. When using md5 checks for spam detection, it's normal to slightly munge the article body first to remove parts which are likely to be random additions (known as "hashbreakers"). > Isn't the Agent M-ID even greater though; 170 bits? That seems like > uber-overkill. :) When it comes to hashes, overkill is good unless it pushes the cost up too high. With only 40 bits, at least one hash collision per day is almost inevitable (a million articles would give you a 40% chance of collision and the feed size is more like 4 million per day). Worse, on a server with a moderately long retention, let's say 64 days (ours is much longer for everything except multipart binaries), then every individual post would have about one chance in 4096 of being erroneously dropped as a duplicate. When I built our current servers, I actually looked at whether 64 bits would be enough for storing message-ids, and concluded that the space saving over 128 bits wasn't worth the increased chance of an accidental collision, even though the collision probability isn't actually all that high. With 128 bits you don't have to worry about collisions at all, and for my history file the size difference was only about 20%. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Rejecting bad Message-IDs
Author: Curt Welch
Date: Sun, 15 Aug 2004 02:39
Date: Sun, 15 Aug 2004 02:39
54 lines
4495 bytes
4495 bytes
andrew@supernews.com wrote: > When it comes to hashes, overkill is good unless it pushes the cost up > too high. With only 40 bits, at least one hash collision per day is > almost inevitable (a million articles would give you a 40% chance of > collision and the feed size is more like 4 million per day). Worse, on a > server with a moderately long retention, let's say 64 days (ours is much > longer for everything except multipart binaries), then every individual > post would have about one chance in 4096 of being erroneously dropped as > a duplicate. Yeah, 40 bits is low for a full feed server with 64 days of retention. I agree that you would expect to see one out of 4096 articles lost to dups which is about 1000 per day and that's too high. But for a 16 day retention server, that number drops to 1 out of every 64K articles or about 64 articles per day. And that's a better article loss rate than I believe most Usenet servers run at. How many false positives do most sites which run spam filters for example get per day? This is why I was saying a 40 bit hash is all you need to make usenet work about as well as it currently works. You wouldn't want to use a hash that small, that's just around the absolute minimum you could get away with and still have Usenet work about as well as it normally works for most servers. This ignores the problems an archive like Google would face however if they didn't store articles with dup Message-IDs. But, like you said, depending on the cost of the resources being wasted, it's always possible to justify some overkill. To get the 64 day retention server down to the same article loss rate as the 16 day server, you only need to go to a 42 bit hash. To get google down to the same loss rate per day, you need something like a 47 bit hash (based on the guess that the number of articles posted to usenet has been doubling every two years - but since I'm using full feed article counts that's probably high for the case of Google since they only carry text). A 64 bit hash should be expected to produce a single collision for new articles added to Google about once every 2 years if all my math and estimates are correct. > When I built our current servers, I actually looked at whether 64 bits > would be enough for storing message-ids, and concluded that the space > saving over 128 bits wasn't worth the increased chance of an accidental > collision, even though the collision probability isn't actually all that > high. With 128 bits you don't have to worry about collisions at all, and > for my history file the size difference was only about 20%. I use the diablo 64 bit CRC. Increasing to 128 bits would increase my history file size by 50%. I suspect I care less about a few lost articles than you do. :) -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
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