2018-04-13 17:16:49 +02:00
|
|
|
--- etc/clamav-milter.conf.sample.orig
|
|
|
|
+++ etc/clamav-milter.conf.sample
|
2009-04-07 12:45:24 +02:00
|
|
|
@@ -2,10 +2,6 @@
|
|
|
|
## Example config file for clamav-milter
|
|
|
|
##
|
|
|
|
|
|
|
|
-# Comment or remove the line below.
|
|
|
|
-Example
|
|
|
|
-
|
|
|
|
-
|
|
|
|
##
|
|
|
|
## Main options
|
|
|
|
##
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -17,8 +13,7 @@ Example
|
2009-04-07 12:45:24 +02:00
|
|
|
# inet6:port@[hostname|ip-address] - to specify an ipv6 socket
|
|
|
|
#
|
|
|
|
# Default: no default
|
|
|
|
-#MilterSocket /tmp/clamav-milter.socket
|
|
|
|
-#MilterSocket inet:7357
|
2020-05-12 20:00:54 +02:00
|
|
|
+MilterSocket /run/clamav/clamav-milter-socket
|
2009-04-07 12:45:24 +02:00
|
|
|
|
2010-04-08 22:11:51 +02:00
|
|
|
# Define the group ownership for the (unix) milter socket.
|
|
|
|
# Default: disabled (the primary group of the user running clamd)
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -37,7 +32,7 @@ Example
|
|
|
|
# to work)
|
2009-04-07 12:45:24 +02:00
|
|
|
#
|
|
|
|
# Default: unset (don't drop privileges)
|
|
|
|
-#User clamav
|
|
|
|
+User vscan
|
|
|
|
|
2018-04-13 17:16:49 +02:00
|
|
|
# Waiting for data from clamd will timeout after this time (seconds).
|
|
|
|
# Value of 0 disables the timeout.
|
|
|
|
@@ -61,7 +56,7 @@ Example
|
2009-04-07 12:45:24 +02:00
|
|
|
# daemon (main thread).
|
|
|
|
#
|
|
|
|
# Default: disabled
|
|
|
|
-#PidFile /var/run/clamav-milter.pid
|
2020-05-12 20:00:54 +02:00
|
|
|
+PidFile /run/clamav/clamav-milter.pid
|
2009-04-07 12:45:24 +02:00
|
|
|
|
|
|
|
# Optional path to the global temporary directory.
|
|
|
|
# Default: system specific (usually /tmp or /var/tmp).
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -88,7 +83,7 @@ Example
|
|
|
|
# fashion.
|
2009-04-07 12:45:24 +02:00
|
|
|
#
|
|
|
|
# Default: no default
|
|
|
|
-#ClamdSocket tcp:scanner.mydomain:7357
|
2020-05-12 20:00:54 +02:00
|
|
|
+ClamdSocket unix:/run/clamav/clamd-socket
|
2009-04-07 12:45:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
##
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -238,13 +233,13 @@ Example
|
2009-04-07 12:45:24 +02:00
|
|
|
# Use system logger (can work together with LogFile).
|
|
|
|
#
|
|
|
|
# Default: no
|
|
|
|
-#LogSyslog yes
|
|
|
|
+LogSyslog yes
|
|
|
|
|
|
|
|
# Specify the type of syslog messages - please refer to 'man syslog'
|
|
|
|
# for facility names.
|
|
|
|
#
|
|
|
|
# Default: LOG_LOCAL6
|
|
|
|
-#LogFacility LOG_MAIL
|
|
|
|
+LogFacility LOG_MAIL
|
|
|
|
|
|
|
|
# Enable verbose logging.
|
|
|
|
#
|
2018-04-13 17:16:49 +02:00
|
|
|
--- etc/clamd.conf.sample.orig
|
|
|
|
+++ etc/clamd.conf.sample
|
2007-02-25 12:09:43 +01:00
|
|
|
@@ -1,12 +1,8 @@
|
|
|
|
##
|
|
|
|
-## Example config file for the Clam AV daemon
|
|
|
|
+## Config file for the Clam AV daemon
|
2007-01-16 00:07:16 +01:00
|
|
|
## Please read the clamd.conf(5) manual before editing this file.
|
|
|
|
##
|
|
|
|
|
|
|
|
-
|
|
|
|
-# Comment or remove the line below.
|
|
|
|
-Example
|
|
|
|
-
|
|
|
|
# Uncomment this option to enable logging.
|
|
|
|
# LogFile must be writable for the user running daemon.
|
|
|
|
# A full path is required.
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -41,12 +37,12 @@ Example
|
2007-01-16 00:07:16 +01:00
|
|
|
|
|
|
|
# Use system logger (can work together with LogFile).
|
2007-02-25 12:09:43 +01:00
|
|
|
# Default: no
|
|
|
|
-#LogSyslog yes
|
|
|
|
+LogSyslog yes
|
2007-01-16 00:07:16 +01:00
|
|
|
|
|
|
|
# Specify the type of syslog messages - please refer to 'man syslog'
|
|
|
|
# for facility names.
|
|
|
|
# Default: LOG_LOCAL6
|
|
|
|
-#LogFacility LOG_MAIL
|
|
|
|
+LogFacility LOG_MAIL
|
|
|
|
|
|
|
|
# Enable verbose logging.
|
2007-02-25 12:09:43 +01:00
|
|
|
# Default: no
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -71,7 +67,7 @@ Example
|
2007-01-16 00:07:16 +01:00
|
|
|
# This option allows you to save a process identifier of the listening
|
|
|
|
# daemon (main thread).
|
|
|
|
# Default: disabled
|
|
|
|
-#PidFile /var/run/clamd.pid
|
2020-05-12 20:00:54 +02:00
|
|
|
+PidFile /run/clamav/clamd.pid
|
2007-01-16 00:07:16 +01:00
|
|
|
|
|
|
|
# Optional path to the global temporary directory.
|
|
|
|
# Default: system specific (usually /tmp or /var/tmp).
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -90,7 +86,7 @@ Example
|
2007-01-16 00:07:16 +01:00
|
|
|
|
|
|
|
# Path to a local socket file the daemon will listen on.
|
2007-02-25 12:09:43 +01:00
|
|
|
# Default: disabled (must be specified by a user)
|
2010-04-08 22:11:51 +02:00
|
|
|
-#LocalSocket /tmp/clamd.socket
|
2020-05-12 20:00:54 +02:00
|
|
|
+LocalSocket /run/clamav/clamd-socket
|
2007-01-16 00:07:16 +01:00
|
|
|
|
2010-04-08 22:11:51 +02:00
|
|
|
# Sets the group ownership on the unix socket.
|
|
|
|
# Default: disabled (the primary group of the user running clamd)
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -106,7 +102,7 @@ Example
|
2007-01-16 00:07:16 +01:00
|
|
|
|
|
|
|
# TCP port address.
|
2007-02-25 12:09:43 +01:00
|
|
|
# Default: no
|
2007-01-16 00:07:16 +01:00
|
|
|
-#TCPSocket 3310
|
|
|
|
+TCPSocket 3310
|
|
|
|
|
|
|
|
# TCP address.
|
|
|
|
# By default we bind to INADDR_ANY, probably not wise.
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -114,7 +110,7 @@ Example
|
2014-05-08 17:21:16 +02:00
|
|
|
# from the outside world. This option can be specified multiple
|
|
|
|
# times if you want to listen on multiple IPs. IPv6 is now supported.
|
2007-02-25 12:09:43 +01:00
|
|
|
# Default: no
|
2007-01-16 00:07:16 +01:00
|
|
|
-#TCPAddr 127.0.0.1
|
|
|
|
+TCPAddr 127.0.0.1
|
|
|
|
|
|
|
|
# Maximum length the queue of pending connections may grow to.
|
2011-02-01 16:39:04 +01:00
|
|
|
# Default: 200
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -204,7 +200,7 @@ Example
|
2008-02-25 17:07:24 +01:00
|
|
|
|
|
|
|
# Run as another user (clamd must be started by root for this option to work)
|
2007-02-25 12:09:43 +01:00
|
|
|
# Default: don't drop privileges
|
2007-01-16 00:07:16 +01:00
|
|
|
-#User clamav
|
|
|
|
+User vscan
|
|
|
|
|
2018-04-13 17:16:49 +02:00
|
|
|
# Stop daemon when libclamav reports out of memory condition.
|
|
|
|
#ExitOnOOM yes
|
|
|
|
--- etc/freshclam.conf.sample.orig
|
|
|
|
+++ etc/freshclam.conf.sample
|
2007-02-25 12:09:43 +01:00
|
|
|
@@ -1,12 +1,8 @@
|
|
|
|
##
|
|
|
|
-## Example config file for freshclam
|
|
|
|
+## Config file for freshclam
|
|
|
|
## Please read the freshclam.conf(5) manual before editing this file.
|
2007-01-16 00:07:16 +01:00
|
|
|
##
|
|
|
|
|
|
|
|
-
|
|
|
|
-# Comment or remove the line below.
|
|
|
|
-Example
|
|
|
|
-
|
|
|
|
# Path to the database directory.
|
|
|
|
# WARNING: It must match clamd.conf's directive!
|
|
|
|
# Default: hardcoded (depends on installation options)
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -35,12 +31,12 @@ Example
|
2007-01-16 00:07:16 +01:00
|
|
|
|
|
|
|
# Use system logger (can work together with UpdateLogFile).
|
2007-02-25 12:09:43 +01:00
|
|
|
# Default: no
|
|
|
|
-#LogSyslog yes
|
|
|
|
+LogSyslog yes
|
2007-01-16 00:07:16 +01:00
|
|
|
|
|
|
|
# Specify the type of syslog messages - please refer to 'man syslog'
|
|
|
|
# for facility names.
|
|
|
|
# Default: LOG_LOCAL6
|
|
|
|
-#LogFacility LOG_MAIL
|
|
|
|
+LogFacility LOG_MAIL
|
|
|
|
|
2013-09-28 09:38:07 +02:00
|
|
|
# Enable log rotation. Always enabled when LogFileMaxSize is enabled.
|
|
|
|
# Default: no
|
2018-04-13 17:16:49 +02:00
|
|
|
@@ -48,12 +44,12 @@ Example
|
2013-09-28 09:38:07 +02:00
|
|
|
|
2007-01-16 00:07:16 +01:00
|
|
|
# This option allows you to save the process identifier of the daemon
|
|
|
|
# Default: disabled
|
|
|
|
-#PidFile /var/run/freshclam.pid
|
2020-05-12 20:00:54 +02:00
|
|
|
+PidFile /run/clamav/freshclam.pid
|
2007-01-16 00:07:16 +01:00
|
|
|
|
|
|
|
# By default when started freshclam drops privileges and switches to the
|
|
|
|
# "clamav" user. This directive allows you to change the database owner.
|
|
|
|
# Default: clamav (may depend on installation options)
|
|
|
|
-#DatabaseOwner clamav
|
|
|
|
+DatabaseOwner vscan
|
|
|
|
|
2018-04-13 17:16:49 +02:00
|
|
|
# Use DNS to verify virus database version. Freshclam uses DNS TXT records
|
|
|
|
# to verify database and software versions. With this directive you can change
|
2019-01-21 18:35:52 +01:00
|
|
|
@@ -127,7 +123,7 @@ DatabaseMirror database.clamav.net
|
2007-01-16 00:07:16 +01:00
|
|
|
|
|
|
|
# Send the RELOAD command to clamd.
|
2007-02-25 12:09:43 +01:00
|
|
|
# Default: no
|
|
|
|
-#NotifyClamd /path/to/clamd.conf
|
|
|
|
+NotifyClamd /etc/clamd.conf
|
|
|
|
|
|
|
|
# Run command after successful database update.
|
2007-01-16 00:07:16 +01:00
|
|
|
# Default: disabled
|