From LQWiki
Jump to: navigation, search

clamassassin is a shell script for filtering an email message through ClamAV, using either the command-line scanner clamscan or the client clamdscan. It adds message headers according to the disposition of the mail in a manner similar to Spamassassin, making it convenient to call through Procmail.

Sample procmailrc file

An /etc/procmailrc file passing mail through clamassassin followed by spamc.


:0 fw
| /usr/local/bin/clamassassin

* ^X-Virus-Status: Yes

:0 fw
| /usr/local/bin/spamc -U /var/run/spamd.socket

* ^X-Spam-Status: Yes

External links