I am trying to set up SpamAssassin to filter incoming mail at a medium-sized site (less than 200 users). We will not be moving from our current final MTA/POP/IMAP product, so SpamAssassin will be running on a relay between the outside and the final MTA. I have set up Sendmail as the relay, and using a spamass-milter with spamc/spamd I can filter all incoming mail (under testing conditions) nicely.
However, I have some requirements that the system is not living up to. As I said, I can filter _all_ incoming mail, but what I want to do is have an "opt-in" filter. I want to have a list of email _recipients_ for whom mail is SpamAssassinated, but all other recipients should get their mail unfiltered. The first issue, having an opt-in list of users, was not to hard to change. I just went into EvalTests.pm and reversed the meaning of the 'all_spam_to' so that only users _in_ the list got filtered and no one else does. But after looking a bit closer at the code, I realized this still does not do what I want. 'all_spam_to' deals with the 'To:' and 'Cc:' lines in the header and not the recipient address. In fact, as far as I can tell, SpamAssassin does not currently have any way to deal with the 'mail from:' or 'rcpt to:.' Of course when SpamAssassin is run by the final recpient on POP/IMAP mail, this information is not available or implicit, but it is extremely useful on an MTA and vital for my requirements. Has anyone hacked SpamAssassin and/or spamass-milter up to deal with recipients? Alternatively, is there a way to get sendmail to only send mail to certain recipients through the milter (this would actually be even better)? As far as I can tell, sendmail pipes _everything_ to the milters. And I still haven't touched the issue of what to do when a single mail comes in which has some recipients who should be filtered for and some who should not. Just for the record, I tried spamproxyd, and actually had that up and running pretty well too. It was fairly straightforward to hack it up to (a) work at all and (b) filter recipients the way I wanted to. During my testing, however, I found out that contrary to the documentation the Net::SMTP::Server module is not actually a standards compliant server. That kind of kills off that as a possibility. Thanks for any help. -- Crist J. Clark | [EMAIL PROTECTED] | [EMAIL PROTECTED] http://people.freebsd.org/~cjc/ | [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek No, I will not fix your computer. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk