On 10/31/2009 2:33 PM, Gene Heskett wrote:
On Saturday 31 October 2009, Yet Another Ninja wrote:
On 10/31/2009 2:16 PM, Gene Heskett wrote:
Greetings;
Does anyone have a procmail recipe that incorporates clamav into the
checks, and one that handles the clamav output to /dev/null the viri etc?
At least I assume clamav doesn't auto-delete, I've not yet studied all
the docs, but do have freshclam running apparently ok.
this works for me:
:0cW
:
|clamdscan --no-summary --stdout -
CLAMAV_CODE=$?
:0
* CLAMAV_CODE ?? 1
/dev/null
This looks like what I had in mind. But since I don't have that part checked
out yet, would it then delete the mail because clamdscan had an error? I'll
enable the second after the first is working. :)
my recipe was stolen from this
see
http://wiki.clamav.net/bin/view/Main/ClamAndProcmail