If you
are using Postfix you can do something like this in header_checks
:
/^X-Spam-Level:
\*{20}.*/ REJECT Spam content
rejected.
(Test the
syntax, but I think the above is correct or very very
close.)
header_checks is
run as a Postfix process AFTER SA is done with the message, so you can use
it to detect SA spam headers and take an action.
Rather than send a
message back (which could make you a spammer) it would be better to just send it
to an admin account for further review or just delete it.
/^X-Spam-Level: \*{20}.*/
REDIRECT [EMAIL PROTECTED]
-----Original Message-----
From: Alex Jalali [mailto:[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 2:49 AM
To: users@spamassassin.apache.org
Subject: Rejecting emails in procmailrc?Hello,
How can I reject mails that have a high score along with a reason message instead of moving them to a folder?
I am using this in procmailrc to send spams to junk mail folder which works fine.
:0:
* ^X-Spam-Status: Yes
/${HOME}/'Junk E-mail'Now I need something like this to reject mails with score 16 or more
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
?????? "550 Your email is in our spam list. To be removed, write to us at xxx"
I have setup spamassasin 3 with sendmail and procmail on redhat 9