Setting up ClamAV on FreeBSD Stable
System:
- FreeBSD 4.10-PreRelease
- ClamAV v0.70
- Procmail v3.22
- Trashbin v0.12
- build clamav from ports
- change user in /usr/local/etc/clamav.conf to mailnull
- test 'freshclam' fetching new virus-definitions
change /var/log/clamav/freshclam.log to 777
- put those lines in /etc/rc.conf
clamav_clamd_enable="YES"
clamav_freshclam_enable="YES"
clamav_freshclam_flags="--checks=2 --datadir=/usr/local/share/clamav \
--daemon-notify=/usr/local/etc/clamav.conf"
- download trashbin script for your ~/.procmailrc from
http://trashware.mirrorz.com/
and check the settings/paths in it
- invoke script in your ~/.procmailrc
# 1. Run TrashScan
:0
* !^X-Virus-Scan:
| /path/to/trashscan
# 2. Filter tagged virus mails
:0:
* ^X-Virus-Scan: Suspicious
virus.mailbox
- start scripts in /usr/local/etc/rc.d/
Take a look at the ClamAV Homepage for more details.