thewetbeaversmileswhentickled.com

thewetbeaversmileswhentickled.com

 

Implementing procmail on plesk

Posted 2 years, 10 months ago on May 14, 2006 by yerma  Scripts

I had a need to implement procmail on a server running redhat and plesk so after a bit of googling I stumbled across this message:

I recently attempted to implement a (fairly simple I thought) procmail rule to
delete mail with a high SpamAssassin score. I'm wondering if someone would be
willing to tell me what I did wrong? The mails are deleted but I still get a
message with blank subject and blank body.

I'm using qmail and have spamassassin running as a replacement qmail-queue file
in /var/qmail/bin which then passes it on to the real qmail-queue file. I just
added in a pipe to send it through procmail before passing on to qmail-queue as
such:

spamc | procmail -m -p delete-high.rc | qmail-queue.original

The delete-high.rc file contains:

:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*
/dev/null

:0
|

SpamAssassin scoring includes a header with a quantity of * characters to
represent the score. If it's 12 or above in this example, I don't want to even
see it, dump it to /dev/null, don't even bother me with it.

I've also tried this on a different server in a .qmail file and still got the
blank emails each time a high-scoring spam was dumped.

I realize it's probably something very simple I've done wrong.. But then I have
never professed to be a procmail expert :)


The trackback URL for this post is http://www.thewetbeaversmileswhentickled.com/bblog/trackback.php/101/

Comments

No comments, be the first!
Add Comment ( to reply to a comment, click the reply link next to the comment )
Your Name Remember Me!
Email Address Make public
Website Make public
Comment Title
Comment
Submit Comment