docs/man/clamd.conf.5.in
3708f991
 .\" Manual page created by Tomasz Kojm, 20021001.
bf22198b
 .TH "clamd.conf" "5" "February 13, 2005" "Tomasz Kojm" "Clam AntiVirus"
3708f991
 .SH "NAME"
 .LP 
511eef51
 \fBclamd.conf\fR \- Configuration file for Clam AntiVirus Daemon
3708f991
 .SH "DESCRIPTION"
 .LP 
 clamd.conf configures the Clam AntiVirus daemon, clamd(8).
 .SH "FILE FORMAT"
511eef51
 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:
3708f991
 .TP 
 \fBSTRING\fR
 String without blank characters.
 .TP 
 \fBSIZE\fR
511eef51
 Size in bytes. You can use 'M' or 'm' modifiers for megabytes and 'K' or 'k' for kilobytes.
3708f991
 .TP 
 \fBNUMBER\fR
 Unsigned integer.
 .SH "DIRECTIVES"
 .LP 
511eef51
 When an option is not used (hashed or doesn't exist in the configuration file) clamd takes a default action.
3708f991
 .TP 
 \fBExample\fR
 If this option is set clamd will not run.
 .TP 
 \fBLogFile STRING\fR
 Enable logging to selected file.
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBLogFileUnlock\fR
 Disable a system lock that protects against running clamd with a same configuration file multiple times.
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBLogFileMaxSize SIZE\fR
511eef51
 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.
3708f991
 .br 
 Default: 1M
 .TP 
 \fBLogTime\fR
 Log time with each message.
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBLogClean\fR
 Log clean files.
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBLogSyslog\fR
 Use system logger (can work together with LogFile).
 .br 
511eef51
 Default: disabled
 .TP 
 \fBLogFacility\fR
 Specify the type of syslog messages \- please refer to 'man syslog' for facility names.
 .br 
 Default: LOG_LOCAL6
3708f991
 .TP 
 \fBLogVerbose\fR
 Enable verbose logging.
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBPidFile STRING\fR
511eef51
 Save the process identifier of a listening daemon (main thread) to a specified file.
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
67fb82ad
 \fBTemporaryDirectory STRING\fR
 Optional path to the global temporary directory.
 .br 
 Default: system specific (usually /tmp or /var/tmp).
 .TP 
3708f991
 \fBDatabaseDirectory STRING\fR
 Path to a directory containing database files.
 .br 
511eef51
 Default: @DBDIR@
3708f991
 .TP 
 \fBLocalSocket STRING\fR
 Path to a local (Unix) socket the daemon will listen on.
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBFixStaleSocket\fR
 Remove stale socket after unclean shutdown.
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBTCPSocket NUMBER\fR
 TCP port number the daemon will listen on.
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBTCPAddr STRING\fR
ed041f10
 TCP socket address to bind to. By default clamd binds to INADDR_ANY.
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .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 
511eef51
 Default: 10
3708f991
 .TP 
511eef51
 \fBReadTimeout NUMBER\fR
 Waiting for data from a client socket will timeout after this time (seconds).
3708f991
 .br 
511eef51
 Default: 120
3708f991
 .TP 
67fb82ad
 \fBIdleTimeout NUMBER\fR
 Waiting for a new job will timeout after this time (seconds).
 .br 
 Default: 30
 .TP 
3708f991
 \fBMaxDirectoryRecursion NUMBER\fR
511eef51
 Maximal depth directories are scanned at.
3708f991
 .br 
511eef51
 Default: 15
3708f991
 .TP 
 \fBFollowDirectorySymlinks\fR
511eef51
 Follow directory symlinks.
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBFollowFileSymlinks\fR
 Follow regular file symlinks.
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBSelfCheck NUMBER\fR
511eef51
 Do internal sanity checks every NUMBER seconds.
3708f991
 .br 
511eef51
 Default: 1800
3708f991
 .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 
511eef51
 Default: disabled
3708f991
 .TP 
df4a42fe
 \fBExitOnOOM\fR
e82a5185
 Stop daemon when libclamav reports out of memory condition.
df4a42fe
 .br 
 Default: disabled
 .TP 
 .TP 
3708f991
 \fBUser STRING\fR
511eef51
 Run as selected user.
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBAllowSupplementaryGroups\fR
511eef51
 Initialize supplementary group access (clamd must be started by root).
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBForeground\fR
511eef51
 Don't fork into background.
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBDebug\fR
511eef51
 Enable debug messages from libclamav.
3708f991
 .TP 
67fb82ad
 \fBLeaveTemporaryFiles\fR
 Do not remove temporary files (for debug purposes).
 .br 
 Default: disabled
 .TP 
3708f991
 \fBStreamMaxLength SIZE\fR
1a2b50f4
 Clamd uses FTP\-like protocol to receive data from remote clients. If you are using clamav\-milter to balance load between remote clamd daemons on firewall servers you may need to tune the Stream* options. This option allows you to specify the maximal limit for data transfered to remote daemon when scanning a single file. It should match your MTA's limit for a maximal attachment size.
3708f991
 .br 
511eef51
 Default: 10M
 .TP 
166069c2
 \fBStreamMinPort NUMBER\fR
 Limit data port range.
 .br 
 Default: 1024
 .TP 
 \fBStreamMaxPort NUMBER\fR
 Limit data port range.
 .br 
bf22198b
 Default: 2048
166069c2
 .TP 
511eef51
 \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
3708f991
 .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 
511eef51
 Default: enabled
3708f991
 .TP 
 \fBDetectBrokenExecutables\fR
511eef51
 With this option clamd will try to detect broken executables and mark them as Broken.Executable.
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBScanOLE2\fR
 Enables scanning of Microsoft Office document macros.
 .br 
511eef51
 Default: enabled
3708f991
 .TP 
 \fBScanHTML\fR
 Enables HTML detection and normalisation.
 .br 
511eef51
 Default: enabled
3708f991
 .TP 
 \fBScanMail\fR
 Enable scanning of mail files.
 .br 
511eef51
 Default: enabled
3708f991
 .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 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBScanArchive\fR
 Enable archive scanning.
 .br 
511eef51
 Default: enabled
3708f991
 .TP 
89e1684e
 \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 
3708f991
 \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 
6761e1ee
 Default: 8
3708f991
 .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
511eef51
 Analyze compression ratio of every file in an archive and mark potential archive bombs as viruses (0 disables the limit).
3708f991
 .br 
511eef51
 Default: 250
3708f991
 .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
a43d2099
 Mark archives as viruses (e.g RAR.ExceededFileSize, Zip.ExceededFilesLimit) if ArchiveMaxFiles, ArchiveMaxFileSize, or ArchiveMaxRecursion limit is reached.
3708f991
 .br 
 Default: disabled
 .TP 
67fb82ad
 \fBClamukoScanOnAccess\fR
 Enable Clamuko. Dazuko (/dev/dazuko) must be configured and running.
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBClamukoScanOnOpen\fR
511eef51
 Scan files on open.
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBClamukoScanOnClose\fR
511eef51
 Scan files on close.
3708f991
 .br 
 Default: disabled.
 .TP 
 \fBClamukoScanOnExec\fR
511eef51
 Scan files on execute.
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBClamukoIncludePath STRING\fR
e82a5185
 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 separate line).
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .TP 
 \fBClamukoExcludePath\fR
511eef51
 Set the exclude paths. All subdirectories will also be excluded.
3708f991
 .br 
511eef51
 Default: disabled
3708f991
 .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 
511eef51
 Default: disabled
3708f991
 .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)