docs/man/freshclam.conf.5.in
4f4b8d1f
 .TH "freshclam.conf" "5" "December 4, 2013" "ClamAV @VERSION@" "Clam AntiVirus"
3697c428
 .SH "NAME"
 .LP 
f3a638e4
 \fBfreshclam.conf\fR \- Configuration file for Clam AntiVirus database update tool
3697c428
 .SH "DESCRIPTION"
 .LP 
 The file freshclam.conf configures the Clam AntiVirus Database Updater, freshclam(1).
 .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 
 When an option is not used (hashed or doesn't exist in the configuration file) freshclam takes a default action.
 .TP 
 \fBExample\fR
c6dbfbcb
 If this option is set freshclam will not run.
ca350fed
 .TP
 \fBLogFileMaxSize SIZE\fR
 Limit the size of the log file. The logger will be automatically disabled if the file is greater than SIZE. Value of 0 disables the limit.
 .br
4f4b8d1f
 Default: 1M 
 .TP
 \fBLogTime BOOL\fR
 Log time with each message.
 .br
 Default: no
 .TP
f3a638e4
 \fBLogSyslog BOOL\fR
8589f1a0
 Enable logging to Syslog. May be used in combination with UpdateLogFile.
3697c428
 .br 
 Default: disabled.
 .TP 
f3a638e4
 \fBLogFacility STRING\fR
c6dbfbcb
 Specify the type of syslog messages \- please refer to 'man syslog' for facility names.
 .br 
 Default: LOG_LOCAL6
 .TP 
4f4b8d1f
 \fBLogVerbose BOOL\fR
 Enable verbose logging.
 .br 
 Default: disabled
 .TP
 \fBLogRotate BOOL\fR
 Rotate log file. Requires LogFileMaxSize option set prior to this option.
 .br
 Default: no
 .TP 
f3a638e4
 \fBPidFile STRING\fR
 This option allows you to save the process identifier of the daemon to a file specified in the argument.
8589f1a0
 .br 
 Default: disabled
 .TP 
4f4b8d1f
 \fBDatabaseDirectory STRING\fR
 Path to a directory containing database files.
 .br 
 Default: @DBDIR@
 .TP
 \fBForeground BOOL\fR
 Don't fork into background.
 .br
 Default: no
 .TP
 \fBDebug BOOL\fR
 Enable debug messages in libclamav.
 .br
 Default: no
 .TP 
 \fBUpdateLogFile STRING\fR
 Enable logging to a specified file. Highly recommended.
 .br 
 Default: disabled.
 .TP 
 \fBDatabaseOwner STRING\fR
 When started by root, drop privileges to a specified user. 
 .br 
 Default: @CLAMAVUSER@
 .TP 
 \fBChecks NUMBER\fR
 Number of database checks per day.
 .br 
 Default: 12
 .TP 
c6dbfbcb
 \fBDNSDatabaseInfo STRING\fR
4f4b8d1f
 Use DNS to verify the virus database version. Freshclam uses DNS TXT records to verify the versions of the database and software itself. With this directive you can change the database verification domain.
 .br
 \fBWARNING:\fR Please don't change it unless you're configuring freshclam to use your own database verification domain.
c6dbfbcb
 .br 
efd68190
 Default: enabled, pointing to current.cvd.clamav.net
3697c428
 .TP 
 \fBDatabaseMirror STRING\fR
964a1e73
 DatabaseMirror specifies to which mirror(s) freshclam should connect. You should have at least two entries: db.XY.clamav.net (or db.XY.ipv6.clamav.net for IPv6) and database.clamav.net (in this order). Please replace XY with your country code (see https://www.iana.org/domains/root/db). database.clamav.net is a round-robin record which points to our most reliable mirrors. It's used as a fall back in case db.XY.clamav.net is not working.
3697c428
 .br 
8589f1a0
 Default: database.clamav.net
3697c428
 .TP 
4f4b8d1f
 \fBPrivateMirror STR\fR
 This option allows you to easily point freshclam to private mirrors. If PrivateMirror is set, freshclam does not attempt to use DNS to determine whether its databases are out-of-date, instead it will use the If-Modified-Since request or directly check the headers of the remote database files. For each database, freshclam first attempts to download the CLD file. If that fails, it tries to download the CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple times to provide fall-back mirrors.
 .br 
 Default: disabled
 .TP 
f3a638e4
 \fBMaxAttempts NUMBER\fR
 How many attempts (per mirror) to make before giving up.
3697c428
 .br .
c6dbfbcb
 Default: 3 (per mirror)
3697c428
 .TP 
011b4f29
 \fBScriptedUpdates BOOL\fR
 With this option you can control scripted updates. It's highly recommended to keep it enabled.
 .br .
4f4b8d1f
 Default: yes
011b4f29
 .TP 
361b3285
 \fBTestDatabases BOOL\fR
 With this option enabled, freshclam will attempt to load new databases into memory to make sure they are properly handled by libclamav before replacing the old ones.
 .br .
 Default: enabled
 .TP 
d8b95725
 \fBCompressLocalDatabase BOOL\fR
 By default freshclam will keep the local databases (.cld) uncompressed to make their handling faster. With this option you can enable the compression; the change will take effect with the next database update.
 .br 
 Default: no
4f4b8d1f
 .TP
 \fBExtraDatabase STRING\fR
964a1e73
 Download an additional 3rd party signature database distributed through the ClamAV mirrors. This option can be used multiple times.
4f4b8d1f
 .br
 Default: disabled
d8b95725
 .TP 
4f4b8d1f
 \fBDatabaseCustomURL STRING\fR
b9d1c339
 With this option you can provide custom sources (http:// or file://) for database files. This option can be used multiple times.
 .br 
cc590e07
 Default: disabled
 .TP 
f3a638e4
 \fBHTTPProxyServer STR\fR, \fBHTTPProxyPort NUMBER\fR
875f4a8a
 Use given proxy server and TCP port for database downloads. HTTPProxyPort defaults to 8080.
3697c428
 .TP 
f3a638e4
 \fBHTTPProxyUsername STR\fR,\fBHTTPProxyPassword STRING\fR
3697c428
 Proxy usage is authenticated through given username and password.
 .br .
4f4b8d1f
 Default: disabled
3697c428
 .TP 
8246f576
 \fBHTTPUserAgent STRING\fR
 If your servers are behind a firewall/proxy which applies User-Agent filtering, you can use this option to force the use of a different User-Agent header.
 .br .
 Default: clamav/version_number
 .TP 
f3a638e4
 \fBNotifyClamd STRING\fR
 Notify a running clamd(8) to reload its database after a download has occurred. The path for clamd.conf file must be provided.
3697c428
 .br .
4f4b8d1f
 Default: The default is to not notify clamd. See clamd.conf(5)'s option SelfCheck for how clamd(8) handles database updates in this case.
3697c428
 .TP 
 \fBOnUpdateExecute STRING\fR
 Execute this command after the database has been successfully updated.
c6dbfbcb
 .br 
 Default: disabled
b57b4c36
 .TP
500c39f3
 \fBOnErrorExecute STRING\fR
3697c428
 Execute this command after a database update has failed.
c6dbfbcb
 .br 
 Default: disabled
4f4b8d1f
 .TP 
 \fBOnOutdatedExecute STRING\fR
 Execute this command when freshclam reports outdated version. In the command string %v will be replaced by the new version number.
 .br 
 Default: disabled
 .TP 
 \fBLocalIPAddress IP\fR
 Use \fBIP\fR as client address for downloading databases. Useful for multi homed systems.
 .br .
 Default: Use OS'es default outgoing IP address.
7d1c492d
 .TP
f3a638e4
 \fBConnectTimeout NUMBER\fR
7d1c492d
 Timeout in seconds when connecting to database server.
 .br 
 Default: 10
 .TP
fd39a874
 \fBReceiveTimeout NUMBER\fR
7d1c492d
 Timeout in seconds when reading from database server.
 .br 
 Default: 30
64fd0bfc
 .TP
654efea3
 \fBSafeBrowsing BOOL\fR
964a1e73
 This option enables support for Google Safe Browsing. When activated for the first time, freshclam will download a new database file (safebrowsing.cvd) which will be automatically loaded by clamd and clamscan during the next reload, provided that the heuristic phishing detection is turned on. This database includes information about websites that may be phishing sites or possible sources of malware. When using this option, it's mandatory to run freshclam at least every 30 minutes. Freshclam uses the ClamAV's mirror infrastructure to distribute the database and its updates but all the contents are provided under Google's terms of use. See https://support.google.com/code/answer/70015 and https://www.clamav.net/documents/safebrowsing for more information.
654efea3
 .br
 Default: disabled
010d625d
 .TP
 \fBBytecode BOOL\fR
 This option enables downloading of bytecode.cvd, which includes additional detection mechanisms and improvements to the ClamAV engine.
 .br
 Default: enabled
3697c428
 .SH "FILES"
 .LP 
 @CFGDIR@/freshclam.conf
 .SH "AUTHOR"
 .LP 
4f4b8d1f
 Thomas Lamy <thomas.lamy@netwake.de>, Tomasz Kojm <tkojm@clamav.net>, Kevin Lin <klin@sourcefire.com>
3697c428
 .SH "SEE ALSO"
 .LP 
021b6720
 freshclam(1), clamd.conf(5), clamd(8), clamscan(1)