> memcache is nice, but how do you use memcache data in postfix ? There is a patch for memcached and postfix. The problem is, which is what I'm working on, is how to populate it. They only give you the mechanism for using memcached. (http://www.aurore.net/projects/postfix_memcached/)
So, my intent, when I have time over the couple weeks is to work on an app that will populate it (add/update) from a key pair stream (thus I can populate it with whatever data call I want) and just crontab it out. The problem is my C is pretty rusty and the data formats for the script languages use a different format for memcached than the C api. But the theory is sound and for something like having AWL integrated into postfix, this would be an ideal way to handle it as it's fast and can be modified externally. With that said, I spend some time last night thinking of a better implementation of what Len had mentioned. I don't want to block singleton email addresses as most of the emails are coming from random IP's so it defeats the purpose. I was thinking that, instead of that, create a table that will house the domain and IP, with an aggregate score (based upon some algorithm yet to be defined) and use that for the quick lookup for postfix. If a domain has passed in a couple spams from a single IP, this could be a fluke, but if they are passing hundreds, it's obviously not. Anyway, if you have any ideas on populating the memcached and have C experience, and some time, you might want to run with the idea as well and share some code.
