🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
26 messages
26 total messages Started by Garrett Wollman Sat, 08 Nov 1997 00:00
Checking message-ID validity?
#23059
Author: Garrett Wollman
Date: Sat, 08 Nov 1997 00:00
34 lines
1886 bytes
I've been thinking of modifying my transit server to automatically
reject messages with bogus message-IDs as a way to weed out more spam
than the current spam filter does.  (And also, as a side effect, weed
out the cancel messages for the spam that I'm already blocking.)
Looking at the last 20 hours' or so worth of message-IDs, I get the
following set of statistics:

     Message-IDs examined:    368492
                    Valid:    314613 (85.4%)
         No dot in domain:     34587 (9.4%)
         Multiple @-signs:         0 (0.0%)
       Illegal characters:      1003 (0.3%)
               IP address:      6604 (1.8%)
             TLD too long:      8634 (2.3%)
            TLD too short:      1346 (0.4%)
    Spam software default:      1705 (0.5%)

Obviously, some of these tests would also screen out a few legitimate,
but misconfigured, users---I don't particularly mind that.  My spam
filter has also recognized at least 13,000 messages (out of almost
80,000 spams) which meet one of these criteria.

What does everybody else think?

-GAWollman

-- 
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

Re: Checking message-ID validity?
#23047
Author: Bill Stewart-Cole
Date: Sat, 08 Nov 1997 00:00
51 lines
2609 bytes
In article <642jpr$4cm$1@khavrinen.lcs.mit.edu>,
wollman@khavrinen.lcs.mit.edu (Garrett Wollman) wrote:

> I've been thinking of modifying my transit server to automatically
> reject messages with bogus message-IDs as a way to weed out more spam
> than the current spam filter does.  (And also, as a side effect, weed
> out the cancel messages for the spam that I'm already blocking.)
> Looking at the last 20 hours' or so worth of message-IDs, I get the
> following set of statistics:
> 
>      Message-IDs examined:    368492
>                     Valid:    314613 (85.4%)
>          No dot in domain:     34587 (9.4%)

That can be a result of antique server behavior, and it will catch mostly
old sites that have been doing news since the days when UUCP ruled. 

>          Multiple @-signs:         0 (0.0%)
>        Illegal characters:      1003 (0.3%)
>                IP address:      6604 (1.8%)

An IP address as the host part is perfectly valid. See the RFC's and read
them CAREFULLY. Follow the references... 

>              TLD too long:      8634 (2.3%)
>             TLD too short:      1346 (0.4%)

Be careful there. Those can be part of the same antique server configuration.

I assume 'too long' >4 characters or more and 'too short' means <2. It
would be odd, but perfectly legal, to use a *.arpa hostname.   

>     Spam software default:      1705 (0.5%)
> 
> Obviously, some of these tests would also screen out a few legitimate,
> but misconfigured, users---I don't particularly mind that.  My spam
> filter has also recognized at least 13,000 messages (out of almost
> 80,000 spams) which meet one of these criteria.
> 
> What does everybody else think?

You won't just clobber users with misconfigured clients, but sites with
servers whose configuration was perfectly valid at some point and arguably
still is.

-- 
Bill Stewart-Cole                             bill@scconsult.com        
I'm not spam-blocked because I like playing the hardass net-fascist.

Re: Checking message-ID validity?
#23050
Author: Jeff Garzik
Date: Sat, 08 Nov 1997 00:00
21 lines
1284 bytes
Garrett Wollman wrote:
> I've been thinking of modifying my transit server to automatically
> reject messages with bogus message-IDs as a way to weed out more spam
> than the current spam filter does.

Quoting from the USENET RFC, 1036:

> In order to conform to RFC-822, the Message-ID must have the format: 
>                    <unique@full_domain_name>

If the message id isn't RFC-standard, filter it.

That said, I probably won't use your filter on my servers, because it
will filter out valid posts as well as spam.
-- 
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
Spinne USENET News Service	        Fast and efficient news feeds
http://www.spinne.com/usenet/	           News tuning and consulting

Re: Checking message-ID validity?
#23068
Author: Garrett Wollman
Date: Sun, 09 Nov 1997 00:00
32 lines
1923 bytes
Since some people seemed interested, I extended my message-ID analysis
to compile a list of all the bad message-IDs seen ranked by
frequency.  You can see the first 1000 lines of this list (generated
from recent message-IDs observed on my server, AFTER spam-filtering) at
<http://radio.lcs.mit.edu/wollman/idlist.txt>.  Here are the overall
statistics, from <http://radio.lcs.mit.edu/wollman/idstats.txt>:

     Message-IDs examined:    899672
                    Valid:    783294 (87.1%)
         No dot in domain:     83335 (9.3%)
         Multiple @-signs:         1 (0.0%)
       Illegal characters:      1272 (0.1%)
               IP address:     10351 (1.2%)
   RFC 822 domain literal:       587 (0.1%)
             TLD too long:     14977 (1.7%)
            TLD too short:      2716 (0.3%)
    Spam software default:      3139 (0.3%)

I'll probably update both of these files in a few days when I've
collected a couple million IDs.  Note that not all of these categories
listed above are considered by my analysis as ``bad''.

-GAWollman

-- 
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

Re: Checking message-ID validity?
#23079
Author: Paul Eggert
Date: Sun, 09 Nov 1997 00:00
12 lines
963 bytes
wollman@khavrinen.lcs.mit.edu (Garrett Wollman) writes:

>I've been thinking of modifying my transit server to automatically
>reject messages with bogus message-IDs as a way to weed out more spam
>than the current spam filter does.

If by ``bogus'' you mean ``does not conform to the RFCs'',
then INN already does this;
see the function ARTidok in INN's innd/art.c file.

Re: Checking message-ID validity?
#23085
Author: Bill Stewart-Cole
Date: Sun, 09 Nov 1997 00:00
25 lines
1789 bytes
In article <slrn669o4m.rct.jbn@pop-a-wheelie.midwest.net>,
jbn@pop-a-wheelie.midwest.net (J.B. Nicholson-Owens) wrote:

> This could be useful in helping newsreader developers make better
> message-IDs.  Pine message-IDs don't need to be so long and there might be
> newsreaders that use illegal characters.  The point is, it would be helpful
> to get stats on what posting agent posted the offensive articles.

For a long time, UUNet ran some sort of pedantic server that dropped
articles with bad Message-ID's, and tale regularly posted lists of dropped
articles. It was sort of interesting... 

I just discovered yesterday that formail generates technically improper
Message-ID's with the local part enclosed in quotes. It would not surprise
me to find that a significant number of people have mail->news hacks set
up using formail to generate Message-ID's which would get hit by a really
pedantic Message-ID check. I seem to recall that tale's lists included
messages with quotes in the ID.

-- 
Bill Stewart-Cole                             bill@scconsult.com        
I'm not spam-blocked because I like playing the hardass net-fascist.

Re: Checking message-ID validity?
#23089
Author: Matt Dillon
Date: Mon, 10 Nov 1997 00:00
50 lines
3287 bytes
:In article <647hf6$q2v$1@zeus.fw.cuci.nl>,
:Stephen R. van den Berg <srb@zeus.fw.cuci.nl> wrote:
:>Simon Lyall  <simon@darkmere.gen.nz> wrote:
:>>Bill Stewart-Cole <bill@scconsult.com> wrote:
:>>>I dug into the RFC822 spec and ran through the syntax a couple times and
:>>>was convinced that <"> was illegal. I even dug into the formail source a
:>
:>>RFC1036 is the news standard. Unfortunately is leaves a lot out ( the
:>>legal characters in a newsgroup name for example). Son of RFC1036 is also
:>>incomplete in places.
:>
:>True.  But Message-IDs are things which are *perfectly* described in RFC822.
:>There is no room for misinterpretation, and there is no room for error.
:>I don't see any compelling reason why we should make message-IDs in
:>news incompatible with those in the regular mail system.  It would only
:>make mail-news gateways (and vice versa) more complicated than necessary
:>for no apparent benenfits.
:>
:>In the case of formail, the reason *why* the message id is being generated
:>in a <"abcd"@abcd> fashion, is because it makes the left part of the
:>message ID *case sensitive*.  This serves the purpose to reduce the size
:>and length of the message-ID but keep the same entropy.
:>If this would have to be given up, the lefthand side of the ID would roughly
:>double in size (and for what?  Most systems are more happy with shorter
:>sequences, and are faster at doing case-sensitive compares anyway).

    Well, RFC 822 defines a message-id as basically being an address 
    specification.  Personally I think this is broken.  However, even in 
    RFC 822 the local-part of the message-id is specified as being case
    sensitive.  You do not need quotes to make it case sensitive.  You
    do need quotes if the local-part contains a special character such as
    a space, but this does not change the case-sensitive nature of the
    object.

    The domain part of a message-id in RFC 822 must be a valid domain name,
    but the RFC specifies that it is basically made up of 'atoms'.  The RFC
    is unclear about the casing here but, personally, I treat message-id's
    as case sensitive objects in their entirety and believe that case must
    be preserved.

    Anyone who treats a message-id as a case insensitive entity or writes
    software that freely 'adjusts' the casing in a message-id is seriously
    broken.  Personally I believe that having quotes in message-id's is also
    broken, but the standards do explicitly allow quoting in the local-part.

						-Matt


Re: Checking message-ID validity?
#23090
Author: Stephen R. van den Berg
Date: Mon, 10 Nov 1997 00:00
22 lines
1600 bytes
Bill Stewart-Cole <bill@scconsult.com> wrote:
>I just discovered yesterday that formail generates technically improper
>Message-ID's with the local part enclosed in quotes. It would not surprise
>me to find that a significant number of people have mail->news hacks set
>up using formail to generate Message-ID's which would get hit by a really
>pedantic Message-ID check. I seem to recall that tale's lists included
>messages with quotes in the ID.

Can you (or anyone) show chapter and verse in an RFC where the left-hand part
of a Message-ID cannot contain double-quotes?

As far as I can recall, when I investigated the matter, I couldn't find
any technical reasons why it would be forbidden, and therefore had
to be valid.
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).

A sign seen at the local pizza place: "DO NOT CARRY TAKE-OUT BOXES BY HANDLES"

Re: Checking message-ID validity?
#23098
Author: Rahul Dhesi
Date: Mon, 10 Nov 1997 00:00
29 lines
2054 bytes
In <647pjn$81m$1@flea.best.net> dillon@best.net (Matt Dillon) writes:

>    Well, RFC 822 defines a message-id as basically being an address 
>    specification.  Personally I think this is broken.  However, even in 
>    RFC 822 the local-part of the message-id is specified as being case
>    sensitive.  You do not need quotes to make it case sensitive.  You
>    do need quotes if the local-part contains a special character such as
>    a space, but this does not change the case-sensitive nature of the
>    object.

The folks who wrote dbz say this in the comments:

/*
 - cipoint - where in this message-ID does it become case-insensitive?
 *
 * The RFC822 code is not quite complete.  Absolute, total, full RFC822
 * compliance requires a horrible parsing job, because of the arcane
 * quoting conventions -- abc"def"ghi is not equivalent to abc"DEF"ghi,
 * for example.  There are three or four things that might occur in the
 * domain part of a message-id that are case-sensitive.  They don't seem
 * to ever occur in real news, thank Cthulhu.  (What?  You were expecting
 * a merciful and forgiving deity to be invoked in connection with RFC822?
 * Forget it; none of them would come near it.)
 */
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: Checking message-ID validity?
#23101
Author: Bill Stewart-Cole
Date: Mon, 10 Nov 1997 00:00
37 lines
2334 bytes
In article <64635h$jsg$1@zeus.fw.cuci.nl>, srb@zeus.fw.cuci.nl (Stephen R.
van den Berg) wrote:

> Bill Stewart-Cole <bill@scconsult.com> wrote:
> >I just discovered yesterday that formail generates technically improper
> >Message-ID's with the local part enclosed in quotes. It would not surprise
> >me to find that a significant number of people have mail->news hacks set
> >up using formail to generate Message-ID's which would get hit by a really
> >pedantic Message-ID check. I seem to recall that tale's lists included
> >messages with quotes in the ID.
> 
> Can you (or anyone) show chapter and verse in an RFC where the left-hand part
> of a Message-ID cannot contain double-quotes?
> 
> As far as I can recall, when I investigated the matter, I couldn't find
> any technical reasons why it would be forbidden, and therefore had
> to be valid.

Hmmm... This is a bit embarrassing.

I dug into the RFC822 spec and ran through the syntax a couple times and
was convinced that <"> was illegal. I even dug into the formail source a
little last night think it might be an easy patch. (I came away convinced
that I should stick to my own code...) 

I had a nice cite of those syntax rules as a response to your request. I
even had an ordered list of just the relevant rules so that it would be
clearer to parse. That's when I realized that I was absolutely wrong, and
you are absolutely right. Simply put: quotes around the entire local part
are legal.

-- 
Bill Stewart-Cole                             bill@scconsult.com        
I'm not spam-blocked because I like playing the hardass net-fascist.

Re: Checking message-ID validity?
#23103
Author: Matt Dillon
Date: Mon, 10 Nov 1997 00:00
23 lines
1516 bytes
:In article <646u9v$j8k@darkmere.gen.nz>,
:Simon Lyall  <simon@darkmere.gen.nz> wrote:
:>Bill Stewart-Cole <bill@scconsult.com> wrote:
:>>I dug into the RFC822 spec and ran through the syntax a couple times and
:..
:>incomplete in places.
:>
:>I believe general consensus in the Usefor group is that "'s are not
:>allowed in message-ids. The new standard should reflect this.

     Hmm... unless the RFC explicitly specifies that double quotes are
     meta characters, they have to be treated as normal characters.  Since
     '.....@some.domain"' (not the quote) is not a valid domain, internally 
     quoted message-id's are not valid message-id's.

     I don't know what idiot software decided to start quoting message-id's,
     but it's broken behavior.

						-Matt


Re: Checking message-ID validity?
#23108
Author: Simon Lyall
Date: Mon, 10 Nov 1997 00:00
21 lines
1556 bytes
Bill Stewart-Cole <bill@scconsult.com> wrote:
>I dug into the RFC822 spec and ran through the syntax a couple times and
>was convinced that <"> was illegal. I even dug into the formail source a
>little last night think it might be an easy patch. (I came away convinced
>that I should stick to my own code...) 

RFC1036 is the news standard. Unfortunately is leaves a lot out ( the
legal characters in a newsgroup name for example). Son of RFC1036 is also
incomplete in places.

I believe general consensus in the Usefor group is that "'s are not
allowed in message-ids. The new standard should reflect this.

-- 
Simon Lyall. | Looking for Work | Mail: simon@darkmere.gen.nz
"Inside me Im Screaming, Nobody pays any attention."  |  MT.

PGP Keyprint - F3 41 25 CB  A7 6E FE BC  75 4E 27 E5  BF CB A7 93

Re: Checking message-ID validity?
#23114
Author: Garrett Wollman
Date: Mon, 10 Nov 1997 00:00
29 lines
1576 bytes
In article <646buu$t2g$1@red.twinsun.com>,
Paul Eggert <eggert@twinsun.com> wrote:
>wollman@khavrinen.lcs.mit.edu (Garrett Wollman) writes:
>
>>I've been thinking of modifying my transit server to automatically
>>reject messages with bogus message-IDs as a way to weed out more spam
>>than the current spam filter does.
>
>If by ``bogus'' you mean ``does not conform to the RFCs'',

No, by ``bogus'' I mean ``likely to have been originated by a
spammer''.  I would rather be able to reject spam before it is
transmitted to me, than have to read the whole article in order to
reject it.

>then INN already does this;

I don't run INN.

-GAWollman

-- 
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

Re: Checking message-ID validity?
#23115
Author: Stephen R. van den Berg
Date: Mon, 10 Nov 1997 00:00
37 lines
2386 bytes
Simon Lyall  <simon@darkmere.gen.nz> wrote:
>Bill Stewart-Cole <bill@scconsult.com> wrote:
>>I dug into the RFC822 spec and ran through the syntax a couple times and
>>was convinced that <"> was illegal. I even dug into the formail source a

>RFC1036 is the news standard. Unfortunately is leaves a lot out ( the
>legal characters in a newsgroup name for example). Son of RFC1036 is also
>incomplete in places.

True.  But Message-IDs are things which are *perfectly* described in RFC822.
There is no room for misinterpretation, and there is no room for error.
I don't see any compelling reason why we should make message-IDs in
news incompatible with those in the regular mail system.  It would only
make mail-news gateways (and vice versa) more complicated than necessary
for no apparent benenfits.

In the case of formail, the reason *why* the message id is being generated
in a <"abcd"@abcd> fashion, is because it makes the left part of the
message ID *case sensitive*.  This serves the purpose to reduce the size
and length of the message-ID but keep the same entropy.
If this would have to be given up, the lefthand side of the ID would roughly
double in size (and for what?  Most systems are more happy with shorter
sequences, and are faster at doing case-sensitive compares anyway).

>I believe general consensus in the Usefor group is that "'s are not
>allowed in message-ids. The new standard should reflect this.

What is the "Usefor" group?  If this is the case, I wholeheartedly disagree
would like to offer some input.
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).

"-- hit any user to continue"

Re: Checking message-ID validity?
#23116
Author: Matt Dillon
Date: Mon, 10 Nov 1997 00:00
28 lines
1886 bytes
    RFC 1036 defines message-id's differently from RFC 822.  It basically
    states:

    "Programmers are urged not to make assumptions about the content of
    Message-ID fields from other hosts, but to treat them as unknown
    character strings.  It is not safe, for example, to assume that a
    Message-ID will be under 14 characters, that it is unique in the
    first 14 characters, nor that is does not contain a "/"."

    I interpret this to mean not making assumptions about case either.. i.e.
    the message-id is case sensitive requiring and exact match.

    RFC 1036 also restricts message-id's... they may not contain spaces
    or tabs, slashes are 'discouraged'.  I interpret that to mean that 
    message-id's for news articles are NOT supposed to be 100% compatible
    with RFC 822 message-id's.  While quotes are probably allowed in
    the unique portion, they have NO EFFECT on how case is interpreted.  case
    is not interpreted at all... message-id's are case sensitive, requiring
    an exact match.

    The only place case is mentioned in RFC 1036 is for the From: address
    specification.

						-Matt


Re: Checking message-ID validity?
#23122
Author: Bill Stewart-Cole
Date: Mon, 10 Nov 1997 00:00
29 lines
1905 bytes
In article <646u9v$j8k@darkmere.gen.nz>, Simon Lyall
<simon@darkmere.gen.nz> wrote:

> Bill Stewart-Cole <bill@scconsult.com> wrote:
> >I dug into the RFC822 spec and ran through the syntax a couple times and
> >was convinced that <"> was illegal. I even dug into the formail source a
> >little last night think it might be an easy patch. (I came away convinced
> >that I should stick to my own code...) 
> 
> RFC1036 is the news standard. Unfortunately is leaves a lot out ( the
> legal characters in a newsgroup name for example). Son of RFC1036 is also
> incomplete in places.
> 
> I believe general consensus in the Usefor group is that "'s are not
> allowed in message-ids. The new standard should reflect this.

1036 is self-contradictory: it cites compatibility with RFC822 as a basis
for a casual definition that conflicts with RFC822. 

i.e. the same logical structure as:

In order to comply with the law against murder, you must kill one person daily.

-- 
Bill Stewart-Cole                             bill@scconsult.com        
I'm not spam-blocked because I like playing the hardass net-fascist.

Re: Checking message-ID validity?
#23127
Author: Bill Stewart-Cole
Date: Mon, 10 Nov 1997 00:00
39 lines
2444 bytes
In article <647hf6$q2v$1@zeus.fw.cuci.nl>, srb@zeus.fw.cuci.nl (Stephen R.
van den Berg) wrote:

> Simon Lyall  <simon@darkmere.gen.nz> wrote:
> >Bill Stewart-Cole <bill@scconsult.com> wrote:
> >>I dug into the RFC822 spec and ran through the syntax a couple times and
> >>was convinced that <"> was illegal. I even dug into the formail source a
> 
> >RFC1036 is the news standard. Unfortunately is leaves a lot out ( the
> >legal characters in a newsgroup name for example). Son of RFC1036 is also
> >incomplete in places.
> 
> True.  But Message-IDs are things which are *perfectly* described in RFC822.
> There is no room for misinterpretation, and there is no room for error.
> I don't see any compelling reason why we should make message-IDs in
> news incompatible with those in the regular mail system.  It would only
> make mail-news gateways (and vice versa) more complicated than necessary
> for no apparent benenfits.
> 
> In the case of formail, the reason *why* the message id is being generated
> in a <"abcd"@abcd> fashion, is because it makes the left part of the
> message ID *case sensitive*.  

By definition, they are already so. This from RFC822:

     local-part  =  word *("." word)             ; uninterpreted
                                                 ; case-preserved

Anything that mangles or ignores case in the local part of a Message-ID
(or address, which has the same spec) is broken. The quoted local-parts
from formail are just wierd, and as has been noted cause problems with one
formerly dominant news server.

-- 
Bill Stewart-Cole                             bill@scconsult.com        
I'm not spam-blocked because I like playing the hardass net-fascist.

Re: Checking message-ID validity?
#23132
Author: Andrew Gierth
Date: Mon, 10 Nov 1997 00:00
14 lines
1253 bytes
>>>>> "Matt" == Matt Dillon <dillon@best.net> writes:

 Matt> You do need quotes if the local-part contains a special
 Matt> character such as a space, but this does not change the
 Matt> case-sensitive nature of the object.

Of course, putting a space in there makes the ID illegal for news,
according to RFC 1036.

-- 
Andrew.

Re: Checking message-ID validity?
#23134
Author: coneill
Date: Mon, 10 Nov 1997 00:00
14 lines
1456 bytes
dillon@best.net (Matt Dillon) writes:
>     Anyone who treats a message-id as a case insensitive entity or writes
>     software that freely 'adjusts' the casing in a message-id is seriously
>     broken.  Personally I believe that having quotes in message-id's is also
>     broken, but the standards do explicitly allow quoting in the local-part.

I can assure you that there are systems out there today that are
transiting news that _do_ change the case of message-id's.  I ran into 
this problem a while back, and it probably happens for a few dozen
messages a day.  I agree with you that it's broken, but it's something 
you have to deal with.

Re: Checking message-ID validity?
#23140
Author: Stephen R. van den Berg
Date: Tue, 11 Nov 1997 00:00
37 lines
2280 bytes
Bill Stewart-Cole <bill@scconsult.com> wrote:
>In article <647hf6$q2v$1@zeus.fw.cuci.nl>, srb@zeus.fw.cuci.nl (Stephen R.
>van den Berg) wrote:
>> In the case of formail, the reason *why* the message id is being generated
>> in a <"abcd"@abcd> fashion, is because it makes the left part of the
>> message ID *case sensitive*.  

>By definition, they are already so. This from RFC822:

>     local-part  =  word *("." word)             ; uninterpreted
>                                                 ; case-preserved

>Anything that mangles or ignores case in the local part of a Message-ID
>(or address, which has the same spec) is broken.

Hmmm...  Apparently so.  Even rereading RFC1036 doesn't seem to indicate that
the lefthand part could be case-insensitive.
Strange...  Even though it's more than three years ago, I distinctly remember
programming it in such a way that there were no quotes at first, then,
after reading something (I would guess some RFC; but I'm not sure what
it was anymore), I suddenly realised that the lefthand part needed to
be protected from case-insensitivity (I cursed the reason which caused
this, but I took protective measures anyway).

> The quoted local-parts
>from formail are just wierd, and as has been noted cause problems with one
>formerly dominant news server.

Ah, well, fixing it now.  Newer versions will generate more plain IDs.
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).

Skiing beyond this point may result in death and/or loss of skiing privileges.

Re: Checking message-ID validity?
#23151
Author: Steinar Haug
Date: Tue, 11 Nov 1997 00:00
28 lines
1772 bytes
[Matt Dillon]

| :>I believe general consensus in the Usefor group is that "'s are not
| :>allowed in message-ids. The new standard should reflect this.
| 
|   Hmm... unless the RFC explicitly specifies that double quotes are
|   meta characters, they have to be treated as normal characters.  Since
|   '.....@some.domain"' (not the quote) is not a valid domain, internally 
|   quoted message-id's are not valid message-id's.
|      I don't know what idiot software decided to start quoting message-id's,
|   but it's broken behavior.

Even without considering quotes, there are differences in what servers
accept. Consider the following message-id's from today's logs:

	<B08DFD689668763FB@0.0.0.>
	<01bcee6f$30509820$1e4e0981@.huawei.co.cn>
	<97Nov10.235913-0000_(EST).86472@info.physics.utoronto.ca>

(received from diablo-1.13 and NNTPRelay 1.1Beta3, rejected by inn-1.5.1)

It would be nice if at least major servers like inn, diablo and nntprelay
agreed on what message-id's are acceptable.

Steinar Haug, Nethelp consulting, sthaug@nethelp.no

Re: Checking message-ID validity?
#23204
Author: Wolfgang Schelongowski
Date: Wed, 12 Nov 1997 00:00
32 lines
2005 bytes
In <bill-0811971553010001@sc1.scconsult.com>
 bill@scconsult.com (Bill Stewart-Cole) writes:

>In article <642jpr$4cm$1@khavrinen.lcs.mit.edu>,
>wollman@khavrinen.lcs.mit.edu (Garrett Wollman) wrote:

>> I've been thinking of modifying my transit server to automatically
>> reject messages with bogus message-IDs as a way to weed out more spam
>> than the current spam filter does.  (And also, as a side effect, weed
>> out the cancel messages for the spam that I'm already blocking.)
>> Looking at the last 20 hours' or so worth of message-IDs, I get the
>> following set of statistics:
>> 
>>      Message-IDs examined:    368492
>>                     Valid:    314613 (85.4%)
>>          No dot in domain:     34587 (9.4%)

>That can be a result of antique server behavior, and it will catch mostly
>old sites that have been doing news since the days when UUCP ruled. 

Can be, but mostly isn't. If you inspect such articles you'll see a 
pattern. Most of these articles are created by misconfigured M$'s IE4
(MSGIDs like <01bcedcc$ed3f6f40$0100007f@default>). Fodder for my 
in.coming/bad ;-)
-- 
Wolfgang Schelongowski  Check _ALL_ headers before sending email.
The whole point about the end of the universe was 
that you couldn't go past it accidentally.
  -- Terry Pratchett, Faust^H^H^H^H^HEric

Re: Checking message-ID validity?
#23216
Author: Stephen R. van den Berg
Date: Thu, 13 Nov 1997 00:00
35 lines
2111 bytes
Olaf Titz <olaf@bigred.inka.de> wrote:
>Stephen R. van den Berg <srb@zeus.fw.cuci.nl> wrote:
>> If this would have to be given up, the lefthand side of the ID would roughly
>> double in size (and for what?  Most systems are more happy with shorter

>No, the size wouldn't nearly double. Take a base 32 vs. base 64
>encoding: you get 5 vs. 6 bits per character, or a factor of 6/5 =
>1.2, in this case. (To encode 128 bit numbers base 64, you need 22
>chars, to encode them base 32, you need 26 chars, not 44.)

You are, of course, absolutely right.  I've been getting not enough
sleep lately, I guess.

>And the local part of the Message-ID is supposed to be case sensitive
>anyway, at least dbz acts on this premise. (And one more point: news

The recent posting by R.Dhesi seems to indicate that the dbz implementors
knew something about case insensitivity.  I'm still not entirely convinced
that I was hallucinating as I took that into consideration (but it
sure starts to look that way :-).

>software of any kind is not supposed to "transform" the Message-IDs in
>any way, esp. not to case-smash them, so you can well treat them as
>completely case-sensitive.)

Yes, well, that seems to be common sense now, I didn't know if I could
assume this some years ago.
--
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).

"Always look on the bright side of life!"

Re: Checking message-ID validity?
#23308
Author: Paul Eggert
Date: Sun, 16 Nov 1997 00:00
27 lines
1808 bytes
sthaug@nethelp.no (Steinar Haug) writes:

>Even without considering quotes, there are differences in what servers
>accept. Consider the following message-id's from today's logs:

>	<B08DFD689668763FB@0.0.0.>
This does not conform to RFC 822 section 6.1,
which says that a domain can't end in ".".

>	<01bcee6f$30509820$1e4e0981@.huawei.co.cn>
This does not conform to the same RFC, same section,
which says that a domain can't begin with ".".

>	<97Nov10.235913-0000_(EST).86472@info.physics.utoronto.ca>
This one is arguable.  RFC 822 section 3.4.3 says that such a comment
is ``lexically equivalent with a single SPACE'', and RFC 1036 section
2.1.5 says ``White space characters (e.g., blank and tab) are not allowed''.

>(received from diablo-1.13 and NNTPRelay 1.1Beta3, rejected by inn-1.5.1)
>It would be nice if at least major servers like inn, diablo and nntprelay
>agreed on what message-id's are acceptable.

Yes.  In the first two cases INN is clearly right; in the last case the
RFCs are unclear, and any future RFC should clear this up this point.

Re: Checking message-ID validity?
#23318
Author: Paul Eggert
Date: Sun, 16 Nov 1997 00:00
15 lines
1239 bytes
Simon Lyall <simon@darkmere.gen.nz> writes:

>I believe general consensus in the Usefor group is that "'s are not
>allowed in message-ids.

What gave you that impression?  They're clearly allowed by RFC 822,
and RFC 1036 doesn't prohibit them.

Granted, '"' is rare in practice, but it's not unheard of.
For example, <"G3DYOJr_nV3.0.vE7.XzaOq"@oceana.nlanr.net>
is a Message-ID that recently appeared in comp.os.linux.networking,
and it conforms to both RFC 1036 and RFC 822.

Re: Checking message-ID validity?
#23320
Author: Garrett Wollman
Date: Mon, 17 Nov 1997 00:00
55 lines
3334 bytes
Just one final follow-up on this question.  Here's the analysis of a
week's worth of message-IDs:

     Message-IDs examined:   4134379
                    Valid:   3659692 (88.5%)
         No dot in domain:    348225 (8.4%)
         Multiple @-signs:         2 (0.0%)
       Illegal characters:      7606 (0.2%)
               IP address:     35516 (0.9%)
   RFC 822 domain literal:      3469 (0.1%)
             TLD too long:     59873 (1.4%)
            TLD too short:     11854 (0.3%)
    Spam software default:      8142 (0.2%)

The top 25 problem id-host-parts:

news                                                 125875	nodot
default                                               40624	nodot
msgidabcxyz.com                                        8142	spamsoft
underground.video                                      7164	longtld
upnetnews03                                            4971	nodot
wazzupFREExxx                                          4506	nodot
OnlyFREENovember                                       4356	nodot
notapennyFREE                                          4206	nodot
c4freeagift2you                                        3954	nodot
FreeInNovember                                         3862	nodot
greatFREEpixXXX                                        3840	nodot
metoyoufree                                            3499	nodot
MEDIA2                                                 2758	nodot
free.cunt                                              2752	longtld
winterfreezefreepix4u                                  2558	nodot
springtimefreepix4u                                    2265	nodot
afreexxxgift2you                                       2227	nodot
grolsch                                                2143	nodot
Novemberxxxliberation                                  2032	nodot
NovemberXXXFree                                        1909	nodot
HIX                                                    1855	nodot
nntp.netcruiser                                        1698	longtld
upwebmon04                                             1695	nodot
FREENovember                                           1448	nodot
northern                                               1333	nodot

The top 1000 or so can be seen at
<http://radio.lcs.mit.edu/wollman/idlist.txt>.

-GAWollman

-- 
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

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