Koozali.org: home of the SME Server

Procmail script - How to block attachment - bug in script

Gwenael

Procmail script - How to block attachment - bug in script
« 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

Michael Doerner

Re: Procmail script - How to block attachment - bug in scrip
« Reply #1 on: September 27, 2001, 01:50:25 PM »
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 .....

Gwenael

Re: Procmail script - How to block attachment - bug in scrip
« Reply #2 on: September 30, 2001, 03:10:04 PM »
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