exim
& postgresql
& is (except for adding the "triggering" recipient email
address patterns to the respective table) rather self-contained.
the documentation can be found in the article dynamic blacklisting with exim &
postgresql. feel free to use/improve/comment/... the ideas!