Browse code

add clamav-milter.conf manpage

aCaB authored on 2010/05/13 02:11:25
Showing 9 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed May 12 19:10:39 CEST 2010 (acab)
2
+------------------------------------
3
+ * docs/man: add clamav.milter.conf.5
4
+
1 5
 Wed May 12 14:21:23 CEST 2010 (tk)
2 6
 ----------------------------------
3 7
  * freshclam: fix handling of temporary files
... ...
@@ -60,6 +60,7 @@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
60 60
 	$(srcdir)/clamav-config.in $(srcdir)/libclamav.pc.in \
61 61
 	$(srcdir)/platform.h.in $(top_srcdir)/configure \
62 62
 	$(top_srcdir)/docs/man/clamav-milter.8.in \
63
+	$(top_srcdir)/docs/man/clamav-milter.conf.5.in \
63 64
 	$(top_srcdir)/docs/man/clamconf.1.in \
64 65
 	$(top_srcdir)/docs/man/clamd.8.in \
65 66
 	$(top_srcdir)/docs/man/clamd.conf.5.in \
... ...
@@ -91,10 +92,11 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
91 91
 mkinstalldirs = $(install_sh) -d
92 92
 CONFIG_HEADER = clamav-config.h
93 93
 CONFIG_CLEAN_FILES = clamav-config libclamav.pc platform.h \
94
-	docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 \
95
-	docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 \
96
-	docs/man/freshclam.1 docs/man/freshclam.conf.5 \
97
-	docs/man/sigtool.1 docs/man/clamdtop.1
94
+	docs/man/clamav-milter.8 docs/man/clamav-milter.conf.5 \
95
+	docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 \
96
+	docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 \
97
+	docs/man/freshclam.conf.5 docs/man/sigtool.1 \
98
+	docs/man/clamdtop.1
98 99
 CONFIG_CLEAN_VPATH_FILES =
99 100
 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
100 101
 am__vpath_adj = case $$p in \
... ...
@@ -412,6 +414,8 @@ platform.h: $(top_builddir)/config.status $(srcdir)/platform.h.in
412 412
 	cd $(top_builddir) && $(SHELL) ./config.status $@
413 413
 docs/man/clamav-milter.8: $(top_builddir)/config.status $(top_srcdir)/docs/man/clamav-milter.8.in
414 414
 	cd $(top_builddir) && $(SHELL) ./config.status $@
415
+docs/man/clamav-milter.conf.5: $(top_builddir)/config.status $(top_srcdir)/docs/man/clamav-milter.conf.5.in
416
+	cd $(top_builddir) && $(SHELL) ./config.status $@
415 417
 docs/man/clamconf.1: $(top_builddir)/config.status $(top_srcdir)/docs/man/clamconf.1.in
416 418
 	cd $(top_builddir) && $(SHELL) ./config.status $@
417 419
 docs/man/clamd.8: $(top_builddir)/config.status $(top_srcdir)/docs/man/clamd.8.in
... ...
@@ -19903,7 +19903,7 @@ else
19903 19903
 fi
19904 19904
 
19905 19905
 
19906
-ac_config_files="$ac_config_files clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile test/Makefile unit_tests/Makefile clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc platform.h docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1 docs/man/clamdtop.1"
19906
+ac_config_files="$ac_config_files clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile test/Makefile unit_tests/Makefile clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc platform.h docs/man/clamav-milter.8 docs/man/clamav-milter.conf.5 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1 docs/man/clamdtop.1"
19907 19907
 
19908 19908
 cat >confcache <<\_ACEOF
19909 19909
 # This file is a shell script that caches the results of configure
... ...
@@ -20960,6 +20960,7 @@ do
20960 20960
     "libclamav.pc") CONFIG_FILES="$CONFIG_FILES libclamav.pc" ;;
20961 20961
     "platform.h") CONFIG_FILES="$CONFIG_FILES platform.h" ;;
20962 20962
     "docs/man/clamav-milter.8") CONFIG_FILES="$CONFIG_FILES docs/man/clamav-milter.8" ;;
20963
+    "docs/man/clamav-milter.conf.5") CONFIG_FILES="$CONFIG_FILES docs/man/clamav-milter.conf.5" ;;
20963 20964
     "docs/man/clamconf.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamconf.1" ;;
20964 20965
     "docs/man/clamd.8") CONFIG_FILES="$CONFIG_FILES docs/man/clamd.8" ;;
20965 20966
     "docs/man/clamd.conf.5") CONFIG_FILES="$CONFIG_FILES docs/man/clamd.conf.5" ;;
... ...
@@ -23548,6 +23549,7 @@ do
23548 23548
     "libclamav.pc") CONFIG_FILES="$CONFIG_FILES libclamav.pc" ;;
23549 23549
     "platform.h") CONFIG_FILES="$CONFIG_FILES platform.h" ;;
23550 23550
     "docs/man/clamav-milter.8") CONFIG_FILES="$CONFIG_FILES docs/man/clamav-milter.8" ;;
23551
+    "docs/man/clamav-milter.conf.5") CONFIG_FILES="$CONFIG_FILES docs/man/clamav-milter.conf.5" ;;
23551 23552
     "docs/man/clamconf.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamconf.1" ;;
23552 23553
     "docs/man/clamd.8") CONFIG_FILES="$CONFIG_FILES docs/man/clamd.8" ;;
23553 23554
     "docs/man/clamd.conf.5") CONFIG_FILES="$CONFIG_FILES docs/man/clamd.conf.5" ;;
... ...
@@ -1605,6 +1605,7 @@ clamav-config
1605 1605
 libclamav.pc
1606 1606
 platform.h
1607 1607
 docs/man/clamav-milter.8
1608
+docs/man/clamav-milter.conf.5
1608 1609
 docs/man/clamconf.1
1609 1610
 docs/man/clamd.8
1610 1611
 docs/man/clamd.conf.5
... ...
@@ -17,4 +17,4 @@
17 17
 #  MA 02110-1301, USA.
18 18
 
19 19
 EXTRA_DIST = html $(top_srcdir)/docs/man/*.in clamdoc.pdf clamdoc.tex clamav-mirror-howto.pdf clamav-mirror-howto.tex phishsigs_howto.tex phishsigs_howto.pdf signatures.pdf signatures.tex clam.eps
20
-man_MANS = man/clamscan.1 man/freshclam.1 man/sigtool.1 man/clamd.8 man/clamd.conf.5 man/clamdscan.1 man/clamav-milter.8 man/freshclam.conf.5 man/clamconf.1 man/clamdtop.1
20
+man_MANS = man/clamscan.1 man/freshclam.1 man/sigtool.1 man/clamd.8 man/clamd.conf.5 man/clamdscan.1 man/clamav-milter.8 man/clamav-milter.conf.5 man/freshclam.conf.5 man/clamconf.1 man/clamdtop.1
... ...
@@ -270,7 +270,7 @@ top_build_prefix = @top_build_prefix@
270 270
 top_builddir = @top_builddir@
271 271
 top_srcdir = @top_srcdir@
272 272
 EXTRA_DIST = html $(top_srcdir)/docs/man/*.in clamdoc.pdf clamdoc.tex clamav-mirror-howto.pdf clamav-mirror-howto.tex phishsigs_howto.tex phishsigs_howto.pdf signatures.pdf signatures.tex clam.eps
273
-man_MANS = man/clamscan.1 man/freshclam.1 man/sigtool.1 man/clamd.8 man/clamd.conf.5 man/clamdscan.1 man/clamav-milter.8 man/freshclam.conf.5 man/clamconf.1 man/clamdtop.1
273
+man_MANS = man/clamscan.1 man/freshclam.1 man/sigtool.1 man/clamd.8 man/clamd.conf.5 man/clamdscan.1 man/clamav-milter.8 man/clamav-milter.conf.5 man/freshclam.conf.5 man/clamconf.1 man/clamdtop.1
274 274
 all: all-am
275 275
 
276 276
 .SUFFIXES:
... ...
@@ -33,4 +33,4 @@ Read configuration from FILE.
33 33
 aCaB <acab@clamav.net>
34 34
 .SH "SEE ALSO"
35 35
 .LP
36
-sendmail(8), clamd(8), clamd.conf(5)
36
+sendmail(8), clamav-milter.conf(5), clamd(8), clamd.conf(5)
37 37
new file mode 100644
... ...
@@ -0,0 +1,235 @@
0
+.TH "clamav-milter.conf" "5" "February 12, 2007" "ClamAV @VERSION@" "Clam AntiVirus"
1
+.SH "NAME"
2
+.LP 
3
+\fBclamav-milter.conf\fR \- Configuration file for clamav-milter
4
+.SH "DESCRIPTION"
5
+.LP 
6
+clamav-milter.conf contains the configuration options for clamav-milter(8).
7
+.SH "FILE FORMAT"
8
+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:
9
+.TP 
10
+\fBBOOL\fR
11
+Boolean value (yes/no or true/false or 1/0).
12
+.TP 
13
+\fBSTRING\fR
14
+String without blank characters.
15
+.TP 
16
+\fBSIZE\fR
17
+Size in bytes. You can use 'M' or 'm' modifiers for megabytes and 'K' or 'k' for kilobytes.
18
+.TP 
19
+\fBNUMBER\fR
20
+Unsigned integer.
21
+.SH "MAIN OPTIONS"
22
+.TP 
23
+\fBExample\fR
24
+If this option is set clamav-milter will not run.
25
+.TP 
26
+\fBMilterSocket STRING\fR
27
+Define the interface through which we communicate with sendmail. This option is mandatory!
28
+.br
29
+Possible formats are:
30
+.br
31
+[[unix|local\]:\]/path/to/file - to specify a unix domain socket
32
+.br
33
+inet:port@[hostname|ip-address] - to specify an ipv4 socket
34
+.br
35
+inet6:port@[hostname|ip-address] - to specify an ipv6 socket
36
+.br 
37
+Default: unset
38
+.TP 
39
+\fBMilterSocketGroup STRING\fR
40
+Define the group ownership for the (unix) milter socket.
41
+.br
42
+Default: disabled (the primary group of the user running clamd)
43
+.TP 
44
+\fBMilterSocketMode STRING\fR
45
+Sets the permissions on the (unix) milter socket to the specified mode.
46
+.br
47
+Default: disabled (obey umask)
48
+.TP 
49
+\fBFixStaleSocket BOOL\fR
50
+Remove stale socket after unclean shutdown.
51
+.br
52
+Default: yes
53
+.TP
54
+\fBUser STRING\fR
55
+Run as another user (clamav-milter must be started by root for this option to work)
56
+.br
57
+Default: unset (don\'t drop privileges)
58
+.TP 
59
+\fBAllowSupplementaryGroups BOOL\fR
60
+Initialize supplementary group access (clamav-milter must be started by root).
61
+.br 
62
+Default: no
63
+.TP 
64
+\fBReadTimeout NUMBER\fR
65
+Waiting for data from clamd will timeout after this time (seconds).
66
+.br 
67
+Default: 120
68
+.TP 
69
+\fBForeground BOOL\fR
70
+Don\'t fork into background.
71
+.br 
72
+Default: no
73
+.TP 
74
+\fBChroot STRING\fR
75
+Chroot to the specified directory. Chrooting is performed just after reading the config file and before dropping privileges.
76
+.br
77
+Default: unset (don\'t chroot)
78
+.TP 
79
+\fBPidFile STRING\fR
80
+Save the process identifier of a clamav-milter (main thread) to a specified file.
81
+.br 
82
+Default: disabled
83
+.TP 
84
+\fBTemporaryDirectory STRING\fR
85
+Optional path to the global temporary directory.
86
+.br 
87
+Default: system specific (usually /tmp or /var/tmp).
88
+.SH "CLAMD OPTIONS"
89
+.TP 
90
+\fBClamdSocket STRING\fR
91
+Define the clamd socket to connect to for scanning. This option is mandatory! Syntax:
92
+.br
93
+ClamdSocket unix:path
94
+.br
95
+ClamdSocket tcp:host:port
96
+.br
97
+The first syntax specifies a local unix socket (needs an absolute path) e.g.:
98
+.br
99
+ClamdSocket unix:/var/run/clamd/clamd.socket
100
+.br
101
+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 e.g.:
102
+.br
103
+ClamdSocket tcp:192.168.0.1
104
+.br
105
+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.
106
+.br
107
+Default: no default
108
+.SH "EXCLUSIONS"
109
+.TP 
110
+\fBLocalNet STRING\fR
111
+Messages originating from these hosts/networks will not be scanned. This option takes a host(name)/mask pair in CIRD notation and can be repeated several times. If "/mask" is omitted, a host is assumed. To specify a locally orignated, non-smtp, email use the keyword "local"
112
+.br
113
+Default: unset (scan everything regardless of the origin)
114
+.TP 
115
+\fBWhitelist STRING\fR
116
+This option specifies a file which contains a list of basic POSIX regular expressions. Addresses (sent to or from - see below) matching these regexes  will not be scanned.  Optionally each line can start with the string "From:" or "To:" (note: no whitespace after the colon) indicating if it is,  respectively, the sender or recipient that is to be whitelisted. If the field is missing, "To:" is assumed.  Lines starting with #, : or ! are ignored.
117
+.br
118
+Default: unset (no exclusion applied)
119
+.TP 
120
+\fBSkipAuthenticated STRING\fR
121
+Messages from authenticated SMTP users matching this extended POSIX regular expression (egrep-like) will not be scanned.  As an alternative, a file containing a plain (not regex) list of names (one per line) can be specified using the prefix "file:".  e.g. SkipAuthenticated file:/etc/good_guys. Note: this is the AUTH login name!
122
+.br
123
+Default: unset (no whitelisting based on SMTP auth)
124
+.TP 
125
+\fBSkipAuthenticated SIZE\fR
126
+Messages larger than this value won\'t be scanned. Make sure this value is lower or equal than StreamMaxLength in clamd.conf
127
+.br
128
+Default: 25M
129
+.SH "ACTIONS"
130
+The following group of options controls the delievery process under  different circumstances. The following actions are available:
131
+.br
132
+- Accept: The message is accepted for delievery
133
+.br
134
+- Reject: Immediately refuse delievery (a 5xx error is returned to the peer)
135
+.br
136
+- Defer: Return a temporary failure message (4xx) to the peer
137
+.br
138
+- Blackhole (not available for OnFail): Like Accept but the message is sent to oblivion
139
+.br
140
+- Quarantine (not available for OnFail): Like Accept but message is quarantined instead of being delivered. NOTE: In Sendmail the quarantine queue can be examined via mailq -qQ. For Postfix this causes the message to be placed on hold.
141
+.TP 
142
+\fBOnClean STRING\fR
143
+Action to be performed on clean messages (mostly useful for testing)
144
+.br
145
+Default: Accept
146
+.TP 
147
+\fBOnInfected STRING\fR
148
+Action to be performed on infected messages
149
+.br
150
+Default: Quarantine
151
+.TP 
152
+\fBOnFail STRING\fR
153
+Action to be performed on error conditions (this includes failure to allocate data structures, no scanners available, network timeouts, unknown scanner replies and the like)
154
+.br
155
+Default: Defer
156
+.TP 
157
+\fBRejectMsg STRING\fR
158
+This option allows to set a specific rejection reason for infected messages and it\'s therefore only useful together with "OnInfected Reject". The string "%v", if present, will be replaced with the virus name.
159
+.br
160
+Default: MTA specific
161
+.TP 
162
+\fBAddHeader STRING\fR
163
+If this option is set to "Replace" (or "Yes"), an "X-Virus-Scanned" and an "X-Virus-Status" headers will be attached to each processed message, possibly replacing existing headers.  If it is set to Add, the X-Virus headers are added possibly on top of the existing ones. Note that while "Replace" can potentially break DKIM signatures, "Add" may confuse procmail and similar filters.
164
+.br
165
+Default: no
166
+.TP 
167
+\fBReportHostname STRING\fr
168
+When AddHeader is in use, this option allows to arbitrary set the reported hostname. This may be desirable in order to avoid leaking internal names. If unset the real machine name is used.
169
+.br
170
+Default: disabled
171
+.TP 
172
+\fBVirusAction STRING\fr
173
+Execute a command (possibly searching PATH) when an infected message is found. The following parameters are passed to the invoked program in this order: virus name, queue id, sender, destination, subject, message id, message date. Note #1: this requires MTA macroes to be available (see LogInfected below). Note #2: the process is invoked in the context of clamav-milter. Note #3: clamav-milter will wait for the process to exit. Be quick or fork to avoid unnecessary delays in email delievery.
174
+.br
175
+Default: disabled
176
+.SH "LOGGING OPTIONS"
177
+.TP 
178
+\fBLogFile STRING\fR
179
+Enable logging to selected file.
180
+.br 
181
+Default: no
182
+.TP 
183
+\fBLogFileUnlock BOOL\fR
184
+Disable a system lock that protects against running clamd with the same configuration file multiple times.
185
+.br 
186
+Default: no
187
+.TP 
188
+\fBLogFileMaxSize SIZE\fR
189
+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.
190
+.br 
191
+Default: 1M
192
+.TP 
193
+\fBLogTime BOOL\fR
194
+Log time for each message.
195
+.br 
196
+Default: no
197
+.TP 
198
+\fBLogSyslog BOOL\fR
199
+Use system logger (can work together with LogFile).
200
+.br 
201
+Default: no
202
+.TP 
203
+\fBLogFacility STRING\fR
204
+Specify the type of syslog messages \- please refer to 'man syslog' for facility names.
205
+.br 
206
+Default: LOG_LOCAL6
207
+.TP 
208
+\fBLogVerbose BOOL\fR
209
+Enable verbose logging.
210
+.br 
211
+Default: no
212
+.TP 
213
+\fBLogInfected STRING\fR
214
+Specify the type of syslog messages \- please refer to 'man syslog' for facility names.
215
+.br 
216
+This option allows to tune what is logged when a message is infected. Possible values are Off (the default - nothing is logged), Basic (minimal info logged), Full (verbose info logged)
217
+.br
218
+Note: For this to work properly in sendmail, make sure the msg_id, mail_addr, rcpt_addr and i macroes are available in eom. In other words add a line like: Milter.macros.eom={msg_id}, {mail_addr}, {rcpt_addr}, i to your .cf file. Alternatively use the macro: define(`confMILTER_MACROS_EOM', `{msg_id}, {mail_addr}, {rcpt_addr}, i')
219
+.br
220
+Postfix should be working fine with the default settings.
221
+.br
222
+Default: disabled
223
+.SH "NOTES"
224
+.LP 
225
+All options expressing a size are limited to max 4GB. Values in excess will be resetted to the maximum.
226
+.SH "FILES"
227
+.LP 
228
+@CFGDIR@/clamav-milter.conf
229
+.SH "AUTHOR"
230
+.LP 
231
+aCaB <acab@clamav.net>
232
+.SH "SEE ALSO"
233
+.LP 
234
+clamav-milter(8), clamd(8), clamd.conf(5)
... ...
@@ -83,7 +83,7 @@ Example
83 83
 #     ClamdSocket unix:/var/run/clamd/clamd.socket
84 84
 # The second syntax specifies a tcp local or remote tcp socket: the
85 85
 # host can be a hostname or an ip address; the ":port" field is only required
86
-# for IPv6 addresses, otherwise it defaults to 3310
86
+# for IPv6 addresses, otherwise it defaults to 3310, e.g.:
87 87
 #     ClamdSocket tcp:192.168.0.1
88 88
 #
89 89
 # This option can be repeated several times with different sockets or even
... ...
@@ -129,6 +129,12 @@ Example
129 129
 # Default: unset (no whitelisting based on SMTP auth)
130 130
 #SkipAuthenticated ^(tom|dick|henry)$
131 131
 
132
+# Messages larger than this value won't be scanned.
133
+# Make sure this value is lower or equal than StreamMaxLength in clamd.conf
134
+#
135
+# Default: 25M
136
+#MaxFileSize 10M
137
+
132 138
 
133 139
 ##
134 140
 ## Actions
... ...
@@ -152,7 +158,7 @@ Example
152 152
 # For Postfix this causes the message to be placed on hold
153 153
 # 
154 154
 # Action to be performed on clean messages (mostly useful for testing)
155
-# Default Accept
155
+# Default: Accept
156 156
 #OnClean Accept
157 157
 
158 158
 # Action to be performed on infected messages
... ...
@@ -162,7 +168,7 @@ Example
162 162
 # Action to be performed on error conditions (this includes failure to
163 163
 # allocate data structures, no scanners available, network timeouts,
164 164
 # unknown scanner replies and the like)
165
-# Default Defer
165
+# Default: Defer
166 166
 #OnFail Defer
167 167
 
168 168
 # This option allows to set a specific rejection reason for infected messages
... ...
@@ -259,14 +265,3 @@ Example
259 259
 # Default: disabled
260 260
 #LogInfected Basic
261 261
 
262
-
263
-##
264
-## Limits
265
-##
266
-
267
-# Messages larger than this value won't be scanned.
268
-# Make sure this value is lower or equal than StreamMaxLength in clamd.conf
269
-#
270
-# Default: 25M
271
-#MaxFileSize 10M
272
-