~ubuntu-branches/ubuntu/raring/clamav/raring

« back to all changes in this revision

Viewing changes to docs/html/node20.html

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2008-09-05 17:25:34 UTC
  • mfrom: (0.35.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080905172534-yi3f8fkye1o7u1r3
* New upstream version (closes: #497662, #497773)
  - lots of new options for clamd.conf
  - fixes CVEs CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, and
    CVE-2008-1389
* No longer supports --unzip option, so typo is gone (closes: #496276)
* Translations:
  - sv (thanks Martin Bagge <brother@bsnet.se>) (closes: #491760)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
8
8
<HTML>
9
9
<HEAD>
10
 
<TITLE>Setting up auto-updating</TITLE>
11
 
<META NAME="description" CONTENT="Setting up auto-updating">
 
10
<TITLE>clamav-milter</TITLE>
 
11
<META NAME="description" CONTENT="clamav-milter">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
18
18
 
19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
20
20
 
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">
24
25
</HEAD>
25
26
 
26
27
<BODY >
27
28
 
28
29
<DIV CLASS="navigation"><!--Navigation Panel-->
29
 
<A NAME="tex2html441"
 
30
<A NAME="tex2html454"
30
31
  HREF="node21.html">
31
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
32
 
<A NAME="tex2html437"
33
 
  HREF="node15.html">
 
33
<A NAME="tex2html450"
 
34
  HREF="node17.html">
34
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
35
 
<A NAME="tex2html433"
 
36
<A NAME="tex2html444"
36
37
  HREF="node19.html">
37
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
38
 
<A NAME="tex2html439"
 
39
<A NAME="tex2html452"
39
40
  HREF="node1.html">
40
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
41
42
<BR>
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
 
 &nbsp; <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
 &nbsp; <B>  <A NAME="tex2html453"
49
50
  HREF="node1.html">Contents</A></B> 
50
51
<BR>
51
52
<BR></DIV>
52
53
<!--End of Navigation Panel-->
53
54
 
54
 
<H2><A NAME="SECTION00054000000000000000">
55
 
Setting up auto-updating</A>
 
55
<H2><A NAME="SECTION00052000000000000000">
 
56
clamav-milter</A>
56
57
</H2>
57
 
    <code>freshclam</code> is the automatic database update tool for Clam AntiVirus.
58
 
    It can work in two modes:
59
 
    
60
 
<UL>
61
 
<LI>interactive - on demand from command line
62
 
</LI>
63
 
<LI>daemon - silently in the background
64
 
    
65
 
</LI>
66
 
</UL>
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
75
 
    running as):
76
 
    <PRE>
77
 
        # touch /var/log/freshclam.log
78
 
        # chmod 600 /var/log/freshclam.log
79
 
        # chown clamav /var/log/freshclam.log
80
 
</PRE>
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:
84
 
    <PRE>
85
 
        # freshclam -d
86
 
</PRE>
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
91
 
</PRE>
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.
98
 
    <PRE>
99
 
        HTTPProxyServer myproxyserver.com
100
 
        HTTPProxyPort 1234
101
 
        HTTPProxyUsername myusername
102
 
        HTTPProxyPassword mypass
103
 
</PRE>
 
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>:
 
64
    <PRE>
 
65
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,
 
66
F=, T=S:4m;R:4m')dnl
 
67
define(`confINPUT_MAIL_FILTERS', `clmilter')
 
68
</PRE>
 
69
    If you're running it in <code>--external</code> mode, check entry in
 
70
    <code>clamd.conf</code> of the form:
 
71
    <PRE>
 
72
        LocalSocket /var/run/clamav/clamd.sock
 
73
</PRE>
 
74
    Start clamav-milter
 
75
    <PRE>
 
76
        /usr/local/sbin/clamav-milter -lo /var/run/clamav/clmilter.sock
 
77
</PRE>
 
78
    and restart sendmail.
104
79
 
105
80
<P>
106
81
<BR><HR>
107
 
<!--Table of Child-Links-->
108
 
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
109
 
 
110
 
<UL CLASS="ChildLinks">
111
 
<LI><A NAME="tex2html443"
112
 
  HREF="node21.html">Closest mirrors</A>
113
 
</UL>
114
 
<!--End of Table of Child-Links-->
115
 
 
116
 
<DIV CLASS="navigation"><HR>
117
 
<!--Navigation Panel-->
118
 
<A NAME="tex2html441"
119
 
  HREF="node21.html">
120
 
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
121
 
<A NAME="tex2html437"
122
 
  HREF="node15.html">
123
 
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
124
 
<A NAME="tex2html433"
125
 
  HREF="node19.html">
126
 
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
127
 
<A NAME="tex2html439"
128
 
  HREF="node1.html">
129
 
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
130
 
<BR>
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
 
 &nbsp; <B>  <A NAME="tex2html440"
138
 
  HREF="node1.html">Contents</A></B> </DIV>
139
 
<!--End of Navigation Panel-->
140
82
<ADDRESS>
141
83
Tomasz Kojm
142
 
2008-07-07
 
84
2008-09-01
143
85
</ADDRESS>
144
86
</BODY>
145
87
</HTML>