##
## Example config file for the clamav-milter
## /* FIXME : NOT DONE YET */ Please read the clamav-milter.conf(5) manual before editing this file.
##

# Comment or remove the line below.
Example


##
## Main options
##

# Define the interface through which we communicate with sendmail
# This option is mandatory! Possible formats are:
# [[unix|local]:]/path/to/file - to specify a unix domain socket
# inet:port@[hostname|ip-address] - to specify an ipv4 socket
# inet6:port@[hostname|ip-address] - to specify an ipv6 socket
#Default: no default
##MilterSocket /tmp/clamav-milter.socket
##MilterSocket inet:7357

# Remove stale socket after unclean shutdown.
# Default: yes
#FixStaleSocket yes

# Maximum number of threads running at the same time.
# Default: 10
##MaxThreads 20

# Run as another user (clamav-milter must be started by root for this option to work)
# Default: don't drop privileges
##User clamav

# Initialize supplementary group access (clamd must be started by root).
# Default: no
##AllowSupplementaryGroups no

# Waiting for data from clamd will timeout after this time (seconds).
# Value of 0 disables the timeout.
# Default: 120
##ReadTimeout 300

# Don't fork into background.
# Default: no
##Foreground yes


##
## Clamd options
##

# Define the clamd socket to connect to for scanning.
# If not set (the default), clamav-milter uses internal mode.
# This option is mandatory! Syntax:
# ClamdSocket unix:path
# ClamdSocket tcp:host:port
# The first syntax specifies a local unix socket (needs an bsolute path) e.g.:
#     ClamdSocket unix:/var/run/clamd/clamd.socket
# The second syntax specifies a tcp local or remote tcp socket: the
# host can be a hostname or an ip address; the ":port" field is only required
# for IPv6 addresses, otherwise it defaults to 3310
#     ClamdSocket tcp:192.168.0.1
#
# This option can be repeated several times with different sockets or even
# with the same socket: clamd servers will be selected in a round-robin fashion.
#
# Default: no default
##ClamdSocket tcp:scanner.mydomain:7357

# WARNING: The following options are deprecated and may go away soon.
# Please use ClamdSocket instead!
# Default: disabled
#LocalSocket
#TCPSocket
#TCPAddr


##
## Logging options
##

# Uncomment this option to enable logging.
# LogFile must be writable for the user running daemon.
# A full path is required.
# Default: disabled
##LogFile /tmp/clamav-milter.log

# By default the log file is locked for writing - the lock protects against
# running clamav-milter multiple times.
# This option disables log file locking.
# Default: no
##LogFileUnlock yes

# Maximum size of the log file.
# 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.
# Default: 1M
##LogFileMaxSize 2M

# Log time with each message.
# Default: no
##LogTime yes

# Also log clean files. Useful in debugging but drastically increases the
# log size.
# Default: no
##LogClean yes

# Use system logger (can work together with LogFile).
# Default: no
##LogSyslog yes

# Specify the type of syslog messages - please refer to 'man syslog'
# for facility names.
# Default: LOG_LOCAL6
##LogFacility LOG_MAIL

# Enable verbose logging.
# Default: no
##LogVerbose yes


##
## Limits
##

# Files larger than this value won't be scanned.
# Default: 25M
##MaxFileSize 150M

# WARNING: The following two options are deprecated and may go away soon.
# Please use MaxFile size instead!
# For compatibility reasons the minimum value among MaxFileSize,
# MaxScanSize and StreamMaxLength will be used.
#MaxScanSize
#StreamMaxLength


##
## Deprecated options
##

# The following deprecated options are only kept for compatibility
# reaosns and may go away soon. These do not affect clamav-milter
# in any way, except for a small warning emitted on startup.

#ArchiveBlockEncrypted
#DatabaseDirectory
#Debug
#DetectBrokenExecutables
#LeaveTemporaryFiles
#MailFollowURLs
#MaxRecursion
#MaxFiles
#PhishingSignatures
#PidFile
#ScanArchive
#ScanHTML
#ScanMail
#ScanOLE2
#ScanPE
#TemporaryDirectory