On Tue, 23 May 2006, Elliot Foster wrote:
> Were you looking to save time/cpu with the first pass before hitting all
> of the tests?
No. Each run would be for specific reasons. One would be the
normal anti-spam stuff, and the other would be more the opposite (i.e. a
reason to whitelist). It's not an issue of saving time, just one of
repurposing spamassassin to do the opposite job (score something to allow
it through - or even other purposes). Although I could start a .cf file
with negative scores for my other purposes, it would be competing with the
anti-spam purpose. I think they should be separate, especially if I can do
a short circuit on the rest of the tests.
My problem would be how to run two spamassassin plugins with a
different set of configurations (two spamd instances, or one as a user
rather than with systemwide values?).
> Some of the items above (headers, subject, domain recipients) would be easy to
> do as a qpsmtpd plugin. The body would be a more tricky proposition, as you
> mentioned (URIs across boundaries) in your email.
>
> The headers would be an easy plugin, though. Easier, at least, than modifying
> spamassassin (I think.)
This is my reason for considering a 2nd spamassassin - the work
has already been done.
> If you wanted to avoid running spamassassin if the checks were discovered,
> simply store a flag in the transaction notes:
Yes, I do this for my other items unique to my site.
So, I am still back to the main question: What is the best way to
implement this functionality?
If I write my own, I'm sure I won't have as much functionality as
I want and know I could have with spamassassin.
If I use spamassassin, do I run a 2nd spamd - probably fairly
easy. I've got 4Gig of ram, and not too concerned about that issue.
Or, is there a way to run my special configuration as a user? I'd
need to make sure that all of the systemwide scores are zero - I would
probably have to find everything with a score and explicitly set it to
zero. And set up a .cf with the special stuff I'm looking for in the user
home directory. But how would I have the pluging submit the message to the
same spamd, and have it run the 'user' configuration.