On 1/18/2017 7:08 AM, Kiwi User wrote:
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


You should be able to use the other asynchronous plugins as a reference as well.

Reply via email to