You could of course pipe the mail to a script like perl or awk etc. and
do the real work there.
:0fh
* ^X-Spam-Level: \*{20}.*
| /home/myname/mycoolprogram.pl
Another alternative is use mimedefang and write a rule in
mimedefang_filter filter_end() to do the job.
Greg Allen wrote:
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]
<mailto:[EMAIL PROTECTED]>
-----Original Message-----
*From:* Alex Jalali [mailto:[EMAIL PROTECTED]
*Sent:* Monday, February 27, 2006 2:49 AM
*To:* [email protected]
*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
--
----------------
Barton L. Phillips
Applied Technology Resources, Inc.
Tel: (818)652-9850
Web: http://www.applitec.com