19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
21
<LINK REL="next" HREF="node24.html">
21
22
<LINK REL="previous" HREF="node22.html">
22
<LINK REL="up" HREF="node22.html">
23
<LINK REL="up" HREF="node19.html">
23
24
<LINK REL="next" HREF="node24.html">
28
29
<DIV CLASS="navigation"><!--Navigation Panel-->
30
31
HREF="node24.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="node22.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="tex2html498"
43
HREF="node24.html">ClamAV Active Malware Report</A>
44
<B> Up:</B> <A NAME="tex2html494"
45
HREF="node22.html">Setting up auto-updating</A>
46
<B> Previous:</B> <A NAME="tex2html490"
47
HREF="node22.html">Setting up auto-updating</A>
48
<B> <A NAME="tex2html496"
43
<B> Next:</B> <A NAME="tex2html503"
44
HREF="node24.html">Setting up auto-updating</A>
45
<B> Up:</B> <A NAME="tex2html499"
46
HREF="node19.html">Configuration</A>
47
<B> Previous:</B> <A NAME="tex2html493"
48
HREF="node22.html">clamav-milter</A>
49
<B> <A NAME="tex2html501"
49
50
HREF="node1.html">Contents</A></B>
52
53
<!--End of Navigation Panel-->
54
<H3><A NAME="SECTION00054100000000000000">
57
The <code>DatabaseMirror</code> directive in the config file specifies the
58
database server <code>freshclam</code> will attempt (up to <code>MaxAttempts</code>
59
times) to download the database from. The default database mirror
60
is <TT><A NAME="tex2html14"
61
HREF="database.clamav.net">database.clamav.net</A></TT> but multiple directives are allowed.
62
In order to download the database from the closest mirror you should
63
configure <code>freshclam</code> to use <TT><A NAME="tex2html15"
64
HREF="db.xx.clamav.net">db.xx.clamav.net</A></TT> where xx
65
represents your country code. For example, if your server is in "Ascension
66
Island" you should have the following lines included in <code>freshclam.conf</code>:
68
DNSDatabaseInfo current.cvd.clamav.net
69
DatabaseMirror db.ac.clamav.net
70
DatabaseMirror database.clamav.net
72
The second entry acts as a fallback in case the connection to the first
73
mirror fails for some reason. The full list of two-letters country codes
74
is available at <TT><A NAME="tex2html16"
75
HREF="http://www.iana.org/cctld/cctld-whois.htm">http://www.iana.org/cctld/cctld-whois.htm</A></TT>
55
<H2><A NAME="SECTION00053000000000000000">
58
Try to scan recursively the source directory:
60
$ clamscan -r -l scan.txt clamav-x.yz
62
It should find some test files in the clamav-x.yz/test directory.
63
The scan result will be saved in the <code>scan.txt</code> log file
65
HREF="footnode.html#foot203"><SUP><SPAN CLASS="arabic">8</SPAN></SUP></A>.
66
To test <code>clamd</code>, start it and use <code>clamdscan</code> (or instead connect
67
directly to its socket and run the SCAN command):
69
$ clamdscan -l scan.txt clamav-x.yz
71
Please note that the scanned files must be accessible by the user running
72
<code>clamd</code> or you will get an error.