> I'm running Spamassassin 3.0.2 on Linux in front of Oracle Collaboration > Suite. > I am using proxsmtp(http://memberwebs.com/nielsen/software/proxsmtp/) to > scan > mail and then pass it along to oracle. > > My question is... > > I know that you can have spamassassin exit with a non-zero code if it > detects > spam by using the 'spamassasin -e' option. Does anyone know if it is > possible > to have SA tag spam and not exit as usual, but exit with a non-zero code > if say > the score is over 10? > > The other options I came up with is to either write script to check the > level, > or have SA run twice...once to tag and once to drop. > > If anyone has any ideas that would be great, thanks in advance! > > --Bill
I don't know about proxysmtp, but it should be possible with amavisd that calls spamassassin/clamd/etc. You can decide there at what level (tag2_level) the spam gets marked in the subject and at what level (kill_level) it is handled as spam. So you could set tag2_level to 5 and kill_level to 10. After reaching kill_level you can configure what action has to be taken, pass the mail, bounce it, or discard it. A disadvantage is that the quarantine/archive is triggered by the kill_level so you won't have a spam-archive of the 5 to 10 spam-mails. Menno van Bennekom