clamav-devel/docs/man/clamd.conf.5.in
3697c428
 .\" Manual page created by Tomasz Kojm, 20021001.
c6dbfbcb
 .TH "clamd.conf" "5" "September 27, 2004" "Tomasz Kojm" "Clam AntiVirus"
3697c428
 .SH "NAME"
 .LP 
c6dbfbcb
 \fBclamd.conf\fR \- Configuration file for Clam AntiVirus Daemon
3697c428
 .SH "DESCRIPTION"
 .LP 
 clamd.conf configures the Clam AntiVirus daemon, clamd(8).
 .SH "FILE FORMAT"
c6dbfbcb
 The file consists of comments and options with arguments. Each line that starts with a hash (\fB#\fR) symbol is a comment. Options and arguments are case sensitive and of the form \fBOption Argument\fR. The (possibly optional) arguments are are of the following types:
3697c428
 .TP 
 \fBSTRING\fR
 String without blank characters.
 .TP 
 \fBSIZE\fR
c6dbfbcb
 Size in bytes. You can use 'M' or 'm' modifiers for megabytes and 'K' or 'k' for kilobytes.
3697c428
 .TP 
 \fBNUMBER\fR
 Unsigned integer.
 .SH "DIRECTIVES"
 .LP 
c6dbfbcb
 When an option is not used (hashed or doesn't exist in the configuration file) clamd takes a default action.
3697c428
 .TP 
 \fBExample\fR
 If this option is set clamd will not run.
 .TP 
 \fBLogFile STRING\fR
 Enable logging to selected file.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBLogFileUnlock\fR
 Disable a system lock that protects against running clamd with a same configuration file multiple times.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBLogFileMaxSize SIZE\fR
c6dbfbcb
 Limit the size of a log file. The logger will be automatically disabled  if the file is greater than SIZE. Value of 0 disables the limit.
3697c428
 .br 
 Default: 1M
 .TP 
 \fBLogTime\fR
 Log time with each message.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBLogClean\fR
 Log clean files.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBLogSyslog\fR
 Use system logger (can work together with LogFile).
 .br 
c6dbfbcb
 Default: disabled
 .TP 
 \fBLogFacility\fR
 Specify the type of syslog messages \- please refer to 'man syslog' for facility names.
 .br 
 Default: LOG_LOCAL6
3697c428
 .TP 
 \fBLogVerbose\fR
 Enable verbose logging.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBPidFile STRING\fR
c6dbfbcb
 Save the process identifier of a listening daemon (main thread) to a specified file.
3697c428
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBDatabaseDirectory STRING\fR
 Path to a directory containing database files.
 .br 
c6dbfbcb
 Default: @DBDIR@
3697c428
 .TP 
 \fBLocalSocket STRING\fR
 Path to a local (Unix) socket the daemon will listen on.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBFixStaleSocket\fR
 Remove stale socket after unclean shutdown.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBTCPSocket NUMBER\fR
 TCP port number the daemon will listen on.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBTCPAddr STRING\fR
 TCP address to bind to. By default clamd binds to INADDR_ANY.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBMaxConnectionQueueLength NUMBER\fR
 Maximum length the queue of pending connections may grow to.
 .br 
 Default: 15
 .TP 
 \fBMaxThreads NUMBER\fR
 Maximal number of threads running at the same time.
 .br 
c6dbfbcb
 Default: 10
3697c428
 .TP 
c6dbfbcb
 \fBReadTimeout NUMBER\fR
 Waiting for data from a client socket will timeout after this time (seconds).
3697c428
 .br 
c6dbfbcb
 Default: 120
3697c428
 .TP 
 \fBMaxDirectoryRecursion NUMBER\fR
c6dbfbcb
 Maximal depth directories are scanned at.
3697c428
 .br 
c6dbfbcb
 Default: 15
3697c428
 .TP 
 \fBFollowDirectorySymlinks\fR
c6dbfbcb
 Follow directory symlinks.
3697c428
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBFollowFileSymlinks\fR
 Follow regular file symlinks.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBSelfCheck NUMBER\fR
c6dbfbcb
 Do internal sanity checks every NUMBER seconds.
3697c428
 .br 
c6dbfbcb
 Default: 1800
3697c428
 .TP 
 \fBVirusEvent COMMAND\fR
 Execute the COMMAND when virus is found. In the command string %v will be replaced by a virus name.
 \fR
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
f9593781
 \fBExitOnOOM\fR
 Stop deamon when libclamav reports out of memory condition.
 .br 
 Default: disabled
 .TP 
 .TP 
3697c428
 \fBUser STRING\fR
c6dbfbcb
 Run as selected user.
3697c428
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBAllowSupplementaryGroups\fR
c6dbfbcb
 Initialize supplementary group access (clamd must be started by root).
3697c428
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBForeground\fR
c6dbfbcb
 Don't fork into background.
3697c428
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBDebug\fR
c6dbfbcb
 Enable debug messages from libclamav.
3697c428
 .TP 
 \fBStreamMaxLength SIZE\fR
 Close the connection when this limit is exceeded.
 .br 
c6dbfbcb
 Default: 10M
 .TP 
 \fBDisableDefaultScanOptions\fR
 By default clamd uses scan options recommended by libclamav. This option disables recommended options and allows you to enable selected options. DO NOT ENABLE IT unless you know what you are doing.
 .br 
 Default: disabled
3697c428
 .TP 
 \fBScanPE\fR
 PE stands for Portable Executable \- it's an executable file format used in all 32\-bit versions of Windows operating systems. This option allows ClamAV to perform a deeper analysis of executable files and it's also required for decompression of popular executable packers such as UPX.
 .br 
c6dbfbcb
 Default: enabled
3697c428
 .TP 
 \fBDetectBrokenExecutables\fR
c6dbfbcb
 With this option clamd will try to detect broken executables and mark them as Broken.Executable.
3697c428
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBScanOLE2\fR
 Enables scanning of Microsoft Office document macros.
 .br 
c6dbfbcb
 Default: enabled
3697c428
 .TP 
 \fBScanHTML\fR
 Enables HTML detection and normalisation.
 .br 
c6dbfbcb
 Default: enabled
3697c428
 .TP 
 \fBScanMail\fR
 Enable scanning of mail files.
 .br 
c6dbfbcb
 Default: enabled
3697c428
 .TP 
 \fBMailFollowURLs\fR
 If an email contains URLs ClamAV can download and scan them. \fBWARNING: This option may open your system to a DoS attack. Never use it on loaded servers.\fR
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBScanArchive\fR
 Enable archive scanning.
 .br 
c6dbfbcb
 Default: enabled
3697c428
 .TP 
88ab7aee
 \fBScanRAR\fR
 Enable scanning of RAR archives. Due to license issues libclamav does not support RAR 3.0 archives (only the old 2.0 format is supported). Because some users report stability problems with unrarlib it's disabled by default and must be enabled in the config file.
 .br 
 Default: disabled
 .TP 
3697c428
 \fBArchiveMaxFileSize SIZE\fR
 Files in archives larger than this limit won't be scanned. Value of 0 disables the limit.
 .br 
 Default: 10M
 .TP 
 \fBArchiveMaxRecursion NUMBER\fR
 Limit archive recursion level. Value of 0 disables the limit.
 .br 
 Default: 5
 .TP 
 \fBArchiveMaxFiles NUMBER\fR
 Number of files to be scanned within archive. Value of 0 disables the limit.
 .br 
 Default: 1000
 .TP 
 \fBArchiveMaxCompressionRatio NUMBER\fR
c6dbfbcb
 Analyze compression ratio of every file in an archive and mark potential archive bombs as viruses (0 disables the limit).
3697c428
 .br 
c6dbfbcb
 Default: 250
3697c428
 .TP 
 \fBArchiveLimitMemoryUsage\fR
 Use slower decompression algorithm which uses less memory. This option affects bzip2 decompressor only.
 .br 
 Default: disabled
 .TP 
 \fBArchiveBlockEncrypted\fR
 Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR).
 .br 
 Default: disabled
 .TP 
 \fBArchiveBlockMax\fR
221a54da
 Mark archives as viruses (e.g RAR.ExceededFileSize, Zip.ExceededFilesLimit) if ArchiveMaxFiles, ArchiveMaxFileSize, or ArchiveMaxRecursion limit is reached.
3697c428
 .br 
 Default: disabled
 .TP 
 \fBClamukoScanOnLine\fR
 Enable Clamuko \- on\-access scanner for Linux. Dazuko must be already running.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBClamukoScanOnOpen\fR
c6dbfbcb
 Scan files on open.
3697c428
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBClamukoScanOnClose\fR
c6dbfbcb
 Scan files on close.
3697c428
 .br 
 Default: disabled.
 .TP 
 \fBClamukoScanOnExec\fR
c6dbfbcb
 Scan files on execute.
3697c428
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBClamukoIncludePath STRING\fR
c6dbfbcb
 Set the include paths (all files and directories in them will be scanned). You can have multiple ClamukoIncludePath directives but each directory must be added in a seperate line).
3697c428
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBClamukoExcludePath\fR
c6dbfbcb
 Set the exclude paths. All subdirectories will also be excluded.
3697c428
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .TP 
 \fBClamukoMaxFileSize SIZE\fR
 Don't scan files larger than SIZE.
 .br 
 Default: 5M
 .TP 
 \fBClamukoScanArchive\fR
 Enable archive scanning. It uses ArchiveMax* limits.
 .br 
c6dbfbcb
 Default: disabled
3697c428
 .SH "FILES"
 .LP 
 @CFGDIR@/clamd.conf
 .SH "AUTHOR"
 .LP 
 Tomasz Kojm <tkojm@clamav.net>
 .SH "SEE ALSO"
 .LP 
 clamd(8), clamdscan(1), clamscan(1), freshclam(1), sigtool(1), clamav\-milter(8)