[SA-exim] memcached for greylisting

Marc MERLIN marc at merlins.org
Wed May 13 18:06:33 PDT 2009


On Wed, May 13, 2009 at 09:38:09PM +0200, Eduardo Diaz Comellas wrote:
> Hi!
> 
> In the exim users list it has been proposed to use memcached to store 
> some values. As memcached implements record expiry natively, and can be 
> easely shared in a network, it seems to be a great  option for greylisting.
> 
> This is the original post:
 
First, to be honest sa-exim more or less does what I wanted it to, and I
don't have the time nor desire to add lots of new features, especially since
most people seem to be using exiscan since it's good enough at what it does
spam-wise and built in exim.

Second, memcached doesn't survive a reboot from what I can tell. While there
isn't a compelling reason to change sa-exim's greylisting away from files on
disk that are easy to parse and manage, i also like the fact that I don't
lose the greylisting data if the server gets rebooted.

Marc
 
> > I've managed to hook Exim into memcached using ${readsocket}. There are 
> > many useful applications for this. Its inbuilt ability to automatically 
> > expire data after a time period would make it ideal for greylisting for 
> > example.
> >
> > If you want to see how I did it, see here:
> >
> > https://secure.grepular.com/blog/index.php/2009/05/13/accessing-memcached-from-exim/
> >
> > Ideally, Exim would have a native memcache interface letting you store 
> > and retrieve values like this:
> >
> > ${memcache{set}{key}{value}{timeout}}
> > ${memcached{get}{key}}
> >
> > But my solution is just as functional (less pretty)
> >   
> Regards
> 
> -- 
> Eduardo Diaz Comellas -- ediaz at ultreia.es
> Ultreia Comunicaciones S.L.
> 
> 
> _______________________________________________
> SA-Exim mailing list
> SA-Exim at lists.merlins.org
> http://lists.merlins.org/lists/listinfo/sa-exim
> 

-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  



More information about the SA-Exim mailing list