--- qmail-queue.8.orig  1998-06-15
+++ qmail-queue.8       2007-03-21
--- .././qmail-1.03/qmail-queue.8	Mon Jun 15 12:53:16 1998
+++ ../qmail-1.03.2418/qmail-queue.8	Tue Jan 31 22:55:27 2006
@@ -40,6 +40,12 @@
 However, the recipients probably expect to see a proper header,
 as described in
 .BR qmail-header(5) .
+
+Programs included with qmail which invoke
+.B qmail-queue
+will invoke the contents of
+.B QMAILQUEUE
+instead, if that environment variable is set.
 .SH "FILESYSTEM RESTRICTIONS"
 .B qmail-queue
 imposes two constraints on the queue structure:
@@ -93,8 +99,10 @@
 .TP
 .B 55
 Unable to read a configuration file.
-(Not used by
-.BR qmail-queue .)
+The virus scanner called via the
+.BR QHPSI
+returned with return code other then
+0 or QHPSIRC. 
 .TP
 .B 56
 Problem making a network connection from this host.
@@ -145,6 +153,31 @@
 .TP
 .B 91
 Envelope format error.
+.SH "QHPSI ARGUMENTS"
+The Qmail High Performance Scanner interface QHPSI allows
+.B qmail-queue
+to read up to seven arguments taken from the environment to be used
+as a call-interface for an external virus scanner:
+.TP 5
+.B QHPSI
+is set to the file name of the virus scanner, ie. QHPSI='/usr/local/bin/clamscan'.
+The path can be omitted, if the virus scanner is in the default path.
+.TP
+.B QHPSIARG1...3
+Optional additional arguments can be included here, ie. QHPSIARG1="--verbose". 
+Useful to suppress output in case an email is
+clean and to enable mailbox support for the virus scanner.
+.TP
+.B QHPSIRC
+To specify the return code of the virus scanner in case of an infection; default is 1.
+.TP
+.B QHPSIMINSIZE
+The minimal size of the message to invoke the virus scanner; default is 0.
+A typical choice would be QHPSIMISIZE=10000 (~10k).
+.TP
+.B QHPSIMAXSIZE
+The maximal size of the message to invoke the virus scanner; default is unrestricted.
+A typical choice would be QHPPIMAXSIZE=1000000 (~1M).
 .SH "SEE ALSO"
 addresses(5),
 envelopes(5),


syntax highlighted by Code2HTML, v. 0.9.1