1
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
3
<!--Converted with LaTeX2HTML 2K.1beta (1.48)
3
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
4
4
original version by: Nikos Drakos, CBLU, University of Leeds
5
5
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
6
6
* with significant contributions from:
7
7
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
10
<TITLE>clamav-milter</TITLE>
11
<META NAME="description" CONTENT="clamav-milter">
11
<META NAME="description" CONTENT="clamd">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
16
16
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
17
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
17
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
18
18
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
20
20
<LINK REL="STYLESHEET" HREF="clamdoc.css">
22
<LINK REL="next" HREF="node30.html">
23
22
<LINK REL="previous" HREF="node28.html">
24
<LINK REL="up" HREF="node28.html">
23
<LINK REL="up" HREF="node27.html">
25
24
<LINK REL="next" HREF="node30.html">
29
28
<!--Navigation Panel-->
31
30
HREF="node30.html">
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
33
SRC="/usr/share/latex2html/icons/next.png"></A>
36
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
37
SRC="/usr/share/latex2html/icons/up.png"></A>
40
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
41
SRC="/usr/share/latex2html/icons/prev.png"></A>
31
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
34
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
37
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
44
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
45
SRC="/usr/share/latex2html/icons/contents.png"></A>
40
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
47
<B> Next:</B> <A NAME="tex2html736"
48
HREF="node30.html">IVS Milter</A>
49
<B> Up:</B> <A NAME="tex2html732"
50
HREF="node28.html">Third party software</A>
51
<B> Previous:</B> <A NAME="tex2html726"
52
HREF="node28.html">Third party software</A>
53
  <B> <A NAME="tex2html734"
42
<B> Next:</B> <A NAME="tex2html890"
43
HREF="node30.html">LibClamAV</A>
44
<B> Up:</B> <A NAME="tex2html886"
45
HREF="node27.html">Output format</A>
46
<B> Previous:</B> <A NAME="tex2html882"
47
HREF="node28.html">clamscan</A>
48
  <B> <A NAME="tex2html888"
54
49
HREF="node1.html">Contents</A></B>
57
52
<!--End of Navigation Panel-->
59
<H2><A NAME="SECTION00061000000000000000">
62
<B>Homepage:</B> part of the ClamAV package
63
<BR> <B>Supports:</B> clamd
65
Nigel Horne's clamav-milter is a very fast email scanner designed for
66
sendmail. It's written entirely in C and uses ClamAV's internal mail
67
scanner (also written by Nigel).
68
<BR> <B>Installation:</B>
70
You need libmilter development files. Configure ClamAV with
72
$ ./configure --enable-milter
74
and recompile. The program will be installed in
75
/usr/local/sbin/clamav-milter. The following instructions were adopted
76
from Nigel's INSTALL file: add to /etc/mail/sendmail.mc:
78
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clmilter.sock,
80
define(`confINPUT_MAIL_FILTERS', `clmilter')
82
Check entries in clamav.conf of the form:
84
LocalSocket /var/run/clamd.sock
90
/usr/local/sbin/clamav-milter -lo /var/run/clmilter.sock
54
<H3><A NAME="SECTION00064200000000000000">
57
<code>clamd</code> uses a <code>clamscan</code> compatible output format:
59
zolw@localhost:~$ telnet localhost 3310
61
Connected to localhost.
62
Escape character is '^]'.
64
/home/zolw/test/clam.exe: ClamAV-Test-File FOUND
65
Connection closed by foreign host.
67
In the <B>SCAN</B> mode it closes the connection when the first virus
70
SCAN /home/zolw/test/clam.zip
71
/home/zolw/test/clam.zip: ClamAV-Test-File FOUND
73
<B>CONTSCAN</B> continues scanning even if virus was already found.
75
Error messages are printed in the following format:
78
/no/such/file: Can't stat() the file. ERROR