Discussion:
[SA-exim] memcached for greylisting
Eduardo Diaz Comellas
2009-05-13 19:38:09 UTC
Permalink
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.
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.
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
${memcache{set}{key}{value}{timeout}}
${memcached{get}{key}}
But my solution is just as functional (less pretty)
Regards
--
Eduardo Diaz Comellas -- ***@ultreia.es
Ultreia Comunicaciones S.L.
Marc MERLIN
2009-05-14 01:06:33 UTC
Permalink
Post by Eduardo Diaz Comellas
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.
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
Post by Eduardo Diaz Comellas
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.
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
${memcache{set}{key}{value}{timeout}}
${memcached{get}{key}}
But my solution is just as functional (less pretty)
Regards
--
Ultreia Comunicaciones S.L.
_______________________________________________
SA-Exim mailing list
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/
Loading...