On 3/4/2014 7:03 AM, Alessandro Vesely wrote: > On Mon 03/Mar/2014 14:50:07 +0100 Stan Hoeppner wrote: >> On 2/28/2014 5:16 AM, Alessandro Vesely wrote: >>> On Thu 27/Feb/2014 15:00:31 +0100 Wietse Venema wrote: >>>> >>>> - Write a tool that TRANSFORMS fqrdns.pcre.txt so that it can be >>>> used by a different mail system. That would immediately make >>>> fqrdns.pcre.txt useful for a lot more people. >>> >>> Hmm... the common ground is looking up RBLs. A quite daunting target. >> >> Maybe not. It's already been done, 5+ years ago: >> >> http://www.corpit.ru/pipermail/rbldnsd/2009q3/001036.html >> >> AFAICT the patch was never accepted into vanilla rbldnsd. However, >> Enemies List still uses it to this day on their commercial rbldnsd >> mirrors. The EL implementation does extensive classification and is >> probably more complex than the generic regex implementation I'd guess >> you'd be considering. Simply reading the rbldnsd patch linked in the >> list archive post above may give you a big head start. >> >> More information available at: >> http://enemieslist.com/ > > Thank you Stan. That patched rbldnsd seems to be easier to > implement, as it would be enough to transform the data, as Wietse > said. The old package (.ru link above) contains 59 patterns that may > correspond to some of the 1523 REJECT patterns in your file[1]. For > example, they have: > > > BRComAjato_01:[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.user\.ajato\.com\.br:127.0.0.3:cable > > instead of > > /^([12]?[0-9]{1,2}\.){4}user\.ajato\.com\.br$/ REJECT Generic - > Please relay via ISP (ajato.com.br) > > Besides a longer invocation path, rbldnsd doesn't seem to handle > conditionals. So the tradeoff is between ease of implementation and > efficiency (as usual.) > > EL talk of "32K rDNS naming conventions" for their licensed dataset.
It's over 100K now. > Did you try it? I've never used it. The last Steven and I spoke about it the Postfix interface wasn't sufficiently baked. That was a couple of years ago. >> I don't know if Steven wrote the rbldnsd patch or not but he's the EL >> lead and project creator. I might be able to get you in touch with him >> if you hit any serious roadblocks, should you decide to embark on this. > > Steven has a more recent open source package[2] written for Sendmail > in m4, which I didn't dare to look at. I'm writing to EL's > evaluation address to learn more. (They also market some other > intriguing mail features.) TTBOMK the open source packages, Sendmail and qpsmtpd anyway, are the client code which takes action based on the data returned by the rbldnsd server. AFAIK the experimental Postfix and Exim versions use a flat file instead of a DNS query to the rbldnsd server. Steven can tell you more. > [1] http://www.hardwarefreak.com/fqrdns.pcre.txt > [2] https://github.com/schampeo/EnemieslistM4 -- Stan