[clamav-users] clamav-milter: Failed to create temporary file

Urban Loesch bind at enas.net
Fri Aug 22 08:22:16 UTC 2014


Hi,

Am 22.08.2014 09:57, schrieb Matus UHLAR - fantomas:
> On 21.08.14 17:04, Urban Loesch wrote:
>> Recently I installed a fresh installation with postfix and
>> clamav-milter and debian testing:
>
> testing? Why testing?

Because I need opendkim and opendmarc in the latest versions.
No problems with it so far.

>
>> 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.
>
> This should not be a big issue, since the remote clients can resent in a
> while. It only makes troubles for end-users.

The milter is only active on my incoming server. No problems with 
endusers, they are sending trough another outgoing server.

As I just said I my first post. Not a big problem, but not very nice to 
see :-)

>
>> 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
>> ...
>
> what's the TemporaryDirectory setting in clamav-milter.conf?
>

/tmp
But for beeing secure that the ramdisk isn't the problem I moved it out 
of it to another temp directory (/var/tmp).

I think the ramdisk is not the problem, becaue the error cames up also 
without the ramdisk involved.

I enabled "LogVerbose" now, hope to see more info.

Thanks
Urban



More information about the clamav-users mailing list