Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Gwenael on September 27, 2001, 12:21:21 PM

Title: Procmail script - How to block attachment - bug in script
Post 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
Title: Re: Procmail script - How to block attachment - bug in scrip
Post by: Michael Doerner 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 .....
Title: Re: Procmail script - How to block attachment - bug in scrip
Post by: Gwenael 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