9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: weigelt@metux.de, Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] opposite of bloom filter
Date: Sat, 13 Nov 2010 17:31:30 -0500	[thread overview]
Message-ID: <AANLkTimxw-ua1wrN+AJUyT5tyAbu=osCDO83KONxCfwW@mail.gmail.com> (raw)
In-Reply-To: <20101113184343.GA17279@nibiru.local>

> I'm currently looking for the opposite of an bloom filter, which
> may have false negatives but no false positives.
>
> The purpose is allowing an spooling (store+forward) mail relay
> to learn which addresses are not accepted by the actual maildrop
> (which is connected by an uucp-link, so no direct smtp chat),
> to get rid of the thousands silly error bounces from brute force
> attacks on email addresses.
>
> An trivial idea would be simply using an hashtable as blacklist,
> but obviously that would become very big. I need a more compact
> form, perhaps a subset of regex'es, a colored (b)tree, etc ?
>
> Any ideas ?

Use a Bloom filter.

You are looking for the opposite of a Bloom filter in order
to ask the question "is this an invalid email address?".
Instead, use a Bloom filter to ask the question
"is this a valid email address?".

This requires the remote uucp site to give you a Bloom
filter with all the valid addresses inserted, but that seems
unavoidable.  I don't know how the opposite-of-Bloom-filter
approach would work anyway.

Russ


  parent reply	other threads:[~2010-11-13 22:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-13 18:43 Enrico Weigelt
2010-11-13 22:26 ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2010-11-13 22:48   ` erik quanstrom
2010-11-13 23:10     ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2010-11-14  2:52   ` Bruce Ellis
2010-11-14  2:54     ` Bruce Ellis
2010-11-14  2:56       ` Bruce Ellis
2010-11-13 22:31 ` Russ Cox [this message]
2010-11-13 22:38   ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2010-11-13 23:15     ` Russ Cox
2010-11-13 23:20       ` erik quanstrom
2010-11-13 23:28       ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2010-11-13 23:46         ` erik quanstrom
2010-11-13 23:51           ` Lyndon Nerenberg (VE6BBM/VE7TFX)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTimxw-ua1wrN+AJUyT5tyAbu=osCDO83KONxCfwW@mail.gmail.com' \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    --cc=weigelt@metux.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).