www.nostalgix.org [ home ] [ about ] [ blog ] [ files ] [ pictures ] [ links ] [ contact ] Last update: Fri Jul 20 2007

Setting up ClamAV on FreeBSD Stable


System:
  1. build clamav from ports
  2. change user in /usr/local/etc/clamav.conf to mailnull
  3. test 'freshclam' fetching new virus-definitions    change /var/log/clamav/freshclam.log to 777
  4. 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"

  5. download trashbin script for your ~/.procmailrc from http://trashware.mirrorz.com/ and check the settings/paths in it
  6. 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

  7. start scripts in /usr/local/etc/rc.d/

Take a look at the ClamAV Homepage for more details.



vim

Valid XHTML 1.1!