source: npl/mailserver/clamav_conf/clamd.conf

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 11.2 KB
RevLine 
[c5c522c]1##
2## Syn-3 clamd configuration
3## Please read the clamd.conf(5) manual before editing this file.
4
5# Uncomment this option to enable logging.
6# LogFile must be writable for the user running daemon.
7# A full path is required.
8# Default: disabled
9#LogFile /tmp/clamd.log
10
11# By default the log file is locked for writing - the lock protects against
12# running clamd multiple times (if want to run another clamd, please
13# copy the configuration file, change the LogFile variable, and run
14# the daemon with --config-file option).
15# This option disables log file locking.
16# Default: no
17#LogFileUnlock yes
18
19# Maximum size of the log file.
20# Value of 0 disables the limit.
21# You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)
22# and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size
23# in bytes just don't use modifiers.
24# Default: 1M
25#LogFileMaxSize 2M
26
27# Log time with each message.
28# Default: no
29#LogTime yes
30
31# Also log clean files. Useful in debugging but drastically increases the
32# log size.
33# Default: no
34#LogClean yes
35
36# Use system logger (can work together with LogFile).
37# Default: no
38LogSyslog yes
39
40# Specify the type of syslog messages - please refer to 'man syslog'
41# for facility names.
42# Default: LOG_LOCAL6
43LogFacility LOG_MAIL
44
45# Enable verbose logging.
46# Default: no
47LogVerbose yes
48
49# This option allows you to save a process identifier of the listening
50# daemon (main thread).
51# Default: disabled
52PidFile /var/run/clamav/clamd.pid
53
54# Optional path to the global temporary directory.
55# Default: system specific (usually /tmp or /var/tmp).
56#TemporaryDirectory /var/tmp
57
58# Path to the database directory.
59# Default: hardcoded (depends on installation options)
60#DatabaseDirectory /var/lib/clamav
61
62# The daemon works in a local OR a network mode. Due to security reasons we
63# recommend the local mode.
64
65# Path to a local socket file the daemon will listen on.
66# Default: disabled (must be specified by a user)
67LocalSocket /var/run/clamav/clamd
68
69# Remove stale socket after unclean shutdown.
70# Default: yes
71FixStaleSocket yes
72
73# TCP port address.
74# Default: no
75#TCPSocket 3310
76
77# TCP address.
78# By default we bind to INADDR_ANY, probably not wise.
79# Enable the following to provide some degree of protection
80# from the outside world.
81# Default: no
82#TCPAddr 127.0.0.1
83
84# Maximum length the queue of pending connections may grow to.
85# Default: 15
86#MaxConnectionQueueLength 30
87
88# Clamd uses FTP-like protocol to receive data from remote clients.
89# If you are using clamav-milter to balance load between remote clamd daemons
90# on firewall servers you may need to tune the options below.
91
92# Close the connection when the data size limit is exceeded.
93# The value should match your MTA's limit for a maximum attachment size.
94# Default: 10M
95#StreamMaxLength 20M
96
97# Limit port range.
98# Default: 1024
99#StreamMinPort 30000
100# Default: 2048
101#StreamMaxPort 32000
102
103# Maximum number of threads running at the same time.
104# Default: 10
105#MaxThreads 20
106
107# Waiting for data from a client socket will timeout after this time (seconds).
108# Value of 0 disables the timeout.
109# Default: 120
110#ReadTimeout 300
111
112# Waiting for a new job will timeout after this time (seconds).
113# Default: 30
114#IdleTimeout 60
115
116# Don't scan files and directories matching regex
117# This directive can be used multiple times
118# Default: scan all
119#ExcludePath ^/proc/
120#ExcludePath ^/sys/
121
122# Maximum depth directories are scanned at.
123# Default: 15
124#MaxDirectoryRecursion 20
125
126# Follow directory symlinks.
127# Default: no
128#FollowDirectorySymlinks yes
129
130# Follow regular file symlinks.
131# Default: no
132#FollowFileSymlinks yes
133
134# Perform a database check.
135# Default: 1800 (30 min)
136#SelfCheck 600
137
138# Execute a command when virus is found. In the command string %v will
139# be replaced with the virus name.
140# Default: no
141#VirusEvent /usr/local/bin/send_sms 123456789 "VIRUS ALERT: %v"
142
143# Run as another user (clamd must be started by root for this option to work)
144# Default: don't drop privileges
145User amavis
146
147# Initialize supplementary group access (clamd must be started by root).
148# Default: no
149#AllowSupplementaryGroups no
150
151# Stop daemon when libclamav reports out of memory condition.
152ExitOnOOM yes
153
154# Don't fork into background.
155# Default: no
156Foreground yes
157
158# Enable debug messages in libclamav.
159# Default: no
160#Debug yes
161
162# Do not remove temporary files (for debug purposes).
163# Default: no
164#LeaveTemporaryFiles yes
165
166# Detect Possibly Unwanted Applications.
167# Default: no
168#EDWIN: Disabled at 28-03-2012, because of false positives with some pdf files.
169DetectPUA no
170
171# Exclude a specific PUA category. This directive can be used multiple times.
172# See http://www.clamav.net/support/pua for the complete list of PUA
173# categories.
174# Default: Load all categories (if DetectPUA is activated)
175#ExcludePUA NetTool
176#ExcludePUA PWTool
177
178# Only include a specific PUA category. This directive can be used multiple
179# times.
180# Default: Load all categories (if DetectPUA is activated)
181#IncludePUA Spy
182#IncludePUA Scanner
183#IncludePUA RAT
184
185# In some cases (eg. complex malware, exploits in graphic files, and others),
186# ClamAV uses special algorithms to provide accurate detection. This option
187# controls the algorithmic detection.
188# Default: yes
189AlgorithmicDetection yes
190
191
192##
193## Executable files
194##
195
196# PE stands for Portable Executable - it's an executable file format used
197# in all 32 and 64-bit versions of Windows operating systems. This option allows
198# ClamAV to perform a deeper analysis of executable files and it's also
199# required for decompression of popular executable packers such as UPX, FSG,
200# and Petite.
201# Default: yes
202ScanPE yes
203
204# Executable and Linking Format is a standard format for UN*X executables.
205# This option allows you to control the scanning of ELF files.
206# Default: yes
207ScanELF yes
208
209# With this option clamav will try to detect broken executables (both PE and
210# ELF) and mark them as Broken.Executable.
211# Default: no
212DetectBrokenExecutables yes
213
214
215##
216## Documents
217##
218
219# This option enables scanning of OLE2 files, such as Microsoft Office
220# documents and .msi files.
221# Default: yes
222ScanOLE2 yes
223
224# This option enables scanning within PDF files.
225# Default: no
226#ScanPDF yes
227
228
229##
230## Mail files
231##
232
233# Enable internal e-mail scanner.
234# Default: yes
235ScanMail yes
236
237# If an email contains URLs ClamAV can download and scan them.
238# WARNING: This option may open your system to a DoS attack.
239#          Never use it on loaded servers.
240# Default: no
241#MailFollowURLs no
242
243# Scan RFC1341 messages split over many emails.
244# You will need to periodically clean up $TemporaryDirectory/clamav-partial directory.
245# WARNING: This option may open your system to a DoS attack.
246#          Never use it on loaded servers.
247# Default: no
248#ScanPartialMessages yes
249
250
251# With this option enabled ClamAV will try to detect phishing attempts by using
252# signatures.
253# Default: yes
254PhishingSignatures yes
255
256# Scan URLs found in mails for phishing attempts using heuristics.
257# Default: yes
258PhishingScanURLs yes
259
260# Always block SSL mismatches in URLs, even if the URL isn't in the database.
261# This can lead to false positives.
262#
263# Default: no
264#PhishingAlwaysBlockSSLMismatch no
265
266# Always block cloaked URLs, even if URL isn't in database.
267# This can lead to false positives.
268#
269# Default: no
270#PhishingAlwaysBlockCloak no
271
272# Allow heuristic match to take precedence.
273# When enabled, if a heuristic scan (such as phishingScan) detects
274# a possible virus/phish it will stop scan immediately. Recommended, saves CPU
275# scan-time.
276# When disabled, virus/phish detected by heuristic scans will be reported only at
277# the end of a scan. If an archive contains both a heuristically detected
278# virus/phish, and a real malware, the real malware will be reported
279#
280# Keep this disabled if you intend to handle "*.Heuristics.*" viruses
281# differently from "real" malware.
282# If a non-heuristically-detected virus (signature-based) is found first,
283# the scan is interrupted immediately, regardless of this config option.
284#
285# Default: no
286#HeuristicScanPrecedence yes
287
288##
289## Data Loss Prevention (DLP)
290##
291
292# Enable the DLP module
293# Default: No
294#StructuredDataDetection yes
295
296# This option sets the lowest number of Credit Card numbers found in a file
297# to generate a detect.
298# Default: 3
299#StructuredMinCreditCardCount 5
300
301# This option sets the lowest number of Social Security Numbers found
302# in a file to generate a detect.
303# Default: 3
304#StructuredMinSSNCount 5
305
306# With this option enabled the DLP module will search for valid
307# SSNs formatted as xxx-yy-zzzz
308# Default: yes
309#StructuredSSNFormatNormal yes
310
311# With this option enabled the DLP module will search for valid
312# SSNs formatted as xxxyyzzzz
313# Default: no
314#StructuredSSNFormatStripped yes
315
316
317##
318## HTML
319##
320
321# Perform HTML normalisation and decryption of MS Script Encoder code.
322# Default: yes
323ScanHTML yes
324
325
326##
327## Archives
328##
329
330# ClamAV can scan within archives and compressed files.
331# Default: yes
332ScanArchive yes
333
334# Use slower but memory efficient decompression algorithm.
335# only affects the bzip2 decompressor.
336# Default: no
337#ArchiveLimitMemoryUsage yes
338
339# Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR).
340# Default: no
341#ArchiveBlockEncrypted no
342
343
344##
345## Limits
346##
347
348# The options below protect your system against Denial of Service attacks
349# using archive bombs.
350
351# This option sets the maximum amount of data to be scanned for each input file.
352# Archives and other containers are recursively extracted and scanned up to this
353# value.
354# Value of 0 disables the limit
355# Note: disabling this limit or setting it too high may result in severe damage
356# to the system.
357# Default: 100M
358#MaxScanSize 150M
359
360# Files larger than this limit won't be scanned. Affects the input file itself
361# as well as files contained inside it (when the input file is an archive, a
362# document or some other kind of container).
363# Value of 0 disables the limit.
364# Note: disabling this limit or setting it too high may result in severe damage
365# to the system.
366# Default: 25M
367#MaxFileSize 30M
368
369# Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR
370# file, all files within it will also be scanned. This options specifies how
371# deeply the process should be continued.
372# Note: disabling this limit or setting it too high may result in severe damage
373# to the system.
374# Value of 0 disables the limit.
375# Default: 16
376#MaxRecursion 10
377
378# Number of files to be scanned within an archive, a document, or any other
379# container file.
380# Value of 0 disables the limit.
381# Note: disabling this limit or setting it too high may result in severe damage
382# to the system.
383# Default: 10000
384#MaxFiles 15000
385
386
387##
388## Clamuko settings
389## WARNING: This is experimental software. It is very likely it will hang
390##          up your system!!!
391##
392
393# Enable Clamuko. Dazuko (/dev/dazuko) must be configured and running.
394# Default: no
395#ClamukoScanOnAccess yes
396
397# Set access mask for Clamuko.
398# Default: no
399#ClamukoScanOnOpen yes
400#ClamukoScanOnClose yes
401#ClamukoScanOnExec yes
402
403# Set the include paths (all files inside them will be scanned). You can have
404# multiple ClamukoIncludePath directives but each directory must be added
405# in a seperate line.
406# Default: disabled
407#ClamukoIncludePath /home
408#ClamukoIncludePath /students
409
410# Set the exclude paths. All subdirectories are also excluded.
411# Default: disabled
412#ClamukoExcludePath /home/bofh
413
414# Don't scan files larger than ClamukoMaxFileSize
415# Value of 0 disables the limit.
416# Default: 5M
417#ClamukoMaxFileSize 10M
418
419
420#No more then 10 seconds, otherwise we might get smtp timeouts
421BytecodeTimeout 10000
Note: See TracBrowser for help on using the repository browser.