----- Original Message ----- 
From: Ascensionwow
To: users@spamassassin.apache.org
Sent: Wednesday, March 15, 2006 8:10 AM
Subject: First timer

Bear with me, as it has been 7 years since I've used a mailing list like
this.

My question is very simple, and yet I can't seem to find an answer on it.

I have SpamAssassin sending emails flagged as spam to an email box setup as
my "spam folder." This allows me to double check that nothing legit is not
going through.

My question is whether i can have SpamAssassin automatically delete certain
Spam emails over a certain rating?

For instance, if I have my rating set at 4.0, I want spam that comes in at
10.0 to be deleted, and all emails that come in with a rating between 4.0
and 10.0 to be sent to my spam folder. Is this possible? And how?

Thanks a bunch.

----------------------
I sent the previous blank reply by mistake.

I use cPanelX and Exim and filter the way you want to using an Exim Filter.

I have it installed in /etc/vfilters for my domain name instead of the
default blank file.

Following is a filter for deleting messages scored 10.0 or higher.  For your
setup, your SpamAssassin threshold score setting would remain at 4.0, and
the filter would handle the higher scoring messages by trashing them.  There
is no recovering deleted messages, so be sure this is what you want to do
with them!

# Exim filter

if error_message then finish endif

if
   $h_X-Spam-Status: begins "Yes"
then
#  Spam score 10 or higher
   if $h_X-Spam-Level: begins "\*\*\*\*\*\*\*\*\*\*"
   then save "/dev/null" 660
   endif
endif

# this file is saved in /etc/vfilters and
# can be overwritten by cpanel mail filters

Tom Green
--
Expertsites, Inc.


  • Re: First timer Expertsites, Inc.

Reply via email to