I installed Procmail on users accounts (persons send exe, pps or other program with virus, ...) to block mail attachment but the filter doesn't work.
Anyone can debug my script?
This is the script:
:0 HBhb
* ^Content-Type:.*\.(exe|dot|vbs).*
| ( formail -rtk -p '| ' \
-A "X-Loop: $MYEMAIL" \
-A "Precedence: junk"; \
cat $HOME/badfile ) | $SENDMAIL -t -oi
where
$MYEMAIL = mailmaster@mycompany.com
$HOME = /.procmail (contain the file 'badfile': just a body warning message to mail to the sender)
Can you help me?
Thanks
Regards,
Gwenaƫl