On 2/13/2014 9:12 AM, Fabio Sangiovanni wrote: > Hi everybody, > > I'm looking for a software to perform URIBLDNS body checks to use as > a before-queue filter. > The main requirement is massive speed (<100ms scan time), thus I am > avoiding amavisd-new + spamassassin, even with tuned rules, in favor > of something written in a compiled language. Supported lists must be > Spamhaus DBL and SURBL. > > I've found this: http://www.five-ten-sg.com/dnsbl/rn01re01.html > which is perfect on paper, but apparently doesn't work with postfix. > > Have you any suggestions on the matter? > > Thanks! > > Fabio
Take a look at http://people.freebsd.org/~sahil/scripts/checkdbl.pl.txt Its intended purpose is to use with header_checks, but it could probably be adapted to body_checks without too much trouble. Just adjust the part that looks for an email address to look for a URL. It's so simple I can't imagine anything being any faster. It does have the usual limitations of body_checks -- encoded content is not decoded and URLs that span multiple lines might be missed. -- Noel Jones
