Listing 1 clamav.conf
# Use system logger (can work together with LogFile)
LogSyslog
# This option allows you to save the process identifier of the
# listening daemon (main thread) ñ good for run control scripts
PidFile /var/run/clamd.pid
# Optional path to the global temporary directory.
TemporaryDirectory /tmp
# Path to the virus definition database directory.
# Default is the compile-time defined directory
DatabaseDirectory /usr/local/var/clamav
# Path to the Unix domain-socket used for communication with clamav.
LocalSocket /usr/local/var/clamav/clamd
# Remove stale socket after unclean shutdown
FixStaleSocket
# By default, bind to INADDR_ANY, probably not wise.
# Enable the following to provide some degree of protection
# from the outside world.
TCPAddr 127.0.0.1
# Close the connection if this limit is exceeded
# Set this to limit A/V memory consumption
StreamMaxLength 10M
# Maximal number of a threads running at the same time.
# Default is 5, and it should be sufficient for a typical workstation.
# You may need to increase threads number for a server machine
MaxThreads 10
# Maximal depth the directories are scanned at
MaxDirectoryRecursion 15
# Run as selected user (clamd must be started by root).
# By default it doesn't drop privileges.
User amavis
# Uncomment this option if you are planning to scan mail files.
ScanMail
# Attempt to scan attached archive files
ScanArchive
# Files in archives larger than this limit won't be scanned.
# Value of 0 disables the limit.
# WARNING: Due to the unrarlib implementation, whole files (one by one)
# in RAR archives are decompressed to the memory. That's why never
# disable this limit (but you may increase it of course!)
ArchiveMaxFileSize 10M
# Archives are scanned recursively - e.g. if Zip archive contains RAR
# file, the RAR file will be decompressed, too (but only if recursion
# limit is set at least to 1). With this option you may set the
# recursion level.
# Value of 0 disables the limit.
ArchiveMaxRecursion 5
# Number of files to be scanned within archive.
# Value of 0 disables the limit.
ArchiveMaxFiles 1000
# Mark potential archive bombs as viruses (0 disables the limit)
ArchiveMaxCompressionRatio 200 |