[Mimedefang] Filesystem based greylisting

G. Roderick Singleton gerry at pathtech.org
Thu Aug 26 16:45:25 EDT 2004


On Thu, 2004-08-26 at 16:26, Atanas wrote:
> I'd like to share something that already works for me for about 2
> months. It's extremely simple, fast and reliable:
> 

[code snipped]

> The above is a stripped down version of the greylisting code only. It
> just creates or updates greylist entries (one empty file per entry).
> There's also a cron job for cleaning any expired entries, something for
> authenticated users to bypass the greylist, a whitelist per relay IP and
> recipient domain, simple HELO checks, etc.
> 
> It's not a rocket science and anybody knowing perl could write it, but
> if anyone is interested I could post the whole thing, it's probably just
> about 2-3 times bigger than the above.
> 
> For me it handles about 3M greylist entries and so far I had no
> problems. It runs on a single box together with Mimedefang/SA/Clamd
> processing about 350K messages a day. Before the greylist implementation
> the same box was hit by 550-600K messages a day, so the greylist
> effectively stops about 30-40% of the email traffic. Some time in the
> future I'm planning to share it among multilpe mimedefang machines over NFS.
> 
> Disclaimer: I'm not a perl programmer. The above code works for me, but
> might not work for you and/or could have bugs. I tried to make it
> efficient, but possibly it could have been written better.
> 

YES, PLEASE make it available. Preferably post it on your website for
only those interested. Caveat is acknowledged.
-- 
G. Roderick Singleton <gerry at pathtech.org>
PATH tech



More information about the MIMEDefang mailing list