19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
21
<LINK REL="previous" HREF="node19.html">
22
<LINK REL="up" HREF="node15.html">
21
<LINK REL="next" HREF="node21.html">
22
<LINK REL="previous" HREF="node18.html">
23
<LINK REL="up" HREF="node17.html">
23
24
<LINK REL="next" HREF="node21.html">
28
29
<DIV CLASS="navigation"><!--Navigation Panel-->
30
31
HREF="node21.html">
31
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
34
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
36
37
HREF="node19.html">
37
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
40
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
42
<B> Next:</B> <A NAME="tex2html442"
43
HREF="node21.html">Closest mirrors</A>
44
<B> Up:</B> <A NAME="tex2html438"
45
HREF="node15.html">Configuration</A>
46
<B> Previous:</B> <A NAME="tex2html434"
47
HREF="node19.html">Testing</A>
48
<B> <A NAME="tex2html440"
43
<B> Next:</B> <A NAME="tex2html455"
44
HREF="node21.html">Testing</A>
45
<B> Up:</B> <A NAME="tex2html451"
46
HREF="node17.html">Configuration</A>
47
<B> Previous:</B> <A NAME="tex2html445"
48
HREF="node19.html">On-access scanning</A>
49
<B> <A NAME="tex2html453"
49
50
HREF="node1.html">Contents</A></B>
52
53
<!--End of Navigation Panel-->
54
<H2><A NAME="SECTION00054000000000000000">
55
Setting up auto-updating</A>
55
<H2><A NAME="SECTION00052000000000000000">
57
<code>freshclam</code> is the automatic database update tool for Clam AntiVirus.
58
It can work in two modes:
61
<LI>interactive - on demand from command line
63
<LI>daemon - silently in the background
67
<code>freshclam</code> is advanced tool: it supports scripted updates (instead
68
of transferring the whole CVD file at each update it only transfers the
69
differences between the latest and the current database via a special
70
script), database version checks through DNS, proxy servers (with
71
authentication), digital signatures and various error scenarios.
72
<SPAN CLASS="textbf">Quick test: run freshclam (as superuser) with no parameters
73
and check the output.</SPAN> If everything is OK you may create the log file in
74
/var/log (owned by <SPAN CLASS="textit">clamav</SPAN> or another user <code>freshclam</code> will be
77
# touch /var/log/freshclam.log
78
# chmod 600 /var/log/freshclam.log
79
# chown clamav /var/log/freshclam.log
81
Now you <SPAN CLASS="textit">should</SPAN> edit the configuration file <code>freshclam.conf</code>
82
and point the <SPAN CLASS="textit">UpdateLogFile</SPAN> directive to the log file. Finally, to
83
run <code>freshclam</code> in the daemon mode, execute:
87
The other way is to use the <SPAN CLASS="textit">cron</SPAN> daemon. You have to add the
88
following line to the crontab of <SPAN CLASS="textbf">root</SPAN> or <SPAN CLASS="textbf">clamav</SPAN> user:
89
<SMALL CLASS="SMALL"> </SMALL><PRE>
90
N * * * * /usr/local/bin/freshclam --quiet
92
to check for a new database every hour. <SPAN CLASS="textbf">N should be a
93
number between 3 and 57 of your choice. Please don't choose any multiple
94
of 10, because there are already too many clients using those time slots.</SPAN>
95
Proxy settings are only configurable via the configuration file and
96
<code>freshclam</code> will require strict permission settings for the config
97
file when <code>HTTPProxyPassword</code> is turned on.
99
HTTPProxyServer myproxyserver.com
101
HTTPProxyUsername myusername
102
HTTPProxyPassword mypass
58
Nigel Horne's <code>clamav-milter</code> is a very efficient email scanner
59
designed for Sendmail. It's written entirely in C and only depends on
60
<code>libclamav</code> or <code>clamd</code>. You can find detailed installation
61
instructions in the <code>INSTALL</code> file that comes with the clamav-milter
62
sources. Basically, to connect it with Sendmail add the following lines to
63
<code>/etc/mail/sendmail.mc</code>:
65
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,
67
define(`confINPUT_MAIL_FILTERS', `clmilter')
69
If you're running it in <code>--external</code> mode, check entry in
70
<code>clamd.conf</code> of the form:
72
LocalSocket /var/run/clamav/clamd.sock
76
/usr/local/sbin/clamav-milter -lo /var/run/clamav/clmilter.sock
107
<!--Table of Child-Links-->
108
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
110
<UL CLASS="ChildLinks">
111
<LI><A NAME="tex2html443"
112
HREF="node21.html">Closest mirrors</A>
114
<!--End of Table of Child-Links-->
116
<DIV CLASS="navigation"><HR>
117
<!--Navigation Panel-->
118
<A NAME="tex2html441"
120
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
121
<A NAME="tex2html437"
123
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
124
<A NAME="tex2html433"
126
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
127
<A NAME="tex2html439"
129
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
131
<B> Next:</B> <A NAME="tex2html442"
132
HREF="node21.html">Closest mirrors</A>
133
<B> Up:</B> <A NAME="tex2html438"
134
HREF="node15.html">Configuration</A>
135
<B> Previous:</B> <A NAME="tex2html434"
136
HREF="node19.html">Testing</A>
137
<B> <A NAME="tex2html440"
138
HREF="node1.html">Contents</A></B> </DIV>
139
<!--End of Navigation Panel-->