procmail
[Top] [All Lists]

Re: Filtering attachment

2002-01-13 20:39:32
Hi Cesar, 

It is possible and I have learn how to do it from some friends here.
With their guidance, I did this in my personal $HOME/.procmailrc

### Procmail Runtime Configuration
### File located in "/home/moonshi/.procmailrc"
### Created on 07-Jan-2002
### Created by moonshi(_at_)moonshi(_dot_)com

### Start of ".procmailrc" runtime configuration varibles
SHELL=/bin/bash
LINEBUF=4096
PATH=/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/bin:/home/moonshi/bin:
VERBOSE=yes
LOGABSTRACT=all
MAILDIR=$HOME/mail
LOGFILE=$HOME/procmail/procmail.log
FORMAIL=/usr/bin/formail
SENDMAIL=/usr/sbin/sendmail

### Nuke duplicate messages
:0 Wh: msgid.lock
| $FORMAIL -D 8192 msgid.cache

### Trap virus
:0D:
* ^Subject:[[tab] ]+ILOVEYOU
virus

:0:
* ^Content-Type: MULTIPART/MIXED
{
   :0B
   *^Content-Disposition: (attachment|inline);
   *filename=\/".*\.(bat|bif|exe|pif|com|vbs|cpl|scr|swf)"
   *filename=.*mmsn_offline.htm$
   virus
}

### End of procmailrc virus trap.

Please try it and let us know. Always send the "procmail.log" files
inline if you are reporting errors or problems and don't forget to set
the ".procmailrc" file to "chmod 600".

--Moonshi


On Fri, 2002-01-11 at 04:43, Cesar Suito wrote:
Hi,

I am using Sendmail on my Mail Server, I want to know if I can filter .exe,
.com,... attached files using Procmail.

Thankyou

Cesar Suito



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