Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Gwenael on September 27, 2001, 12:21:21 PM
-
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
-
Hi,
I would ask that question on the procmail mailing list. There seems to be quite some activity and somebody there might be able to help?
Regards,
Michael Doerner
P.S.: I am interested in the solution .....
-
Thanks.... this script comes from a mailing list too but don't work with e-smith.
Because e-smith is not 100% redhat and the script must be 'adapted' to e-smith