Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: missing edit-log entry for this revision

...

Wiki Markup
An easy way to use the ClamAV daemon with \[http://www.procmail.org/ procmail\] is to add this to your procmailrc file:

No Format
:0wc
| clamdscan -

:0efw# Scan for viruses
:0
VIRUS=|clamdscan --mbox --disable-summary --stdout -

:0fw
* VIRUS ?? ^.*: \/.* FOUND
| formail -b -f -t -I "X-Clamav-status: Yes, $MATCH"

:0Efw
| formail -b -f -t -I "X-Clamav-status: yesNo"

This will add "X-Clamav-status: yes" to anything message that's found to have a virus, or if clamdscan gives an error.. Since "clamdscan" uses the daemon, you'll need to enable Scan{{`Mail, Scan}}Archive and StreamSaveTo`Disk in clamav.conf