Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: converted to 1.6 markup

Does SpamAssassin filter email-borne viruses as well as spam?

Wiki MarkupNo. [SpamAssassin] is focussed on identifying spam, and not viruses. The mechanism of scanning for viruses is different, and software tailored for virus scanning is much much better at this task. It is possible that in future versions that SA will include hooks to call out to external virus scanners, but SA itself is unlikely to attempt such functionality itself. You may be interested in \[http://www.clamav.net/ ClamAV\], a GPL virus scanner.

Wiki Markup
An easy way to use the ClamAV daemon with \[http://www.procmail.org/ procmail\]:

There is a third-party plugin for SpamAssassin to call ClamAV and add a score based upon its result (see CustomPlugins).

Alternatively, an easy way to use the ClamAV daemon with procmail is to add this to your procmailrc file:

No Format

# Scan for viruses
:0
VIRUS=|clamdscan --no-summary --stdout -

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

:0Efw
No Format

:0wc
| clamdscan -

:0efw
| formail -b -f -t -I "X-Clamav-statusStatus: yesNo"

This will add "X-Clamav-status: yes" to anything any message that isn't s found to be virus free.have a virus. Since "clamdscan" uses the daemon, you'll need to enable ScanMail, ScanArchive and StreamSaveToDisk in clamav.conf