On Thu, 2005-09-29 at 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. > > _______________________________________________ > http://lurker.clamav.net/list/clamav-users.html
Thank you! I have been looking for something like this for awhile to integrate into a qmail setup. Jay _______________________________________________ http://lurker.clamav.net/list/clamav-users.html