On 10/28/2012 7:43 AM, Freek Dijkstra wrote: > My ideal configuration would be as follow: > - Check 2 or 3 larger DNS blacklists. > - If it is positive match, greylist. If not, allow the mail right away. > - Add a header with the result of the blacklisting (so spamassassin > can add some points, without doing the lookup again, if it comes > through the greylist the second time)
Check the existing policy services at http://www.postfix.org/addon.html#policy My first thought would be to use postfwd to check the RBLs, and if there's a match call the simple but reliable greylist.pl included with postfix. There are undoubtedly other ways to do this; maybe one of the existing tools does this all by itself. Don't bother adding RBL result headers for SpamAssassin; the previous results will be cached in your DNS and won't add any significant latency. -- Noel Jones