<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Case &#187; clamav</title>
	<atom:link href="http://case.net.ru/tag/clamav/feed/" rel="self" type="application/rss+xml" />
	<link>http://case.net.ru</link>
	<description>Just another technical weblog</description>
	<lastBuildDate>Sat, 19 Jun 2010 14:06:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Установка и настройка ClamSMTP для Postfix</title>
		<link>http://case.net.ru/2009/04/15/clamsmtp/</link>
		<comments>http://case.net.ru/2009/04/15/clamsmtp/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 15:47:35 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[clamsmtp]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=430</guid>
		<description><![CDATA[Установка: 1 2 3 4 5 6 7 $ cd /usr/ports/security/clamsmtp $ make showconfig ===&#62; The following configuration options are available for clamsmtp-1.10_1: LOCAL_CLAMAV=on &#34;RUN_DEPEND on security/clamav&#34; LOCAL_CLAMAV_DEVEL=off &#34;RUN_DEPEND on security/clamav-devel&#34; ===&#62; Use 'make config' to modify these settings $ make install clean Прописываем в rc.conf: 1 clamsmtpd_enable=&#34;YES&#34; Копируем конфиг: 1 2 $ cd /usr/local/etc/ [...]]]></description>
			<content:encoded><![CDATA[<p>Установка:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>clamsmtp
$ <span style="color: #c20cb9; font-weight: bold;">make</span> showconfig
===<span style="color: #000000; font-weight: bold;">&gt;</span> The following configuration options are available <span style="color: #000000; font-weight: bold;">for</span> clamsmtp-<span style="color: #000000;">1.10</span>_1:
     <span style="color: #007800;">LOCAL_CLAMAV</span>=on <span style="color: #ff0000;">&quot;RUN_DEPEND on security/clamav&quot;</span>
     <span style="color: #007800;">LOCAL_CLAMAV_DEVEL</span>=off <span style="color: #ff0000;">&quot;RUN_DEPEND on security/clamav-devel&quot;</span>
===<span style="color: #000000; font-weight: bold;">&gt;</span> Use <span style="color: #ff0000;">'make config'</span> to modify these settings
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></td></tr></table></div>

<p>Прописываем в rc.conf:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">clamsmtpd_enable</span>=<span style="color: #ff0000;">&quot;YES&quot;</span></pre></td></tr></table></div>

<p>Копируем конфиг:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #c20cb9; font-weight: bold;">cp</span> clamsmtpd.conf-sample clamsmtpd.conf</pre></td></tr></table></div>

<p>Настраиваем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">OutAddress: 127.0.0.1:<span style="color: #000000;">1026</span>
Listen: 127.0.0.1:<span style="color: #000000;">1025</span>
ClamAddress: <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>clamav<span style="color: #000000; font-weight: bold;">/</span>clamd.sock
User: clamav</pre></td></tr></table></div>

<p>Запускаем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>clamsmtpd start</pre></td></tr></table></div>

<p>Настраиваем master.cf в Postfix&#8217;e (в моем случае подключена еще и спамоборона):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">smtp      inet  n       -       n       -       -       smtpd
    <span style="color: #660033;">-o</span> <span style="color: #007800;">content_filter</span>=so-filter
127.0.0.1:<span style="color: #000000;">1026</span>  inet  n       -       n       -       -       smtpd
    <span style="color: #660033;">-o</span> content-filter=
so-filter     unix  -       n       n       -       -       pipe
    <span style="color: #007800;">flags</span>=q. <span style="color: #007800;">user</span>=souser <span style="color: #007800;">argv</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>sp-postfix
    <span style="color: #660033;">-a</span> <span style="color: #800000;">${client_address}</span> <span style="color: #660033;">-f</span> <span style="color: #800000;">${sender}</span> <span style="color: #660033;">--</span> <span style="color: #800000;">${recipient}</span></pre></td></tr></table></div>

<p>Путь письма при этом выглядит так:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">mail -<span style="color: #000000; font-weight: bold;">&gt;</span> smtpd <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">25</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> -<span style="color: #000000; font-weight: bold;">&gt;</span> sofilter -<span style="color: #000000; font-weight: bold;">&gt;</span> clamav <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1025</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> -<span style="color: #000000; font-weight: bold;">&gt;</span> smtpd <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1026</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> -<span style="color: #000000; font-weight: bold;">&gt;</span> mail</pre></td></tr></table></div>

<p>Перезапускаем Postfix:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ postfix reload</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/04/15/clamsmtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Установка и работа с ClamAV</title>
		<link>http://case.net.ru/2009/04/15/clamav/</link>
		<comments>http://case.net.ru/2009/04/15/clamav/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 14:44:28 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[clamav]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=424</guid>
		<description><![CDATA[Установка: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 $ cd /usr/ports/security/clamav $ make showconfig make install ===&#62; The following configuration options are available for clamav-0.95.1: ARC=on &#34;Enable arch archives support&#34; ARJ=on &#34;Enable arj archives support&#34; LHA=on &#34;Enable lha archives support&#34; UNZOO=on &#34;Enable zoo archives support&#34; UNRAR=on &#34;Enable [...]]]></description>
			<content:encoded><![CDATA[<p>Установка:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>clamav
$ <span style="color: #c20cb9; font-weight: bold;">make</span> showconfig
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ===<span style="color: #000000; font-weight: bold;">&gt;</span> The following configuration options are available <span style="color: #000000; font-weight: bold;">for</span> clamav-0.95.1:
     <span style="color: #007800;">ARC</span>=on <span style="color: #ff0000;">&quot;Enable arch archives support&quot;</span>
     <span style="color: #007800;">ARJ</span>=on <span style="color: #ff0000;">&quot;Enable arj archives support&quot;</span>
     <span style="color: #007800;">LHA</span>=on <span style="color: #ff0000;">&quot;Enable lha archives support&quot;</span>
     <span style="color: #007800;">UNZOO</span>=on <span style="color: #ff0000;">&quot;Enable zoo archives support&quot;</span>
     <span style="color: #007800;">UNRAR</span>=on <span style="color: #ff0000;">&quot;Enable rar archives support&quot;</span>
     <span style="color: #007800;">MILTER</span>=off <span style="color: #ff0000;">&quot;Compile the milter interface&quot;</span>
     <span style="color: #007800;">LDAP</span>=off <span style="color: #ff0000;">&quot;libmilter was built with LDAP&quot;</span>
     <span style="color: #007800;">ICONV</span>=off <span style="color: #ff0000;">&quot;Enable ICONV support&quot;</span>
     <span style="color: #007800;">STDERR</span>=off <span style="color: #ff0000;">&quot;Print logs to stderr instead of stdout&quot;</span>
     <span style="color: #007800;">EXPERIMENTAL</span>=off <span style="color: #ff0000;">&quot;Build experimental code&quot;</span>
===<span style="color: #000000; font-weight: bold;">&gt;</span> Use <span style="color: #ff0000;">'make config'</span> to modify these settings
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></td></tr></table></div>

<p>Обновление антивирусных баз выполняется командой</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ freshclam</pre></div></div>

<p>Или демоном, контролируемым сценарием:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>clamav-freshclam</pre></div></div>

<p>Проверка файлов производится самостоятельной командой</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ clamscan</pre></div></div>

<p>или командой</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ clamdscan</pre></div></div>

<p> работающей совсместно с демоном clamd, который контролируется сценарием</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>clamav-clamd</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/04/15/clamav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
