Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: Knuddi on March 19, 2009, 10:29:40 AM
-
As something new the ClamAV team is gathering statistic on what their engine finds around the world. In order to submit the statistic from a SME server a few additions to the freshclam.conf and clamd.conf files must be added (see http://www.clamav.net/support/faq-cctts/stats-howto). This should obviously be done via templates.
Create and open /etc/e-smith/templates/etc/freshclam.conf/SubmitDetectionStats and add the line:
SubmitDetectionStats /etc/clamd.conf
Create and open /etc/e-smith/templates/etc/clamd.conf/LogFile and add the line:
LogFile /var/log/clamav/clamdlog
Now we need to change the "LogTime" parameter to "yes". check first with - its properly "no"
db configuration getprop clamav LogTime
Now set it to "yes"
db configuration setprop clamav LogTime yes
Now we need to expand the templates:
expand-template /etc/clamd.conf
expand-template /etc/freshclam.conf
Now as the last thing activate it:
signal-event email-update
I actually suggest that this becomes the default configuration for SME servers going forward....
Enjoy,
Jesper
-
I actually suggest that this becomes the default configuration for SME servers going forward....
Jesper, have you raised a New Feature Request (NFR) over on the bug tracker ? Thanks
-
Now it is: http://bugs.contribs.org/show_bug.cgi?id=5084
-
Moved thread to General Discussion as it is more appropriate here.
-
If you upgrade according to Jesper's description, I recommend that you also restart the freshclam service:
# sv restart freshclam
That service is not restarted as part of the signal-event email-update, so the old version of freshclam will keep running, if you don't restart it in some other way.
Seems to work just fine here :-)