SmatrCGI Logo
  
Home News Products Customers Contact us
     
Web Development

About
Portfolio
Prices
Contact us

Web Design

About
Portfolio
Prices
Contact us

Translating

About
Languages
Prices
Contact us


Documentation - Postfix HOWTO - description

Postfix installation HOWTO


ClamAv virus scanner installation

ClamAv is one the best GPL antivirus software at the moment. You can download updates every day, can upload new viruses signatures and even build your own viruses database. It's command prompt virus scanner that will be called by Amavis antivirus scanner described later. To read more information visit http://clamav.net.

Installation

Download latest version of ClamAv from http://prdownloads.sourceforge.net/clamav ClamAv scanners is run under user 'clamav' so we need to add this user and finish installation:
    adduser -s /sbin/nologin clamav
    tar -xzvf clamav*
    cd clamav*
    ./configure
    make
    make install
    
Then you need to add startup script into your Linux system. At Redhat it's /etc/init.d/clamd. You can take this script at http://smartcgi.com/dist/postfix/init.d/clamd.

At Redhat, add it into startup level by this way:
	chkconfig --add clamd
	chkconfig clamd on 
	chmod 711 /etc/init.d/clamd
	/etc/init.d/clamd start
	ps ax | grep clam
    
You should see clam running:
    xxxx  ?        S      0:00 /usr/local/sbin/clamd
    
Also, you need to add a command into cron for user clamav to update viruses database every day. It should be like following:
        
    0 4 * * * /usr/local/bin/freshclam --daemon-notify > /dev/null 2>&1
    
Copy clamav.conf from directory etc/ of your ClamAv distribution to /usr/local/etc/. Open at any editor and comment next line off:
    #Example
    

List of content



© Copyright 1999 - 2004 SmartCGI, Inc. All Rights Reserved.