Hi Urban,

I took a look at this code. The real problem is the inability to create a
temporary file. The second message just results from the return code of the
function that attempts to create the temp file. We need to find out why the
temp file creation fails. There should also be a clamav error message
written from:  cli_errmsg("cli_gentempfd: Can't create temporary file %s:
%s\n", *name, strerror(errno)); Can you find this message?

Otherwise, it is a memory allocation failure for space for the temp file
name, which seems unlikely.

Steve


On Thu, Aug 21, 2014 at 11:04 AM, Urban Loesch <b...@enas.net> wrote:

>
>
> Hi,
>
> I'm new to the list.
> Recently I installed a fresh installation with postfix and clamav-milter
> and debian testing:
>
> Versions installed:
> ii  clamav                         0.98.4+dfsg-2+b1          amd64
> anti-virus utility for Unix - command-line interface
> ii  clamav-base                    0.98.4+dfsg-2             all
> anti-virus utility for Unix - base package
> ii  clamav-daemon                  0.98.4+dfsg-2+b1          amd64
> anti-virus utility for Unix - scanner daemon
> ii  clamav-freshclam               0.98.4+dfsg-2+b1          amd64
> anti-virus utility for Unix - virus database update utility
> ii  clamav-milter                  0.98.4+dfsg-2+b1          amd64
> anti-virus utility for Unix - sendmail integration
> ii  libclamav6                     0.98.4+dfsg-2+b1          amd64
> anti-virus utility for Unix - library
>
> Sometiems (about 1-10 times a day) I get the following error in my logfile:
>
> ...
> Aug 21 15:26:09 mil2 clamav-milter[26215]: Failed to create temporary file
> Aug 21 15:26:09 mil2 clamav-milter[26215]: Failed to initiate
> streaming/fdpassing
> ...
>
> It seems that clamav-milter sometimes isn't able to create a the temporary
> file and postfix answers with a
> "4.7.1 Service unavailable" message to the client.
>
> I'm using a tmpfs for /tmp with about 1G of space which isnt very much in
> use.
>
> ...
> none           tmpfs  1,0G       0  1,0G    0% /tmp
> ...
>
> This as I just said happens not very often and isn't a big problem, but it
> isn't very nice to see
>
> Have you any idea what this problem could be or how can I solve it?
>
> Many thanks
> Urban Loesch
> _______________________________________________
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
> http://www.clamav.net/support/ml
>
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/support/ml

Reply via email to