Advertisement
Guest User

Untitled

a guest
May 24th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 7.25 KB | None | 0 0
  1. ##
  2. ## Example config file FOR clamav-milter
  3. ##
  4.  
  5. # Comment OR remove the LINE below.
  6. Example
  7.  
  8.  
  9. ##
  10. ## Main options
  11. ##
  12.  
  13. # Define the interface through which we communicate with sendmail
  14. # This OPTION IS mandatory! Possible formats are:
  15. # [[unix|LOCAL]:]/path/TO/file - TO specify a unix domain socket
  16. # inet:port@[hostname|ip-address] - TO specify an ipv4 socket
  17. # inet6:port@[hostname|ip-address] - TO specify an ipv6 socket
  18. #
  19. # Default: no default
  20. #MilterSocket /var/RUN/clamav-milter/clamav-milter.socket
  21. #MilterSocket inet:7357
  22.  
  23. # Remove stale socket after unclean shutdown.
  24. #
  25. # Default: yes
  26. #FixStaleSocket yes
  27.  
  28. # RUN AS another user (clamav-milter must be started by root FOR this OPTION TO work)
  29. #
  30. # Default: unset (don't drop privileges)
  31. User clamilt
  32.  
  33. # Initialize supplementary group ACCESS (clamav-milter must be started by root).
  34. #
  35. # Default: no
  36. AllowSupplementaryGroups yes
  37.  
  38. # Waiting FOR DATA from clamd will timeout after this time (seconds).
  39. # Value of 0 disables the timeout.
  40. #
  41. # Default: 120
  42. #ReadTimeout 300
  43.  
  44. # Don't fork into background.
  45. #
  46. # Default: no
  47. #Foreground yes
  48.  
  49. # Chroot TO the specified directory.
  50. # Chrooting IS performed just after reading the config file AND before dropping privileges.
  51. #
  52. # Default: unset (don't chroot)
  53. #Chroot /newroot
  54.  
  55. # This OPTION allows you TO save a process identifier of the listening
  56. # daemon (main thread).
  57. #
  58. # Default: disabled
  59. #PidFile /var/RUN/clamav-milter/clamav-milter.pid
  60.  
  61. # Optional path TO the global temporary directory.
  62. # Default: SYSTEM specific (usually /tmp OR /var/tmp).
  63. #
  64. #TemporaryDirectory /var/tmp
  65.  
  66. ##
  67. ## Clamd options
  68. ##
  69.  
  70. # Define the clamd socket TO connect TO FOR scanning.
  71. # This OPTION IS mandatory! Syntax:
  72. # ClamdSocket unix:path
  73. # ClamdSocket tcp:host:port
  74. # The first syntax specifies a LOCAL unix socket (needs an ABSOLUTE path) e.g.:
  75. #     ClamdSocket unix:/var/RUN/clamd/clamd.socket
  76. # The second syntax specifies a tcp LOCAL OR remote tcp socket: the
  77. # host can be a hostname OR an ip address; the ":port" FIELD IS only required
  78. # FOR IPv6 addresses, otherwise it defaults TO 3310
  79. #     ClamdSocket tcp:192.168.0.1
  80. #
  81. # This OPTION can be repeated several times with different sockets OR even
  82. # with the same socket: clamd servers will be selected in a round-robin fashion.
  83. #
  84. # Default: no default
  85. #ClamdSocket tcp:scanner.mydomain:7357
  86.  
  87.  
  88. ##
  89. ## Exclusions
  90. ##
  91.  
  92. # Messages originating from these hosts/networks will NOT be scanned
  93. # This OPTION takes a host(NAME)/mask pair in CIRD notation AND can be
  94. # repeated several times. IF "/mask" IS omitted, a host IS assumed.
  95. # TO specify a locally orignated, non-smtp, email use the keyword "local"
  96. #
  97. # Default: unset (scan everything regardless of the origin)
  98. #LocalNet LOCAL
  99. #LocalNet 192.168.0.0/24
  100. #LocalNet 1111:2222:3333::/48
  101.  
  102. # This OPTION specifies a file which contains a LIST of basic POSIX regular
  103. # expressions. Addresses (sent TO OR from - see below) matching these regexes
  104. # will NOT be scanned.  Optionally each LINE can start with the STRING "From:"
  105. # OR "To:" (note: no whitespace after the colon) indicating IF it IS,
  106. # respectively, the sender OR recipient that IS TO be whitelisted.
  107. # IF the FIELD IS missing, "To:" IS assumed.
  108. # Lines starting with #, : OR ! are ignored.
  109. #
  110. # Default unset (no exclusion applied)
  111. #Whitelist /etc/whitelisted_addresses
  112.  
  113. # Messages from authenticated SMTP users matching this extended POSIX
  114. # regular expression (egrep-like) will NOT be scanned.
  115. # Note: this IS the AUTH login NAME!
  116. #
  117. # Default: unset (no whitelisting based ON SMTP auth)
  118. #SkipAuthenticated ^(tom|dick|henry)$
  119.  
  120.  
  121. ##
  122. ## Actions
  123. ##
  124.  
  125. # The following group of options controls the delievery process under
  126. # different circumstances.
  127. # The following actions are available:
  128. # - Accept
  129. #   The message IS accepted FOR delievery
  130. # - Reject
  131. #   Immediately refuse delievery (a 5xx ERROR IS returned TO the peer)
  132. # - Defer
  133. #   RETURN a temporary failure message (4xx) TO the peer
  134. # - Blackhole (NOT available FOR OnFail)
  135. #   Like Accept but the message IS sent TO oblivion
  136. # - Quarantine (NOT available FOR OnFail)
  137. #   Like Accept but message IS quarantined instead of being delivered
  138. #
  139. # NOTE: In Sendmail the quarantine queue can be examined via mailq -qQ
  140. # FOR Postfix this causes the message TO be placed ON hold
  141. #
  142. # Action TO be performed ON clean messages (mostly useful FOR testing)
  143. # Default Accept
  144. #OnClean Accept
  145.  
  146. # Action TO be performed ON infected messages
  147. # Default: Quarantine
  148. #OnInfected Quarantine
  149.  
  150. # Action TO be performed ON ERROR conditions (this includes failure TO
  151. # allocate DATA structures, no scanners available, network timeouts,
  152. # unknown scanner replies AND the like)
  153. # Default Defer
  154. #OnFail Defer
  155.  
  156. # This OPTION allows TO set a specific rejection reason FOR infected messages
  157. # AND it's therefore only useful together with "OnInfected Reject"
  158. # The STRING "%v", IF present, will be replaced with the virus NAME.
  159. # Default: MTA specific
  160. #RejectMsg
  161.  
  162. # IF this OPTION IS set TO "Replace" (OR "Yes"), an "X-Virus-Scanned" AND an
  163. # "X-Virus-Status" headers will be attached TO each processed message, possibly
  164. # replacing existing headers.
  165. # IF it IS set TO Add, the X-Virus headers are added possibly ON top of the
  166. # existing ones.
  167. # Note that WHILE "Replace" can potentially break DKIM signatures, "Add" may
  168. # confuse procmail AND similar filters.
  169. # Default: no
  170. #AddHeader Replace
  171.  
  172.  
  173. ##
  174. ## Logging options
  175. ##
  176.  
  177. # Uncomment this OPTION TO enable logging.
  178. # LogFile must be writable FOR the user running daemon.
  179. # A full path IS required.
  180. #
  181. # Default: disabled
  182. #LogFile /var/LOG/clamav-milter.LOG
  183.  
  184. # By default the LOG file IS locked FOR writing - the LOCK protects against
  185. # running clamav-milter multiple times.
  186. # This OPTION disables LOG file locking.
  187. #
  188. # Default: no
  189. #LogFileUnlock yes
  190.  
  191. # Maximum size of the LOG file.
  192. # Value of 0 disables the limit.
  193. # You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)
  194. # AND 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size
  195. # in bytes just don't use modifiers.
  196. #
  197. # Default: 1M
  198. #LogFileMaxSize 2M
  199.  
  200. # LOG time with each message.
  201. #
  202. # Default: no
  203. #LogTime yes
  204.  
  205. # Use SYSTEM logger (can work together with LogFile).
  206. #
  207. # Default: no
  208. LogSyslog yes
  209.  
  210. # Specify the TYPE of syslog messages - please refer TO 'man syslog'
  211. # FOR facility names.
  212. #
  213. # Default: LOG_LOCAL6
  214. #LogFacility LOG_MAIL
  215.  
  216. # Enable verbose logging.
  217. #
  218. # Default: no
  219. #LogVerbose yes
  220.  
  221. # This OPTION allows TO tune what IS logged when a message IS infected.
  222. # Possible values are OFF (the default - nothing IS logged),
  223. # Basic (minimal info logged), Full (verbose info logged)
  224. # Note:
  225. # FOR this TO work properly in sendmail, make sure the msg_id, mail_addr,
  226. # rcpt_addr AND i macroes are available in eom. In other words add a LINE like:
  227. # Milter.macros.eom={msg_id}, {mail_addr}, {rcpt_addr}, i
  228. # TO your .cf file. Alternatively use the macro:
  229. # define(`confMILTER_MACROS_EOM', `{msg_id}, {mail_addr}, {rcpt_addr}, i')
  230. # Postfix should be working fine with the default settings.
  231. #
  232. # Default: disabled
  233. #LogInfected Basic
  234.  
  235.  
  236. ##
  237. ## Limits
  238. ##
  239.  
  240. # Messages larger than this value won't be scanned.
  241. # Make sure this value IS lower OR equal than StreamMaxLength in clamd.conf
  242. #
  243. # Default: 25M
  244. #MaxFileSize 10M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement