# spam.rc: procmail recipes to filter spam with Razor and SpamAssassin # Remove malicious e-mail attachments :0 B * $ content-[^:]+:${WS}*.+(\<)*(file)?name${WS}*=${WS}*\/.+\.(pif|scr|exe|com)\"?$ .dh-spam/ :0 B * ^Content-Type: .*;$[ ]*(file)?name=\"?.*\.(pif|scr|exe|com)\"?$ .dh-spam/ :0 B * ^Content-Type: .*; [ ]*(file)?name=\"?.*\.(pif|scr|exe|com)\"?$ .dh-spam/ # RAZOR # First check message with razor-check; next rule is chained with 'a' flag :0 Wc | razor-check # Dump tagged messages into special spam folder :0 Wa .dh-spam/ # SPAMASSASSIN :0fw: spamassassin.lock | $HOME/sausr/local/bin/spamassassin # Dump tagged messages into special spam folder :0 * ^X-Probable-Spam: yes .dh-spam/ :0 * ^X-Old-X-Probable-Spam: yes .dh-spam/ :0 * ^X-Spam-Status: Yes .dh-spam/