On 10/29/2015 01:04 PM, Bill Cole wrote: > On 29 Oct 2015, at 11:09, Alex wrote: > >> Hi, >> >> I've been receiving tons of messages not being tagged by spamassassin >> on one host, despite it hitting bayes999, and wanted to see if there >> was something that could be done. >> >> http://pastebin.com/vxrUdEvy >> >> As of right now, 23.246.233.6 isn't listed on zen or any other popular >> RBL, and there doesn't appear to be anything standing out in the >> header that could be used. > > [ INTENTIONAL VAGUENESS FOLLOWS ] (this is what I miss most about > SOUGHT), but as you know it's often >> too late to catch such a moving target. I'm finding very large blocks >> of IPs are typically involved with these campaigns. > > Or in this case, not so much: "whois -h whois.arin.net '+ > 23.246.233.6'" shows a /28 SWIP'ed earlier this month. > > I wish there were a usable way to automate whois lookups across RIRs > to identify recently reassigned small blocks like that to add a > probationary point to SA scores (i.e. IP in a /25 or smaller net > reassigned within 30 days => score 1.0) but unfortunately the various > bodies managing IP addresses are in aggregate an obstinately > anti-interop collection of narcissists, many of whom have actively > fought against any publicly usable federation of their precious > proprietary databases. (BUT: see below) > >> I have dozens of these that get through before they are blacklisted >> and would like a more general or broad solution. > > Tools used in front of handling messages can help: > > 3. Hacky imperfect whois-checking scripts. I wouldn't advise this on a > high-volume system, but if you can tolerate missing some cases in > order to err on the side of safety & taking an extra half second on > every SMTP session, it isn't terribly hard to identify ~75% of the > snowshoe blocks at connect time (and almost never penalize a > legitimate sender, because legitimate senders with SWIP'ed IP ranges > tend to keep them for more than one billing period.) +1.
The jwhois client can be used in caching mode to reduce the volume of queries.