[CLUE-Tech] procmail addition

Mike Staver staver at fimble.com
Fri Aug 22 10:53:15 MDT 2003


Yeah, I just tried it again, and it gets through, this time using 
Outlook.  Here is what my .procmailrc file looks like:

:0 B
* ^ *Content-Disposition: attachment;
* filename=".*\.(vbs|scr|pif|com|exe|bat|dll)"
/dev/null

:0fw * < 256000
| spamc

# This part says that if the spam score is greater than 25,
# we are almost 100% certain it's crap, so we instantly pitch it.
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
/dev/null

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
mail/spam

# Work around procmail bug: any output on stderr will cause the "F" in 
"From"
# to be dropped.  This will re-add it.
:0
* ^^rom[ ]
{
  LOG="*** Dropped F off From_ header! Fixing up. "

  :0 fhw
  | sed -e '1s/^/F/'
}



Jeremiah Stanley wrote:

>>Wow, I feel dumb.  I just tried sending a test mail to myself now 
>>containing a .dll file, and it didn't get sent do /dev/null.  Back to 
>>the drawing board :(
>>    
>>
>
>Matt, this rule worked just fine for me when I tested it. What program
>did you use to attach the file?
>
>  
>

-- 

                                -Mike Staver
                                 staver at fimble.com
                                 mstaver at globaltaxnetwork.com





More information about the clue-tech mailing list