procmail
[Top] [All Lists]

RE: Attachments filter - newbie

2003-05-26 00:25:27
I try to use the same filter as you have explained, but it's not
working. 

:0 B:
* ^Content-Type: (application/octet-stream|audio/x-wav)
* ^.*name=.*\.(bat|com|pif|scr|exe)
/dev/null

Sarav


-----Original Message-----
From: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE] On Behalf Of 
Birl
Sent: Friday, May 23, 2003 6:34 PM
To: Kenny Jarman
Cc: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: Attachments filter - newbie

kenny:  Date: Fri, 23 May 2003 08:49:39 +0100
kenny:  From: Kenny Jarman <kenny(_at_)picotech(_dot_)com>
kenny:  To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
kenny:  Subject: Attachments filter - newbie
kenny:
kenny:  I have this procmail filter for stopping "dangerous"
attachments:-
kenny:
kenny:  :0w B:
kenny:  * ! ^FROM_DAEMON
kenny:  * !^X-Loop: virusfilter
kenny:  * ^Content-Transfer-Encoding: base64
kenny:  * name=.*\.(pif|bat|vbs|js)
kenny:  | ($FORMAIL -r \
kenny:          -i"From: post(_at_)mydomain(_dot_)com" \
kenny:          -i"Subject: Returned email - file type rejected" \
kenny:          -A"X-Loop: virusfilter" ; \
kenny:          echo "This is an automated reponse .. blah ...blah")  \
kenny:  | $SENDMAIL
kenny:
kenny:  Question - what actually happens to the email?!  - I've tried
putting
kenny:  /dev/null or a mailbox onto the end of the filter but it is
always
kenny:  "skipped"


Im no procmail expect, but that seems like a lot just to trash potential
viruses.  I use this:


:0 B:
* ^Content-Type: (application/octet-stream|audio/x-wav)
* ^.*name=.*\.(bat|com|pif|scr|exe)
/dev/null


Besides, why you would want to keep the message if it was from the
Mailer-Daemon?  It's still a virus.


kenny:  Also, how do I avoid "Couldn't determine implicit lockfile" ?


Try  :0w B   instead.  I assume because there is no file/folder at the
end
of the ruleset, is the reason why a lockfile cannot be obtained.


-- Birl

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>