procmail
[Top] [All Lists]

Re: Attachments filter - newbie

2003-05-23 13:10:57
On Fri, 23 May 2003, Kenny Jarman wrote:

KJ> I have this procmail filter for stopping "dangerous" attachments:-
KJ>
KJ> :0w B:
KJ> * ! ^FROM_DAEMON
KJ> * !^X-Loop: virusfilter
KJ> * ^Content-Transfer-Encoding: base64
KJ> * name=.*\.(pif|bat|vbs|js)
KJ> | ($FORMAIL -r \
KJ>         -i"From: post(_at_)mydomain(_dot_)com" \
KJ>         -i"Subject: Returned email - file type rejected" \
KJ>         -A"X-Loop: virusfilter" ; \
KJ>         echo "This is an automated reponse .. blah ...blah")  \
KJ> | $SENDMAIL
KJ>
KJ> Question - what actually happens to the email?!
KJ>


Are you really using post(_at_)mydomain(_dot_)com because that is a real 
domain?  Or
have you typed it in as an example?  If so, did you type in the sendmail
line and miss out a -t?

Alan


( Please do not email me AS WELL as replying to the list.  Please
  address personal email to alan+1@ as lists@ is not read. A
  password autoresponder may be invoked if this email is very old. )


_______________________________________________
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>