On Fri, 13 Dec 2002, Ronan Lucio <[EMAIL PROTECTED]> wrote >Chris, > >Please, clearify just this point to me > >> Basically, I had the code below in my virus_scan() routine. It was then >> necessary to set ONE of $clamd_sockname (set to path to unix socket), >> $clamd (set to anything you like - will use INET socket), OR $clamscan >> (path to clamscan - uses clamscan), depending on your preference. Only >> set a value for ONE of these!!! > >I'd like to Amavisd calls clamd and if it dies, calls clamscan. > >Should I add in /usr/local/etc/amavisd.conf: >$clam_sockname = ""; >$clamd = ""; >#clamscan = "/usr/local/bin/clamscan"; > >Or should I add just: >#clamscan = "/usr/local/bin/clamscan"; > >I could see in your e-mail that it has a flow control "if $clamd". >Will it calls clamd with the sets above? Once clamd isn't declared. > The code I supplied does fallback to clamscan if clamd fails.
You should NOT specify a value for $clamscan in amavisd.conf - if you do clamscan will always be called, not just if clamd fails. Either define $clam_sockname as the path to the UNIX socket, or define $clamd as anything you like, depending whether you are using clamd with UNIX or INET sockets. -- Chris Hastie --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
