LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Procmail HowTo (https://www.linuxquestions.org/questions/linux-software-2/procmail-howto-574858/)

swamprat 08-05-2007 09:01 AM

Procmail HowTo
 
I'm trying to use procmail in between SpamAssassin and Squirrel mail.

I can't seem to get the procmail statements right. When SpamAssassin places the following in the subject of the message, I want the message to go to a special folder.

This is what's in the subject line. ***SPAM***

I would like to get procmail implemented so as to put these kind of messages in a special spam folder

Would anybody out there show me how to set the correct recipe and guide me to a really good tutorial.

Suse 10.2.

Tha

ilikejam 08-05-2007 11:35 AM

Hi.

spamassassin also includes a header in processed emails. It's probably easier to use that to filter on (and in the unlikely event that someone sends you a non-spam message with ***SPAM*** as the subject, it won't get filtered).

This is what I'm using:
Code:

:0fw:
* < 256000
| /usr/bin/spamc

:0:
* ^X-Spam-Status: Yes
<insert spam folder here>

Dave

swamprat 08-06-2007 10:39 AM

Thanks for your reply...I'm going to try that.


All times are GMT -5. The time now is 11:09 PM.