Virus beskyttelse på en Axigen Mailserver med ClamAV på OpenSUSE 11.*

Stop freshclam og ClamAV med at fra shell skrive:

/etc/init.d/clamd stop

/etc/init.d/freshclam stop

Skabe et directory for logfiler

mkdir  /var/log/clamav

I /etc/clamd.conf samt /etc/freshclam.conf rette til stier og ejer enligt neden:

## Config file for the Clam AV daemon
## Please read the clamd.conf(5) manual before editing this file.
##

# Uncomment this option to enable logging.
# LogFile must be writable for the user running daemon.
# A full path is required.
# Default: disabled
LogFile /var/log/clamav/clamd.log

# Path to the database directory.
# Default: hardcoded (depends on installation options)
DatabaseDirectory /var/lib/clamav

# Run as another user (clamd must be started by root for this option to work)

# Default: don’t drop privileges
User axigen

I freshclam.conf

##
## Config file for freshclam
## Please read the freshclam.conf(5) manual before editing this file.
##

# Path to the database directory.
# WARNING: It must match clamd.conf’s directive!
# Default: hardcoded (depends on installation options)
DatabaseDirectory /var/lib/clamav

# Path to the log file (make sure it has proper permissions)
# Default: disabled
UpdateLogFile /var/log/clamav/freshclam.log

# By default when started freshclam drops privileges and switches to the
# “clamav” user. This directive allows you to change the database owner.
# Default: clamav (may depend on installation options)
DatabaseOwner axigen

Skift ejerskab med

chown -R axigen:axigen /var/log/clamav

og

chown -R axigen:axigen /var/lib/clamav

Start ClamAV og freshclam fra shell

/etc/init.d/clamd start

/etc/init.d/freshclam start

Tilse at alt et opdateret med freshclam og  zypper update

ClamAV i Admin-Axigen
ClamAV i Admin-Axigen

I admin panelet Security Filtering/Antivirus Antispam Klik på “To restart the detection process click here.”

 

Har du en anden Distro så kigge på denne video

http://www.axigen.com/knowledgebase/video.php?id=174

Skriv et svar