* On 29/09/05 15:26 +0200, Laurent Wacrenier wrote: > Hi, > > I've released a small clamd client in sourceforge with the GPL > licence. It is designed to be used into procmail or maildrop filter > rules. It does not require clamav to be installed on the running host > (clamav just need to be installed on the server host). I use it since > about two years on my own mail without trouble. It should be > compilable on any POSIX architectures (devellopment plateform is > FreeBSD). > > You can downaload it from : > > http://sourceforge.net/projects/clamd-stream-cl/ > > > *** Procmail usage > > You may add something like this in your .procmailrc to seek virus and > archive them in a compressed folder (here junk/virus.gz) > > VIRUS=`clamd-stream-client -t 3 -d clamd-server-name` > > :0 > * VIRUS ?? . > { > :0fw > |formail -A "X-Virus: $VIRUS" > > :0W: > | gzip -9 >> junk/virus.gz > } > > *** Maildrop usage > > As Maildrop expect the filter commands returns true, you have to get > the virus name like this > > VIRUS=`/usr/local/bin/clamd-stream-client -d clamd.local ; true` > > Then check if the $VIRUS string is empty.
This app assumes that clamd is listening on a TCP socket! So, those using Unix sockets, beware ;) -Wash http://www.netmeister.org/news/learn2quote.html -- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington <[EMAIL PROTECTED]> Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ One advantage of talking to yourself is that you know at least somebody's listening. -- Franklin P. Jones _______________________________________________ http://lurker.clamav.net/list/clamav-users.html
