On Wednesday 30 March 2005 08:02 pm, Robert Menschel wrote: > Hello Bill, > > Wednesday, March 30, 2005, 8:15:05 AM, you wrote: > > B> I'm running Spamassassin 3.0.2 on Linux in front of Oracle Collaboration > Suite. B> I am using > B> proxsmtp(http://memberwebs.com/nielsen/software/proxsmtp/) to scan > B> mail and then pass it along to oracle. > > B> My question is... > > B> I know that you can have spamassassin exit with a non-zero code if it > detects B> spam by using the 'spamassasin -e' option. Does anyone know if > it is possible B> to have SA tag spam and not exit as usual, but exit with > a non-zero code if say B> the score is over 10? > > B> The other options I came up with is to either write script to check the > level, B> or have SA run twice...once to tag and once to drop. > > Or, since SA is only a filter, have the SA output feed a script which > a) copies input to output unchanged, and > b) interprets the score from the X-Spam-Status header, and then exits > with int(score) (0 if negative). > > Bob Menschel
SA doesn't drop mail. It simply tags it. If you want to dev null mail, that's what procmail is for. -- _____________________________________ John Andersen
pgpnygpNNqhFA.pgp
Description: signature