I run a mail hosting/relay box for a number of domains. I would like to offer spamassassin as a service, but some clients may not want to see the subject changed, etc. Is there a way to have spamassassin_2.61 check a list of domains, and not score e-mail or change the subject for mail addressed to a domain not in the list? My anti-virus sw clamav allows this, hoping spamassasin does. If not, I am willing to try to hack spamassassin to do this. Any pointers on where I should start?
I'd suggest doing this at the layer ABOVE spamassassin, and not do it within spamassassin itself at all.
The primitive whitelist support inside spamassassin is a hack at absolute best. The fundamental problem is that SA does not actualy handle the delivery envelope of the message, thus can't always tell who the message is really being delivered to if it's bcc'ed.
My suggestion is to do this at the procmail level.
Either that or use a tool like MailScanner, which has extreme flexibility in what virus/spam scanning combinations get activated for a particular message, and what actions to take (and yes, you can have different scanners and different actions on a per address or per domain basis for sender, recipient or both). It might be a bit of overkill, and a bit weird to get going, but it's definitely highly flexible and some of the features were added for this exact reason.
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk