You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Bill <bi...@phoenixmi.com> on 2005/03/30 18:15:05 UTC

Anyway to have SA drop high spam & tag other?

Hi,

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


Re: Anyway to have SA drop high spam & tag other?

Posted by John Andersen <js...@pen.homeip.net>.
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

Re: Anyway to have SA drop high spam & tag other?

Posted by Robert Menschel <Ro...@Menschel.net>.
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




Re: Anyway to have SA drop high spam & tag other?

Posted by Menno van Bennekom <mv...@xs4all.nl>.
> 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