Try:

"/usr/local/bin/clam.sh --no-summary -i -l %reportFile% -r %targetDir%, /private/tmp/clamav, true, 1"

I actually made a wrapper called clam.sh so I could troubleshoot at first:

#!/bin/bash
echo $* >> /private/tmp/clam.log
/usr/local/bin/clamscan $*


Works very well except that everyone once in a while I have to clean out a message from the spool because the report generated by clamav causes one of the fields to exceed the database's field width -- this may be just specific to me, haven't bothered to troubleshoot further.


You don't need the mbox option.

Regards,
Russ





Hello everyone,
Has anyone worked on integrating Clam antivirus and JAMES to scan incoming
and outgoing email for virus? I am have trouble integrating the two. I am
using Vincenzo's matcher class IsInfected. I think the files are not being
downloaded properly because if i use the code


-----------------------------------------------
<mailet match="IsInfected=/usr/local/bin/clamscan -r --mbox, /tmp/checkvirus/
*.tt, true, 1" class="ToProcessor">
<processor> virus </processor>
</mailet>
---------------------------------------------
I get java exception saying file not found. and If i use the following


------------------------------------------------
<mailet match="IsInfected=/usr/local/bin/clamscan -r --mbox, /tmp/checkvirus,
true, 1" class="ToProcessor">
<processor> virus </processor>
</mailet>
-----------------------------------------------


everything comes through. Is there something I am missing? do I need to
configure anything else?

thanks


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to