Martin Gregorie wrote:
I have a Postgres database containing an automatically generated list of
addresses to which I have sent at least one mail message. I would like
to whitelist mail received from any of them.
You could write a plugin that queries your database for this info.
Or, if the list isn't too big, regularly generate a rule set for
SpamAssassin.
I've read through what I believe to be the relevant documentation on the
SA website but have seen no mention of rules using database access:
I do have a couple of plugins that uses database access at
<http://whatever.frukt.org/spamassassin.text.shtml>.
Those plugins use MySQL or SQLite (but haven't been tested with
SQLite in recent memory), but as they use DBI that shouldn't make
a big difference to Postgres.
Regards
/Jonas
--
Jonas Eckerman, FSDB & Fruktträdet
http://whatever.frukt.org/
http://www.fsdb.org/
http://www.frukt.org/