On Wed, 2017-01-18 at 11:36 +0000, Pedro David Marco wrote: > I would like to write a simple plugin to check some local Databases > (cannot use rbldnsd) that takes long so making it asynchronous seems > the best idea.. > If possible, can anyone provide any skeleton, please? > Local databases SQL, i.e. MariaDB, PostgreSQL or Derby should be quite fast enough without going to the trouble of writing an asynchronous plugin. If you'd like a copy of the plugin I developed and use with PostgreSQL, just ask.
My solution uses my PostgreSQL based mail archive, working on the principle that anybody I'be previously sent mail to can be safely whitelisted, but of course it would work equally well if the database is a single table containing a list of addresses to be whitelisted and could be easily extended to handle blacklisting as well. Martin