On Jul 23, 2015, at 3:07 PM, Michael Peter <roundcube...@alaadin.org> wrote:
> Hi,
> 
> I have the following questions for clamd.conf configuration
> 
> #LogRotate yes
> 
> how many logs clamd will keep ? because there is no option in the conf
> file on how many logs files clamd should keep after rotations ?

How much disk space do you have?

As far as I can tell, it will keep rotating the logfile whenever it exceeds
LogFileMaxSize and will append -YYYY-MM-DD_HH:MM:SS timesampt via
rename_logg() function.

> #LogFileMaxSize 2M
> also incase i set  (#LogFileMaxSize 2M) will this enforce the logrotate
> yes?

Supposedly.

> and is it possible to  set log rotate off in this case?

I think so-- with LogRotate off, the logs will grow to 2M and then stop.

> or not
> possible because #LogFileMaxSize is specified in my conf ?
> 
> #TCPSocket 3310
> #TCPAddr 127.0.0.1
> 
> what if i donot want clamd to listen on tcp and only to listen on unix
> socket? should i leave TCPsocket empty ?? or how to achieve this ?

Leave them commented out.

> and is it wrong to try to disable TCP for clamd ?

No; that is the default behavior.

> Inside clamsmtpd.conf
> ==============
> ClamAddress
>                 [ Default: /var/run/clamav/clamd ]
> 
> so should i configure unix socket in clamdc.onf to be
> /var/run/clamav/clamd ? so clamsmtp can connect to clamd ? and how to
> achieve this ? what to add to clamd.conf to achieve this ?

LocalSocket /var/run/clamav/clamd

Regards,
-- 
-Chuck

_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to