🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69745

Re: Rejecting bad Message-IDs

#69745
From: Andrew - Supernews
Date: Sat, 14 Aug 2004 11:27
46 lines
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
Technical Details
Message-ID: <slrnchrtp4.1bsd.andrew+nonews@trinity.supernews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <20040809200002.772$KV@newsreader.com> <06047.b84200@liebchen.winews.net> <bill-B4CBB1.10463511082004@fireproof.scconsult.com> <20040811160137.822$iC@newsreader.com> <120820041846546295%planB@newsreaders.com> <slrnchnvj0.1bsd.andrew+nonews@trinity.supernews.net> <30346.d84200@liebchen.winews.net> <slrnchparh.1bsd.andrew+nonews@trinity.supernews.net> <411d1d7d$0$29165$c3e8da3@news.astraweb.com> <20040813165517.862$eI@newsreader.com> <411d5d87$0$39188$c3e8da3@news.astraweb.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnchrtp4.1bsd.andrew+nonews@trinity.supernews.net>
Subject: Re: Rejecting bad Message-IDs
Date: Sat, 14 Aug 2004 11:27:32 -0000
From: Andrew - Supernews <andrew+nonews@supernews.com>
References: <20040809200002.772$KV@newsreader.com> <06047.b84200@liebchen.winews.net> <bill-B4CBB1.10463511082004@fireproof.scconsult.com> <20040811160137.822$iC@newsreader.com> <120820041846546295%planB@newsreaders.com> <slrnchnvj0.1bsd.andrew+nonews@trinity.supernews.net> <30346.d84200@liebchen.winews.net> <slrnchparh.1bsd.andrew+nonews@trinity.supernews.net> <411d1d7d$0$29165$c3e8da3@news.astraweb.com> <20040813165517.862$eI@newsreader.com> <411d5d87$0$39188$c3e8da3@news.astraweb.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://www.supernews.com - all your nntp are belong to us
Reply-To: andrew@supernews.com
User-Agent: slrn/0.9.8.0 (FreeBSD)
X-Complaints-To: abuse@supernews.com
Lines: 46