[Pkg-clamav-devel] Bug#602840: clamav-daemon: StreamMaxLength documentation wrong

Török Edwin edwin at clamav.net
Tue Nov 9 16:43:54 UTC 2010


On Tue, 9 Nov 2010 17:29:26 +0100
Steven Falken <btwotch at googlemail.com> wrote:

> debian:~# clamdscan eicar.com --stream
> /root/eicar.com: OK

Documentation doesn't really say whay StreamMaxLength 0 is supposed to
do: 
example config file:
# Close the connection when the data size limit is exceeded.
# The value should match your MTA's limit for a maximum attachment size.
# Default: 25M
#StreamMaxLength 10M

manpage:
Clamd uses FTP\-like protocol to receive data from remote clients. If
you are using clamav\-milter to balance load between remote clamd
daemons on firewall servers you may need to tune the Stream* options.
This option allows you to specify the upper limit for data size that
will be transfered to remote daemon when scanning a single file. It
should match your MTA's limit for a maximum attachment size.

Indeed the old stream protocol (STREAM) considers StreamMaxLength 0 as
unlimited, and the new stream protocol (INSTREAM) considers it a limit
of 0 bytes. 

I don't see why you would want unlimited stream length though, that is
a sure way of filling up your disk.

Best regards,
--Edwin





More information about the Pkg-clamav-devel mailing list