docs/man/clamd.conf.5.in
4f4b8d1f
 .TH "clamd.conf" "5" "December 4, 2013" "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
4f4b8d1f
 Size in bytes. You can use 'M' or 'm' modifiers for megabytes and 'K' or 'k' for kilobytes. To specify the size in bytes just don't use modifiers.
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
4f4b8d1f
 Save all reports to a log file.
3697c428
 .br 
4f4b8d1f
 Default: disabled
3697c428
 .TP 
f3a638e4
 \fBLogFileUnlock BOOL\fR
4f4b8d1f
 By default the log file is locked for writing and only a single daemon process can write to it. This option disables the lock.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
 \fBLogFileMaxSize SIZE\fR
4f4b8d1f
 Maximum size of the log file.
 .br
 Value of 0 disables the limit.
3697c428
 .br 
4f4b8d1f
 Default: 1048576
3697c428
 .TP 
f3a638e4
 \fBLogTime BOOL\fR
 Log time for each message.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBLogClean BOOL\fR
4f4b8d1f
 Log all clean files.
 .br
 Useful in debugging but drastically increases the log size.
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
f3a638e4
 \fBLogSyslog BOOL\fR
4f4b8d1f
 Use the system logger (can work together with LogFile).
3697c428
 .br 
f3a638e4
 Default: no
c6dbfbcb
 .TP 
f3a638e4
 \fBLogFacility STRING\fR
4f4b8d1f
 Type of syslog messages
 .br
 Please refer to 'man syslog' for facility names.
c6dbfbcb
 .br 
 Default: LOG_LOCAL6
3697c428
 .TP 
f3a638e4
 \fBLogVerbose BOOL\fR
3697c428
 Enable verbose logging.
 .br 
f3a638e4
 Default: no
4f4b8d1f
 .TP
 \fBLogRotate BOOL\fR
 Rotate log file. Requires LogFileMaxSize option set prior to this option.
 .br
 Default: no
3697c428
 .TP 
edbba730
 \fBExtendedDetectionInfo BOOL\fR
3507891f
 Log additional information about the infected file, such as its size and hash, together with the virus name.
edbba730
 .br 
 Default: no
 .TP 
3697c428
 \fBPidFile STRING\fR
c6dbfbcb
 Save the process identifier of a listening daemon (main thread) to a specified file.
3697c428
 .br 
4f4b8d1f
 Default: disabled
3697c428
 .TP 
8589f1a0
 \fBTemporaryDirectory STRING\fR
4f4b8d1f
 This option allows you to change the default temporary directory.
8589f1a0
 .br 
 Default: system specific (usually /tmp or /var/tmp).
 .TP 
3697c428
 \fBDatabaseDirectory STRING\fR
4f4b8d1f
 This option allows you to change the default database directory. If you enable it, please make sure it points to the same directory in both clamd and freshclam.
 .br
 Default: defined at configuration (/usr/local/share/clamav)
c4910836
 .TP 
 \fBOfficialDatabaseOnly BOOL\fR
 Only load the official signatures published by the ClamAV project.
3697c428
 .br 
c4910836
 Default: no
3697c428
 .TP 
 \fBLocalSocket STRING\fR
 Path to a local (Unix) socket the daemon will listen on.
 .br 
4f4b8d1f
 Default: disabled
e8f6878c
 .TP
de40271b
 \fBLocalSocketGroup STRING\fR
e8f6878c
 Sets the group ownership on the unix socket.
 .br
 Default: the primary group of the user running clamd
 .TP
de40271b
 \fBLocalSocketMode STRING\fR
e8f6878c
 Sets the permissions on the unix socket to the specified mode.
 .br
 Default: socket is world readable and writable
3697c428
 .TP 
f3a638e4
 \fBFixStaleSocket BOOL\fR
3697c428
 Remove stale socket after unclean shutdown.
 .br 
e6fe106e
 Default: yes
3697c428
 .TP 
 \fBTCPSocket NUMBER\fR
 TCP port number the daemon will listen on.
 .br 
4f4b8d1f
 Default: disabled
3697c428
 .TP 
 \fBTCPAddr STRING\fR
4f4b8d1f
 By default clamd binds to INADDR_ANY.
 .br
3da70ca0
 This option allows you to restrict the TCP address and provide some degree of protection from the outside world. This option can be specified multiple times in order to listen on multiple IPs. IPv6 is now supported.
3697c428
 .br 
4f4b8d1f
 Default: disabled
3697c428
 .TP 
 \fBMaxConnectionQueueLength NUMBER\fR
 Maximum length the queue of pending connections may grow to.
 .br 
b907e8cf
 Default: 200
4f4b8d1f
 .TP
 \fBStreamMaxLength SIZE\fR
 Close the STREAM session when the data size limit is exceeded.
c39d16d5
 .br
4f4b8d1f
 The value should match your MTA's limit for the maximum attachment size.
c39d16d5
 .br
 Default: 25M
4f4b8d1f
 .TP
 \fBStreamMinPort NUMBER\fR
 The STREAM command uses an FTP-like protocol.
c39d16d5
 .br
4f4b8d1f
 This option sets the lower boundary for the port range.
c39d16d5
 .br
4f4b8d1f
 Default: 1024
 .TP
 \fBStreamMaxPort NUMBER\fR
 This option sets the upper boundary for the port range.
c39d16d5
 .br
4f4b8d1f
 Default: 2048
3697c428
 .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
4f4b8d1f
 This option specifies the time (in seconds) after which clamd should
 timeout if a client doesn't provide any data.
3697c428
 .br 
c6dbfbcb
 Default: 120
7d444fd9
 .TP
 \fBCommandReadTimeout NUMBER\fR
 This option specifies the time (in seconds) after which clamd should
 timeout if a client doesn't provide any initial command after connecting.
 Note: the timeout for subsequents commands, and/or data chunks is specified by
 ReadTimeout.
 .br
 Default: 5
 .TP
 \fBSendBufTimeout NUMBER\fR
50b0bd80
 This option specifies how long to wait (in milliseconds) if the send buffer is full.
7d444fd9
 Keep this value low to prevent clamd hanging.
 .br
 Default: 500
 .TP
 \fBMaxQueue NUMBER\fR
 Maximum number of queued items (including those being processed by MaxThreads threads).
 It is recommended to have this value at least twice MaxThreads if possible.
 .br
 \fBWARNING: you shouldn't increase this too much to avoid running out of file descriptors,
 the following condition should hold:
da3e0e40
 MaxThreads*MaxRecursion + MaxQueue - MaxThreads + 6 < RLIMIT_NOFILE.\fR
7d444fd9
 RLIMIT_NOFILE is the maximum number of open file descriptors (usually 1024), set
0e184371
 by \fBulimit \-n\fR.
7d444fd9
 .br
 Default: 100
3697c428
 .TP 
8589f1a0
 \fBIdleTimeout NUMBER\fR
4f4b8d1f
 This option specifies how long (in seconds) the process should wait
 for a new job.
8589f1a0
 .br 
 Default: 30
f45d19ac
 .TP
 \fBExcludePath REGEX\fR
 Don't scan files and directories matching REGEX. This directive can be used multiple times.
 .br
4f4b8d1f
 Default: disabled
8589f1a0
 .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 
2086dc5c
 \fBCrossFilesystems BOOL\fR
 Scan files and directories on other filesystems.
 .br 
 Default: yes
 .TP 
f3a638e4
 \fBFollowFileSymlinks BOOL\fR
3697c428
 Follow regular file symlinks.
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
 \fBSelfCheck NUMBER\fR
4f4b8d1f
 This option specifies the time intervals (in seconds) in which clamd
 should perform a database check.
3697c428
 .br 
4f4b8d1f
 Default: 600
3697c428
 .TP 
 \fBVirusEvent COMMAND\fR
4f4b8d1f
 Execute a command when a virus is found. In the command string %v will be
 replaced with the virus name. Additionally, two environment variables will
 be defined: $CLAM_VIRUSEVENT_FILENAME and $CLAM_VIRUSEVENT_VIRUSNAME.
3697c428
 \fR
 .br 
4f4b8d1f
 Default: disabled
3697c428
 .TP 
f3a638e4
 \fBExitOnOOM BOOL\fR
5a29f422
 Stop daemon when libclamav reports out of memory condition.
f9593781
 .br 
f3a638e4
 Default: no
f9593781
 .TP 
4f4b8d1f
 \fBAllowAllMatchScan BOOL\fR
 Permit use of the ALLMATCHSCAN command.
 .br
 Default: yes
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.
4f4b8d1f
 .br
 Default: no
3697c428
 .TP 
f3a638e4
 \fBLeaveTemporaryFiles BOOL\fR
4f4b8d1f
 Do not remove temporary files (for debugging purpose).
8589f1a0
 .br 
f3a638e4
 Default: no
4f4b8d1f
 .TP
 \fBUser STRING\fR
 Run the daemon as a specified user (the process must be started by root).
 .br
 Default: disabled
 .TP
c4910836
 \fBBytecode BOOL\fR
 With this option enabled ClamAV will load bytecode from the database. It is highly recommended you keep this option turned on, otherwise you may miss detections for many new viruses.
 .br
 Default: yes
 .TP 
 \fBBytecodeSecurity STRING\fR
4f4b8d1f
 Set bytecode security level. 
 .RS
 .PD 0
 .HP 4
 Possible values:
 .br
 \fBTrustSigned\fR \- trust bytecode loaded from signed .c[lv]d files and insert runtime safety checks for bytecode loaded from other sources, 
 .br
 \fBParanoid\fR \- don't trust any bytecode, insert runtime checks for all. 
 .RE
 .RS
 Recommended: \fBTrustSigned\fR, because bytecode in .cvd files already has these checks.
c4910836
 .br 
 Default: TrustSigned
4f4b8d1f
 .PD 1
 .RE
 .TP 
 \fBBytecodeTimeout NUMBER\fR
 Set bytecode timeout in milliseconds.
 .br
 Default: 5000
c4910836
 .TP 
62315ce6
 \fBBytecodeUnsigned BOOL\fR
 Allow loading bytecode from outside digitally signed .c[lv]d files.
 .br
 Default: no
4f4b8d1f
 .TP
 \fBBytecodeMode STRING\fR
 Set bytecode execution mode.
 .RS
 .PD 0
 .HP 4
 Possible values:
50b0bd80
 .br
4f4b8d1f
 \fBAuto\fR \- automatically choose JIT if possible, fallback to interpreter
 .br
 \fBForceJIT\fR \- always choose JIT, fail if not possible
 .br
dced1002
 \fBForceInterpreter\fR \- always choose interpreter
4f4b8d1f
 .br
 \fBTest\fR \- run with both JIT and interpreter and compare results. Make all failures fatal.
 .RE
 .RS
 Default: Auto
 .PD 1
 .RE
50b0bd80
 .TP 
c4910836
 \fBDetectPUA BOOL\fR
70edb085
 Detect Possibly Unwanted Applications.
 .br 
 Default: No
c657d4d8
 .TP
 \fBExcludePUA CATEGORY\fR
4de96767
 Exclude a specific PUA category. This directive can be used multiple times. See http://www.clamav.net/doc/pua.html for the complete list of PUA categories.
c657d4d8
 .br
4f4b8d1f
 Default: disabled
c657d4d8
 .TP
 \fBIncludePUA CATEGORY\fR
4de96767
 Only include a specific PUA category. This directive can be used multiple times. See http://www.clamav.net/doc/pua.html for the complete list of PUA categories.
c657d4d8
 .br
4f4b8d1f
 Default: disabled
70edb085
 .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
4f4b8d1f
 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.  
 .br
 If you turn off this option, the original files will still be scanned, but without additional processing.
3697c428
 .br 
f3a638e4
 Default: yes
3697c428
 .TP 
f3a638e4
 \fBScanELF BOOL\fR
4f4b8d1f
 Executable and Linking Format is a standard format for UN*X executables. This option allows you to control the scanning of ELF files. 
 .br
 If you turn off this option, the original files will still be scanned, but without additional processing.
3f97a1e7
 .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
 \fBScanMail BOOL\fR
4f4b8d1f
 Enable scanning of mail files. 
 .br
 If you turn off this option, the original files will still be scanned, but without parsing individual messages/attachments.
3697c428
 .br 
f3a638e4
 Default: yes
dab42957
 .TP
7f0d1148
 \fBScanPartialMessages BOOL\fR
 Scan RFC1341 messages split over many emails. You will need to periodically clean up $TemporaryDirectory/clamav-partial directory. \fBWARNING: This option may open your system to a DoS attack. Never use it on loaded servers.\fR
 .br
 Default: no
 .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
3fced6f7
 Scan URLs found in mails for phishing attempts using heuristics. This will classify "Possibly Unwanted" phishing emails as Phishing.Heuristics.Email.*
e9d3861e
 .br
f3a638e4
 Default: yes
 .TP
4f4b8d1f
 \fBPhishingAlwaysBlockCloak BOOL\fR
 Always block cloaked URLs, even if URL isn't in database. This can lead to false positives.
f3a638e4
 .br
 Default: no
e9d3861e
 .TP
4f4b8d1f
 \fBPhishingAlwaysBlockSSLMismatch BOOL\fR
 Always block SSL mismatches in URLs, even if the URL isn't in the database. This can lead to false positives.
e9d3861e
 .br
f3a638e4
 Default: no
e9d3861e
 .TP
e33d8379
 \fBPartitionIntersection BOOL\fR
 Detect partition intersections in raw disk images using heuristics.
 .br
 Default: no
 .TP
7f0d1148
 \fBHeuristicScanPrecedence BOOL\fR
c657d4d8
 Allow heuristic match to take precedence. When enabled, if a heuristic scan (such as phishingScan) detects a possible virus/phishing it will stop scanning immediately. Recommended, saves CPU scan-time. When disabled, virus/phishing detected by heuristic scans will be reported only at the end of a scan. If an archive contains both a heuristically detected virus/phishing, and a real malware, the real malware will be reported. Keep this disabled if you intend to handle "*.Heuristics.*" viruses  differently from "real" malware. If a non-heuristically-detected virus (signature-based) is found first, the scan is interrupted immediately, regardless of this config option.
7f0d1148
 .br
 Default: no
 .TP
26fbf6bd
 \fBStructuredDataDetection BOOL\fR
 Enable the DLP module.
 .br 
 Default: no
 .TP
 \fBStructuredMinCreditCardCount NUMBER\fR
 This option sets the lowest number of Credit Card numbers found in a file to generate a detect.
 .br 
57e1a05e
 Default: 3
26fbf6bd
 .TP
 \fBStructuredMinSSNCount NUMBER\fR
 This option sets the lowest number of Social Security Numbers found in a file to generate a detect.
 .br 
57e1a05e
 Default: 3
26fbf6bd
 .TP
 \fBStructuredSSNFormatNormal BOOL\fR
 With this option enabled the DLP module will search for valid SSNs formatted as xxx-yy-zzzz.
 .br 
 Default: Yes
 .TP
 \fBStructuredSSNFormatStripped BOOL\fR
 With this option enabled the DLP module will search for valid SSNs formatted as xxxyyzzzz.
 .br 
3f9918e1
 Default: No
26fbf6bd
 .TP
4f4b8d1f
 \fBScanHTML BOOL\fR
 Perform HTML/JavaScript/ScriptEncoder normalisation and decryption.
 .br
 If you turn off this option, the original files will still be scanned, but without additional processing.
 .br
 Default: yes
 .TP
 \fBScanOLE2 BOOL\fR
 This option enables scanning of OLE2 files, such as Microsoft Office documents and .msi files. 
 .br
 If you turn off this option, the original files will still be scanned, but without additional processing.
 .br 
 Default: yes
 .TP 
 \fBOLE2BlockMacros BOOL\fR
 With this option enabled OLE2 files with VBA macros, which were not detected by signatures will be marked as "Heuristics.OLE2.ContainsMacros".
 .br 
 Default: no
e7dfe57d
 .TP
 \fBBlockMax BOOL\fR
  Flag files with "Heuristics.Limits.Exceeded" when scanning is incomplete due to exceeding a scan or file size limit.
 .br 
 Default: no
4f4b8d1f
 .TP 
 \fBScanPDF BOOL\fR
 This option enables scanning within PDF files.
 .br
 If you turn off this option, the original files will still be scanned, but without additional processing.
 .br 
 Default: yes
 .TP 
 \fBScanSWF BOOL\fR
 This option enables scanning within SWF files.
 .br
 If you turn off this option, the original files will still be scanned, but without decoding and additional processing.
 .br 
 Default: yes
 .TP
ea9ffd29
 \fBScanXMLDOCS BOOL\fR
 This option enables scanning xml-based document files supported by libclamav.
 .br
 If you turn off this option, the original files will still be scanned, but without additional processing.
 .br
 Default: yes
 .TP
 \fBScanHWP3 BOOL\fR
 This option enables scanning HWP3 files.
 .br
 If you turn off this option, the original files will still be scanned, but without additional processing.
 .br
 Default: yes
 .TP 
f3a638e4
 \fBScanArchive BOOL\fR
4f4b8d1f
 Scan within archives and compressed files.
 .br
 If you turn off this option, the original files will still be scanned, but without unpacking and additional processing.
3697c428
 .br 
f3a638e4
 Default: yes
4f4b8d1f
 .TP
 \fBArchiveBlockEncrypted BOOL\fR
 Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR).
 .br
 Default: no
 .TP
 \fBForceToDisk\fR
 This option causes memory or nested map scans to dump the content to disk.
 .br
 If you turn on this option, more data is written to disk and is available when the leave-temps option is enabled at the cost of more disk writes.
 .br
 Default: no
3697c428
 .br 
f3a638e4
 Default: no
3697c428
 .TP 
4fd3c044
 \fBMaxScanSize SIZE\fR
06e02797
 Sets the maximum amount of data to be scanned for each input file. Archives and other containers are recursively extracted and scanned up to this value. The size of an archive plus the sum of the sizes of all files within archive count toward the scan size. For example, a 1M uncompressed archive containing a single 1M inner file counts as 2M toward the max scan size. \fBWarning: disabling this limit or setting it too high may result in severe damage to the system.\fR
3697c428
 .br 
4fd3c044
 Default: 100M
 .TP 
 \fBMaxFileSize SIZE\fR
 Files larger than this limit won't be scanned. Affects the input file itself as well as files contained inside it (when the input file is an archive, a document or some other kind of container). \fBWarning: disabling this limit or setting it too high may result in severe damage to the system.\fR
 .br 
 Default: 25M
 .TP 
 \fBMaxRecursion NUMBER\fR
81c1e5f5
 Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR file, all files within it will also be scanned. This options specifies how deeply the process should be continued. \fBWarning: setting this limit too high may result in severe damage to the system.\fR
4fd3c044
 .br 
 Default: 16
 .TP 
 \fBMaxFiles NUMBER\fR
 Number of files to be scanned within an archive, a document, or any other kind of container. \fBWarning: disabling this limit or setting it too high may result in severe damage to the system.\fR
 .br 
 Default: 10000
4f4b8d1f
 .TP
 \fBMaxEmbeddedPE SIZE\fR
 This option sets the maximum size of a file to check for embedded PE.
 .br
 Files larger than this value will skip the additional analysis step.
 .br
 Negative values are not allowed.
 .br
 Default: 10M
 .TP
 \fBMaxHTMLNormalize SIZE\fR
 This option sets the maximum size of a HTML file to normalize.
 .br
 HTML files larger than this value will not be normalized or scanned.
 .br
 Negative values are not allowed.
 .br
 Default: 10M
 .TP
 \fBMaxHTMLNoTags SIZE\fR
 This option sets the maximum size of a normalized HTML file to scan.
 .br
 HTML files larger than this value after normalization will not be scanned.
 .br
 Negative values are not allowed.
 .br
 Default: 2M
 .TP
 \fBMaxScriptNormalize SIZE\fR
 This option sets the maximum size of a script file to normalize.
 .br
 Script content larger than this value will not be normalized or scanned.
 .br
 Negative values are not allowed.
 .br
 Default: 5M
 .TP
 \fBMaxZipTypeRcg SIZE\fR
 This option sets the maximum size of a ZIP file to reanalyze type recognition.
 .br
 ZIP files larger than this value will skip the step to potentially reanalyze as PE.
 .br
 Negative values are not allowed.
 .br
 WARNING: setting this limit too high may result in severe damage or impact performance.
 .br
 Default: 1M
3697c428
 .TP 
4b5895b8
 \fBMaxPartitions SIZE\fR
 This option sets the maximum number of partitions of a raw disk image to be scanned.
 .br
 Raw disk images with more partitions than this value will have up to the value partitions scanned.
 .br
 Negative values are not allowed.
 .br
 WARNING: setting this limit too high may result in severe damage or impact performance.
 .br
 Default: 50
067bce5f
 .TP 
 \fBMaxIconsPE SIZE\fR
 This option sets the maximum number of icons within a PE to be scanned.
 .br
 PE files with more icons than this value will have up to the value number icons scanned.
 .br
 Negative values are not allowed.
 .br
 WARNING: setting this limit too high may result in severe damage or impact performance.
 .br
 Default: 100
4b5895b8
 .TP
731c8e62
 \fBMaxRecHWP3 NUMBER\fR
 This option sets the maximum recursive calls to HWP3 parsing function.
 .br
 HWP3 files using more than this limit will be terminated and alert the user.
 .br
 Scans will be unable to scan any HWP3 attachments if the recursive limit is reached.
 .br
 Negative values are not allowed.
 .br
 WARNING: setting this limit too high may result in severe damage or impact performance.
 .br
 Default: 16
 .TP
1c4ee730
 \fBPCREMatchLimit NUMBER\fR
877bca9b
 This option sets the maximum calls to the PCRE match function during an instance of regex matching.
 .br
 Instances using more than this limit will be terminated and alert the user but the scan will continue.
 .br
 For more information on match_limit, see the PCRE documentation.
 .br
 Negative values are not allowed.
 .br
 WARNING: setting this limit too high may severely impact performance.
 .br
 Default: 10000
 .TP
 \fBPCRERecMatchLimit NUMBER\fR
 This option sets the maximum recursive calls to the PCRE match function during an instance of regex matching.
 .br
 Instances using more than this limit will be terminated and alert the user but the scan will continue.
 .br
 For more information on match_limit_recursion, see the PCRE documentation.
 .br
 Negative values are not allowed and values > PCREMatchLimit are superfluous.
 .br
 WARNING: setting this limit too high may severely impact performance.
 .br
 Default: 5000
 .TP
1c4ee730
 \fBPCREMaxFileSize SIZE\fR
877bca9b
 This option sets the maximum filesize for which PCRE subsigs will be executed.
 .br
 Files exceeding this limit will not have PCRE subsigs executed unless a subsig is encompassed to a smaller buffer.
 .br
 Negative values are not allowed.
 .br
 Setting this value to zero disables the limit.
 .br
 WARNING: setting this limit too high or disabling it may severely impact performance.
 .br
 Default: 25M
 .TP
4f4b8d1f
 \fBScanOnAccess BOOL\fR
 This option enables on-access scanning (Linux only)
 .br
 Default: disabled
 .TP
 \fBOnAccessIncludePath STRING\fR
 This option specifies a directory (including all files and directories inside it), which should be scanned on access. This option can be used multiple times.
 .br
 Default: disabled
 .TP
 \fBOnAccessExcludePath STRING\fR
 This option allows excluding directories from on-access scanning. It can be used multiple times.
 .br
 Default: disabled
 .TP
15596b10
 \fBOnAccessExcludeRootUID BOOL\fR
 With this option you can whitelist the root UID (0). Processes run under root with be able to access all files without triggering scans or permission denied events.
 .br
 Default: no
 .TP
4f4b8d1f
 \fBOnAccessExcludeUID NUMBER\fR
 With this option you can whitelist specific UIDs. Processes with these UIDs will be able to access all files.
 .br
 This option can be used multiple times (one per line).
 .br
15596b10
 Note: using a value of 0 on any line will disable this option entirely. To whitelist the root UID (0) please enable the OnAccessExcludeRootUID option.
 .br
4f4b8d1f
 Default: disabled
 .TP
 \fBOnAccessMaxFileSize SIZE\fR
 Files larger than this value will not be scanned in on access.
 .br
3697c428
 Default: 5M
4f4b8d1f
 .TP
f89b94df
 \fBOnAccessMountPath STRING\fR
 Specifies a mount point (including all files and directories under it), which should be scanned on access. This option can be used multiple times.
 .br
 Default: disabled
 .TP
 \fBOnAccessDisableDDD BOOL\fR
 Disables the dynamic directory determination system which allows for recursively watching include paths.
 .br
 Default: no
 .TP
 \fBOnAccessPrevention BOOL\fR
 Enables fanotify blocking when malicious files are found.
 .br
 Default: disabled
 .TP
4f4b8d1f
 \fBDisableCertCheck BOOL\fR
 Disable authenticode certificate chain verification in PE files.
 .br
 Default: no
32ec6344
 .SH "NOTES"
 .LP 
 All options expressing a size are limited to max 4GB. Values in excess will be resetted to the maximum.
3697c428
 .SH "FILES"
 .LP 
 @CFGDIR@/clamd.conf
4f4b8d1f
 .SH "AUTHORS"
3697c428
 .LP 
4f4b8d1f
 Tomasz Kojm <tkojm@clamav.net>, Kevin Lin <klin@sourcefire.com>
3697c428
 .SH "SEE ALSO"
 .LP 
021b6720
 clamd(8), clamdscan(1), clamav-milter(8), freshclam(1), freshclam.conf(5)