Google Answers Logo
View Question
Q: Easy Procmailrc question ( Answered 5 out of 5 stars,   0 Comments )
Subject: Easy Procmailrc question
Category: Computers > Programming
Asked by: climbingboulder-ga
List Price: $3.00
Posted: 26 Apr 2003 08:34 PDT
Expires: 26 May 2003 08:34 PDT
Question ID: 195750
Below is my procmailrc file.  Now, it runs mail through spamassassin
(spamc), and spamassassin modifies the headers - adds ***** SPAM *****
in the subject line, adds a spam summary, and some new lines in the

I filter the spam into a spam mailbox based upon the subject line. 
Now, however, I want to redirect any spam to go to /dev/null.  How do
I do that?  Do I need to restart procmail/sendmail/spamassassin after
I do so?


      * < 256000
      | spamc

#     The following procmailrc(5) rule adds an X-DCC header to passing

:0 f
| /usr/local/bin/dccproc -ERw whiteclnt
Subject: Re: Easy Procmailrc question
Answered By: sycophant-ga on 26 Apr 2003 22:41 PDT
Rated:5 out of 5 stars

I also use Spamassassin and Procmail. Try adding the following to your
.procmailrc file after the spammail invokation:

* ^X-Spam-Status: Yes

That should work fine. You shouldn't need to restart anything, the
procmail configuration is parsed each time procmail is run (ie.
everytime an email is received).

climbingboulder-ga rated this answer:5 out of 5 stars
Exactly what I needed.  Thanks!

There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy