clamav-devel/etc/clamd.conf
28e73e95
 ##
 ## Example config file for the Clam AV daemon
b2d28e76
 ## Please read the clamd.conf(5) manual before editing this file.
28e73e95
 ##
96b02502
 
28e73e95
 
 # Comment or remove the line below.
 Example
 
 # Uncomment this option to enable logging.
c6dbfbcb
 # LogFile must be writable for the user running daemon.
 # A full path is required.
 # Default: disabled
28e73e95
 #LogFile /tmp/clamd.log
 
 # By default the log file is locked for writing - the lock protects against
 # running clamd multiple times (if want to run another clamd, please
 # copy the configuration file, change the LogFile variable, and run
c6dbfbcb
 # the daemon with --config-file option).
 # This option disables log file locking.
 # Default: disabled
28e73e95
 #LogFileUnlock
 
c6dbfbcb
 # Maximal size of the log file.
28e73e95
 # Value of 0 disables the limit.
 # You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)
 # and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size
 # in bytes just don't use modifiers.
c6dbfbcb
 # Default: 1M
28e73e95
 #LogFileMaxSize 2M
 
c6dbfbcb
 # Log time with each message.
 # Default: disabled
28e73e95
 #LogTime
 
c6dbfbcb
 # Also log clean files. Useful in debugging but drastically increases the
 # log size.
 # Default: disabled
ee039e40
 #LogClean
 
28e73e95
 # Use system logger (can work together with LogFile).
c6dbfbcb
 # Default: disabled
28e73e95
 #LogSyslog
 
c695dab4
 # Specify the type of syslog messages - please refer to 'man syslog'
c6dbfbcb
 # for facility names.
 # Default: LOG_LOCAL6
c695dab4
 #LogFacility LOG_MAIL
 
28e73e95
 # Enable verbose logging.
c6dbfbcb
 # Default: disabled
28e73e95
 #LogVerbose
 
c6dbfbcb
 # This option allows you to save a process identifier of the listening
28e73e95
 # daemon (main thread).
c6dbfbcb
 # Default: disabled
28e73e95
 #PidFile /var/run/clamd.pid
 
ee039e40
 # Optional path to the global temporary directory.
c6dbfbcb
 # Default: system specific (usually /tmp or /var/tmp).
ee039e40
 #TemporaryDirectory /var/tmp
 
95d401c4
 # Path to the database directory.
c6dbfbcb
 # Default: hardcoded (depends on installation options)
95d401c4
 #DatabaseDirectory /var/lib/clamav
96b02502
 
c6dbfbcb
 # The daemon works in a local OR a network mode. Due to security reasons we
 # recommend the local mode.
28e73e95
 
c6dbfbcb
 # Path to a local socket file the daemon will listen on.
 # Default: disabled
28e73e95
 LocalSocket /tmp/clamd
 
049a18b9
 # Remove stale socket after unclean shutdown.
c6dbfbcb
 # Default: disabled
08d6b1e3
 FixStaleSocket
8139fd99
 
5def21ff
 # TCP port address.
c6dbfbcb
 # Default: disabled
5def21ff
 #TCPSocket 3310
 
8139fd99
 # TCP address.
 # By default we bind to INADDR_ANY, probably not wise.
 # Enable the following to provide some degree of protection
 # from the outside world.
c6dbfbcb
 # Default: disabled
8139fd99
 #TCPAddr 127.0.0.1
049a18b9
 
28e73e95
 # Maximum length the queue of pending connections may grow to.
c6dbfbcb
 # Default: 15
28e73e95
 #MaxConnectionQueueLength 30
 
 # Close the connection if this limit is exceeded.
c6dbfbcb
 # Default: 10M
 #StreamMaxLength 20M
28e73e95
 
c6dbfbcb
 # Maximal number of threads running at the same time.
 # Default: 10
 #MaxThreads 20
28e73e95
 
7390dfcd
 # Waiting for data from a client socket will timeout after this time (seconds).
c6dbfbcb
 # Value of 0 disables the timeout.
 # Default: 120
7390dfcd
 #ReadTimeout 300
28e73e95
 
c6dbfbcb
 # Maximal depth directories are scanned at.
 # Default: 15
 #MaxDirectoryRecursion 20
28e73e95
 
c6dbfbcb
 # Follow directory symlinks.
 # Default: disabled
28e73e95
 #FollowDirectorySymlinks
 
 # Follow regular file symlinks.
c6dbfbcb
 # Default: disabled
28e73e95
 #FollowFileSymlinks
 
c6dbfbcb
 # Perform internal sanity check (database integrity and freshness).
 # Default: 1800 (30 min)
28e73e95
 #SelfCheck 600
 
c6dbfbcb
 # Execute a command when virus is found. In the command string %v will
 # be replaced by a virus name.
 # Default: disabled
9cb8aa62
 #VirusEvent /usr/local/bin/send_sms 123456789 "VIRUS ALERT: %v"
0249f9d2
 
c6dbfbcb
 # Run as a selected user (clamd must be started by root).
 # Default: disabled
28e73e95
 #User clamav
 
c6dbfbcb
 # Initialize supplementary group access (clamd must be started by root).
 # Default: disabled
28e73e95
 #AllowSupplementaryGroups
 
c6dbfbcb
 # Don't fork into background.
 # Default: disabled
28e73e95
 #Foreground
 
0249f9d2
 # Enable debug messages in libclamav.
c6dbfbcb
 # Default: disabled
0249f9d2
 #Debug
 
590135f9
 # Do not remove temporary files (for debug purposes).
c6dbfbcb
 # Default: disabled
590135f9
 #LeaveTemporaryFiles
 
a9082ea2
 
c6dbfbcb
 # By default clamd uses scan options recommended by libclamav. This option
 # disables recommended options and allows you to enable selected ones below.
 # DO NOT TOUCH IT unless you know what you are doing.
 # Default: disabled
 #DisableDefaultScanOptions
 
a9082ea2
 ##
 ## Executable files
 ##
 
 # 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
c6dbfbcb
 # required for decompression of popular executable packers such as UPX, FSG,
 # and Petite.
 # Default: enabled
 #ScanPE
a9082ea2
 
20c3d44d
 # With this option clamav will try to detect broken executables and mark
 # them as Broken.Executable
c6dbfbcb
 # Default: disabled
20c3d44d
 #DetectBrokenExecutables
 
 
28e73e95
 ##
a9082ea2
 ## Documents
47bbbc56
 ##
 
 # This option enables scanning of Microsoft Office document macros.
c6dbfbcb
 # Default: enabled
 #ScanOLE2
47bbbc56
 
 ##
a9082ea2
 ## Mail files
28e73e95
 ##
 
a36e6e5c
 # Enable internal e-mail scanner.
c6dbfbcb
 # Default: enabled
 #ScanMail
a36e6e5c
 
 # If an email contains URLs ClamAV can download and scan them.
 # WARNING: This option may open your system to a DoS attack.
 #	   Never use it on loaded servers.
c6dbfbcb
 # Default: disabled
a36e6e5c
 #MailFollowURLs
 
28e73e95
 
 ##
a9082ea2
 ## HTML
888f5794
 ##
 
c6dbfbcb
 # Perform HTML normalisation and decryption of MS Script Encoder code.
 # Default: enabled
 #ScanHTML
888f5794
 
a36e6e5c
 
888f5794
 ##
a9082ea2
 ## Archives
28e73e95
 ##
 
c6dbfbcb
 # ClamAV can scan within archives and compressed files.
 # Default: enabled
 #ScanArchive
8139fd99
 
c6dbfbcb
 # The options below protect your system against Denial of Service attacks
 # using archive bombs.
28e73e95
 
 # Files in archives larger than this limit won't be scanned.
 # Value of 0 disables the limit.
c6dbfbcb
 # Default: 10M
 #ArchiveMaxFileSize 15M
 
 # 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
 # deep the process should be continued.
28e73e95
 # Value of 0 disables the limit.
c6dbfbcb
 # Default: 5
 #ArchiveMaxRecursion 8
28e73e95
 
c6dbfbcb
 # Number of files to be scanned within an archive.
28e73e95
 # Value of 0 disables the limit.
c6dbfbcb
 # Default: 1000
 #ArchiveMaxFiles 1500
28e73e95
 
c6dbfbcb
 # If a file in an archive is compressed more than ArchiveMaxCompressionRatio
 # times it will be marked as a virus (Oversized.ArchiveType, e.g. Oversized.Zip)
 # Value of 0 disables the limit.
 # Default: 250
 #ArchiveMaxCompressionRatio 300
a6945b5d
 
c6dbfbcb
 # Use slower but memory efficient decompression algorithm.
 # only affects the bzip2 decompressor.
 # Default: disabled
28e73e95
 #ArchiveLimitMemoryUsage
 
fb787a06
 # Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR).
c6dbfbcb
 # Default: disabled
5484e03c
 #ArchiveBlockEncrypted
0f34221a
 
d272908a
 # Mark archives as viruses if ArchiveMaxFiles, ArchiveMaxFileSize, or
 # ArchiveMaxRecursion limit is reached.
c6dbfbcb
 # Default: disabled
d272908a
 #ArchiveBlockMax
 
0f34221a
 
28e73e95
 ##
 ## Clamuko settings
 ## WARNING: This is experimental software. It is very likely it will hang
d272908a
 ##	    up your system!!!
28e73e95
 ##
 
 # Enable Clamuko. Dazuko (/dev/dazuko) must be configured and running.
c6dbfbcb
 # Default: disabled
2b278a02
 #ClamukoScanOnAccess
28e73e95
 
 # Set access mask for Clamuko.
c6dbfbcb
 # Default: disabled
 #ClamukoScanOnOpen
 #ClamukoScanOnClose
 #ClamukoScanOnExec
28e73e95
 
 # Set the include paths (all files in them will be scanned). You can have
c6dbfbcb
 # multiple ClamukoIncludePath directives but each directory must be added
 # in a seperate line.
 # Default: disabled
 #ClamukoIncludePath /home
28e73e95
 #ClamukoIncludePath /students
 
 # Set the exclude paths. All subdirectories are also excluded.
c6dbfbcb
 # Default: disabled
28e73e95
 #ClamukoExcludePath /home/guru
 
c6dbfbcb
 # Don't scan files larger than ClamukoMaxFileSize
 # Value of 0 disables the limit.
 # Default: 5M
 #ClamukoMaxFileSize 10M
28e73e95
 
c6dbfbcb
 # FIXME: Add support for other directives.
 #ClamukoScanArchive