Aris Santillan wrote:
Hello Guys!!
Im new in setting up mailserver.. im using a Postfix (MTA).. and its working
fine now.. i want to make a email filter like blocking emails with attachment
of *.exe *.vbs and etc.. and i like to make a spam filter i hope it is possible
with procmail..
please help me step by step..
thanks a lot
See the man pages for definition of environment variables you have to
put at the beginning of your .procmailrc file.
#Look at the headers and filter on Content-type:
:0 H
*^Content-type: (multipart/mixed)
{
#
#Look at the body to find out if there is some .ocb or .vbs #or... attached,
if yes, send the mail to /dev/null
#
:0 B
*^Content-Disposition: (attachment|inline)
*filename=".*\.(ocx|vbs|wsf|shs|exe|com|bat|chm|pif|vbe|hta|scr)"
{
:0
/dev/null
}
#.... other rules
}
--
François Patte. UFR de mathématiques et informatique.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail