clamav.conf(5)

NAME

clamav.conf - Configuration file for Clam AntiVirus Daemon

DESCRIPTION

The clamav.conf configures the Clam AntiVirus daemon, clamd(8).

FILE FORMAT
The file consists of comments and options with arguments. Each line that starts with a hash (#) symbol is ignored. Everything is case sensitive. Options are of the form Option Argument, some options don't use arguments. There are few types of the arguments:

STRING
    String without a blank characters.

SIZE
    Size in bytes. You can use a 'M' or 'm' modifiers for megabytes and a 'K' or 'k' for kilobytes.

NUMBER
    Unsigned integer.

OPTIONS

When some option is not used (hashed or doesn't exist in the configuration file), clamd takes a default action.

Example
    When this option is set, clamd will stop and ask you to modify the configuration file.

LogFile STRING
    Enable logging to a specified file.
    Default: disabled.

LogFileUnlock
    Disable the lock, that protects against running clamd with the same configuration multiple times. Enabling this option is not recommended.
    Default: disabled.

LogFileMaxSize SIZE
    Limit the size of the log file. When SIZE is reached, the logger is automatically disabled. Value of 0 disables the limit.
    Default: 1M

LogTime
    Log time information with each message.
    Default: disabled.

PidFile STRING
    Save the process identifier of the listening daemon (main thread) to a specified file.
    Default: disabled.

DataDirectory STRING
    Path to the directory containing database files.
    Default: hardcoded directory.

LocalSocket STRING
    Path to the local (Unix) socket the daemon will listen on.
    Default: disabled.

TCPSocket NUMBER
    TCP port number the daemon will listen on.
    Default: disabled.

MaxConnectionQueueLength NUMBER
    Maximum length the queue of pending connections may grow to.
    Default: 15

MaxThreads NUMBER
    Maximal number of a threads running at the same time.
    Default: 5.

ThreadTimeout NUMBER
    Stop thread-scanner after specified time (in seconds). Value of 0 disables the timeout.
    Default: 180

MaxDirectoryRecursion NUMBER
    Maximal depth the directories are scanned at.
    Default: disabled.

FollowDirectorySymlinks
    Follow a directory symlinks. You should have enabled directory recursion limit to avoid a potential problems.
    Default: disabled.

FollowFileSymlinks
    Follow a regular file symlinks.
    Default: disabled.

SelfCheck NUMBER
    Do internal checks every NUMBER seconds. In some cases it's able to fix a problem.
    Default: 3600

User STRING
    When started by root, drop priviledges to a specified user.
    Default: disabled.

Foreground
    Don't fork into background. Useful in debugging.
    Default: disabled.

ScanArchive
    Enable archive scanning.
    Default: disabled.

ArchiveMaxFileSize SIZE
    Files in archives larger than this limit won't be scanned. Value of 0 disables the limit.
    Default: 10M

ArchiveMaxRecursion NUMBER
    Limit archive recursion level. Value of 0 disables the limit.
    Default: 5

ArchiveMaxFiles NUMBER
    Number of files to be scanned within archive. Value of 0 disables the limit.
    Default: 1000

ClamukoScanOnLine
    Enable Clamuko - on-access scanner for Linux. Dazuko must be already running.
    Default: disabled.

ClamukoScanOnOpen
    Scan a file on open.
    Default: disabled.

ClamukoScanOnClose
    Scan a file on close.
    Default: disabled.

ClamukoScanOnExec
    Scan a file on execute.
    Default: disabled.

ClamukoIncludePath STRING
    Set the include paths (all files and directories in them will be scanned). You can have multiple ClamukoIncludePath options, but each directory must be added in a seperate option.
    Default: disabled. Required.

ClamukoExcludePath
    Set the exclude paths. All subdirectories are also excluded.
    Default: disabled.

ClamukoMaxFileSize SIZE
    Don't scan files larger than SIZE.
    Default: 5M

ClamukoScanArchive
    Enable archive scanning. It uses ArchiveMax* limits.
    Default: disabled.

FILES

/etc/clamav.conf
/usr/local/etc/clamav.conf

AUTHOR

Tomasz Kojm <zolw@konarski.edu.pl>

SEE ALSO

clamd(8), clamscan(1), freshclam(1), sigtool(1)