docs/man/clamd.conf.5.in
a39ae468
 .TH "clamd.conf" "5" "February 12, 2007" "ClamAV @VERSION@" "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"
f3a638e4
 The file consists of comments and options with arguments. Each line which starts with a hash (\fB#\fR) symbol is ignored by the parser. Options and arguments are case sensitive and of the form \fBOption Argument\fR. The arguments are of the following types:
 .TP 
 \fBBOOL\fR
 Boolean value (yes/no or true/false or 1/0).
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 
f3a638e4
 When some option is not used (commented out or not included in the configuration file at all) 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 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBLogFileUnlock BOOL\fR
3697c428
 Disable a system lock that protects against running clamd with a same configuration file multiple times.
 .br 
f3a638e4
 Default: no
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 
f3a638e4
 \fBLogTime BOOL\fR
 Log time for each message.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBLogClean BOOL\fR
3697c428
 Log clean files.
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBLogSyslog BOOL\fR
3697c428
 Use system logger (can work together with LogFile).
 .br 
f3a638e4
 Default: no
c6dbfbcb
 .TP 
f3a638e4
 \fBLogFacility STRING\fR
c6dbfbcb
 Specify the type of syslog messages \- please refer to 'man syslog' for facility names.
 .br 
 Default: LOG_LOCAL6
3697c428
 .TP 
f3a638e4
 \fBLogVerbose BOOL\fR
3697c428
 Enable verbose logging.
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
 \fBPidFile STRING\fR
c6dbfbcb
 Save the process identifier of a listening daemon (main thread) to a specified file.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
8589f1a0
 \fBTemporaryDirectory STRING\fR
 Optional path to the global temporary directory.
 .br 
 Default: system specific (usually /tmp or /var/tmp).
 .TP 
3697c428
 \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 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBFixStaleSocket BOOL\fR
3697c428
 Remove stale socket after unclean shutdown.
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
 \fBTCPSocket NUMBER\fR
 TCP port number the daemon will listen on.
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
 \fBTCPAddr STRING\fR
500c39f3
 TCP socket address to bind to. By default clamd binds to INADDR_ANY.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
 \fBMaxConnectionQueueLength NUMBER\fR
 Maximum length the queue of pending connections may grow to.
 .br 
 Default: 15
 .TP 
 \fBMaxThreads NUMBER\fR
f3a638e4
 Maximum number of threads running at the same time.
3697c428
 .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 
8589f1a0
 \fBIdleTimeout NUMBER\fR
 Waiting for a new job will timeout after this time (seconds).
 .br 
 Default: 30
 .TP 
3697c428
 \fBMaxDirectoryRecursion NUMBER\fR
f3a638e4
 Maximum depth directories are scanned at.
3697c428
 .br 
c6dbfbcb
 Default: 15
3697c428
 .TP 
f3a638e4
 \fBFollowDirectorySymlinks BOOL\fR
c6dbfbcb
 Follow directory symlinks.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBFollowFileSymlinks BOOL\fR
3697c428
 Follow regular file symlinks.
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
 \fBSelfCheck NUMBER\fR
f3a638e4
 Perform a database check.
3697c428
 .br 
c6dbfbcb
 Default: 1800
3697c428
 .TP 
 \fBVirusEvent COMMAND\fR
f3a638e4
 Execute COMMAND when a virus is found. In the command string %v will be replaced with the virus name.
3697c428
 \fR
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBExitOnOOM BOOL\fR
5a29f422
 Stop daemon when libclamav reports out of memory condition.
f9593781
 .br 
f3a638e4
 Default: no
f9593781
 .TP 
3697c428
 \fBUser STRING\fR
f3a638e4
 Run as another user (clamd must be started by root to make this option working).
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBAllowSupplementaryGroups BOOL\fR
c6dbfbcb
 Initialize supplementary group access (clamd must be started by root).
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBForeground BOOL\fR
c6dbfbcb
 Don't fork into background.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBDebug BOOL\fR
c6dbfbcb
 Enable debug messages from libclamav.
3697c428
 .TP 
f3a638e4
 \fBLeaveTemporaryFiles BOOL\fR
 Do not remove temporary files (for debug purpose).
8589f1a0
 .br 
f3a638e4
 Default: no
8589f1a0
 .TP 
3697c428
 \fBStreamMaxLength SIZE\fR
f3a638e4
 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 upper limit for data size that will be transfered to remote daemon when scanning a single file. It should match your MTA's limit for a maximum attachment size.
3697c428
 .br 
c6dbfbcb
 Default: 10M
 .TP 
29c4d783
 \fBStreamMinPort NUMBER\fR
 Limit data port range.
 .br 
 Default: 1024
 .TP 
 \fBStreamMaxPort NUMBER\fR
 Limit data port range.
 .br 
6c7dbf7d
 Default: 2048
29c4d783
 .TP 
f3a638e4
 \fBAlgorithmicDetection BOOL\fR
1b661cef
 In some cases (eg. complex malware, exploits in graphic files, and others), ClamAV uses special algorithms to provide accurate detection. This option controls the algorithmic detection.
c6dbfbcb
 .br 
1b661cef
 Default: yes
3697c428
 .TP 
f3a638e4
 \fBScanPE BOOL\fR
 PE stands for Portable Executable \- it's an executable file format used in all 32 and 64\-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.
3697c428
 .br 
f3a638e4
 Default: yes
3697c428
 .TP 
f3a638e4
 \fBScanELF BOOL\fR
3f97a1e7
 Executable and Linking Format is a standard format for UN*X executables. This option allows you to control the scanning of ELF files.
 .br 
f3a638e4
 Default: yes
3f97a1e7
 .TP 
f3a638e4
 \fBDetectBrokenExecutables BOOL\fR
3f97a1e7
 With this option clamd will try to detect broken executables (both PE and ELF) and mark them as Broken.Executable.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBScanOLE2 BOOL\fR
 This option enables scanning of OLE2 files, such as Microsoft Office documents and .msi files.
3697c428
 .br 
f3a638e4
 Default: yes
3697c428
 .TP 
c5107e70
 \fBScanPDF BOOL\fR
 This option enables scanning within PDF files.
 .br 
 Default: no
 .TP 
f3a638e4
 \fBScanHTML BOOL\fR
3697c428
 Enables HTML detection and normalisation.
 .br 
f3a638e4
 Default: yes
3697c428
 .TP 
f3a638e4
 \fBScanMail BOOL\fR
3697c428
 Enable scanning of mail files.
 .br 
f3a638e4
 Default: yes
3697c428
 .TP 
f3a638e4
 \fBMailFollowURLs BOOL\fR
3697c428
 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 
f3a638e4
 Default: no
dab42957
 .TP
f3a638e4
 \fBMailMaxRecursion NUMBER\fR
dab42957
 Recursion level limit for the mail scanner.
 .br
 Default: 64
3697c428
 .TP 
f3a638e4
 \fBPhishingSignatures BOOL\fR
af7d0dde
 With this option enabled ClamAV will try to detect phishing attempts by using signatures.
d6449522
 .br 
f3a638e4
 Default: yes
 .TP
 \fBPhishingScanURLs BOOL\fR
 Scan URLs in mails for phishing attempts (available in experimental builds only).
e9d3861e
 .br
f3a638e4
 Default: yes
 .TP
 \fBPhishingRestrictedScan BOOL\fR
 Use phishing detection only for domains listed in the .pdb database. It is not recommended to have this option turned off, because scanning of all domains may lead to many false positives! (available in experimental builds only)
 .br
 Default: no
 .TP
 \fBPhishingAlwaysBlockSSLMismatch BOOL\fR
 Always block SSL mismatches in URLs, even if the URL isn't in the database. This can lead to false positives. (available in experimental builds only)
 .br
 Default: no
e9d3861e
 .TP
f3a638e4
 \fBPhishingAlwaysBlockCloak BOOL\fR
 Always block cloaked URLs, even if URL isn't in database. There is a remote possibility, that this will lead to false positives. (available in experimental builds only)
e9d3861e
 .br
f3a638e4
 Default: no
e9d3861e
 .TP
f3a638e4
 \fBScanArchive BOOL\fR
3697c428
 Enable archive scanning.
 .br 
f3a638e4
 Default: yes
88ab7aee
 .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 
f24181ef
 Default: 8
3697c428
 .TP 
 \fBArchiveMaxFiles NUMBER\fR
f3a638e4
 Number of files to be scanned within an archive. Value of 0 disables the limit.
3697c428
 .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 
f3a638e4
 \fBArchiveLimitMemoryUsage BOOL\fR
 Use slower decompression algorithm which uses less memory. This option only affects the bzip2 decompressor.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBArchiveBlockEncrypted BOOL\fR
3697c428
 Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR).
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBArchiveBlockMax BOOL\fR
221a54da
 Mark archives as viruses (e.g RAR.ExceededFileSize, Zip.ExceededFilesLimit) if ArchiveMaxFiles, ArchiveMaxFileSize, or ArchiveMaxRecursion limit is reached.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBNodalCoreAcceleration BOOL\fR
8765287e
 Enable support for Sensory Networks' NodalCore hardware accelerator.
 .br
f3a638e4
 Default: no
8765287e
 .TP 
f3a638e4
 \fBClamukoScanOnAccess BOOL\fR
8589f1a0
 Enable Clamuko. Dazuko (/dev/dazuko) must be configured and running.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBClamukoScanOnOpen BOOL\fR
c6dbfbcb
 Scan files on open.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBClamukoScanOnClose BOOL\fR
c6dbfbcb
 Scan files on close.
3697c428
 .br 
f3a638e4
 Default: no.
3697c428
 .TP 
f3a638e4
 \fBClamukoScanOnExec BOOL\fR
c6dbfbcb
 Scan files on execute.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
 \fBClamukoIncludePath STRING\fR
f3a638e4
 Set the include paths (all files and directories inside them will be scanned). You can have multiple ClamukoIncludePath directives but each directory must be added in a separate line).
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBClamukoExcludePath STRING\fR
c6dbfbcb
 Set the exclude paths. All subdirectories will also be excluded.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
 \fBClamukoMaxFileSize SIZE\fR
f3a638e4
 Ignore files larger than SIZE.
3697c428
 .br 
 Default: 5M
 .SH "FILES"
 .LP 
 @CFGDIR@/clamd.conf
 .SH "AUTHOR"
 .LP 
 Tomasz Kojm <tkojm@clamav.net>
 .SH "SEE ALSO"
 .LP 
f3a638e4
 clamd(8), clamdscan(1), clamav-milter(8), clamscan(1), freshclam(1), sigtool(1)