<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Jonas Genannt - virus</title>
    <link>http://blog.brachium-system.net/</link>
    <description>Weblog of an System Engineer</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.2 - http://www.s9y.org/</generator>
    
    <image>
        <url>http://blog.brachium-system.net/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Jonas Genannt - virus - Weblog of an System Engineer</title>
        <link>http://blog.brachium-system.net/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Clamav daemon on etch - long startup time</title>
    <link>http://blog.brachium-system.net/archives/68-Clamav-daemon-on-etch-long-startup-time.html</link>
            <category>debian</category>
            <category>virus</category>
    
    <comments>http://blog.brachium-system.net/archives/68-Clamav-daemon-on-etch-long-startup-time.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=68</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.brachium-system.net/rss.php?version=2.0&amp;type=comments&amp;cid=68</wfw:commentRss>
    

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    If you are running clamav daemon on debian etch, and your clamav daemon takes up to 3-4 minutes to create the unix socket and the pid file, don&#039;t despair it&#039;s an clamav bug.&lt;br /&gt;
&lt;br /&gt;
While you are running clamav with amavis this bug can be very annoying:&lt;br /&gt;
&lt;blockquote&gt;amavis[22480]: (21470-02) (!!) ClamAV-clamd av-scanner FAILED: Too many retries to talk to /var/run/clamav/clamd.ctl (Can&#039;t connect to UNIX socket&lt;/blockquote&gt;&lt;br /&gt;
If you strace your clamv on the startup time you get many of these messages:&lt;br /&gt;
&lt;blockquote&gt;read(10, &quot;n.Downloader-14249\n29184:5d2a569&quot;..., 4096) = 4096&lt;br /&gt;
read(10, &quot;15872:15a82a8cbbb437f9249c944391&quot;..., 4096) = 4096&lt;br /&gt;
read(10, &quot;a6288c61679d87f00:Trojan.Bancos-&quot;..., 4096) = 4096&lt;br /&gt;
read(10, &quot;db2a:Trojan.IRCBot-1189\n24576:5e&quot;..., 4096) = 4096&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
The clamav version is debian etch is  0.90.1.&lt;br /&gt;
The bug is fixed in version 0.91rc2. So you could use the &lt;a href=&quot;http://www.backports.org&quot;&gt;backports.org&lt;/a&gt; packages (0.91.2). 
    </content:encoded>

    <pubDate>Thu, 15 Nov 2007 21:51:13 +0100</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/68-guid.html</guid>
    
</item>
<item>
    <title>Debian Volatile Service</title>
    <link>http://blog.brachium-system.net/archives/19-Debian-Volatile-Service.html</link>
            <category>debian</category>
            <category>useful stuff</category>
            <category>virus</category>
    
    <comments>http://blog.brachium-system.net/archives/19-Debian-Volatile-Service.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=19</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.brachium-system.net/rss.php?version=2.0&amp;type=comments&amp;cid=19</wfw:commentRss>
    

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    Relating to that  &lt;a href=&quot;http://blog.brachium-system.net/archives/5-Postfix-with-Amavis-new-for-virus-scanning.html&quot; &gt;Virus Scanning entry&lt;/a&gt; I think &lt;a href=&quot;http://volatile.debian.net&quot;&gt;Debian Volatile&lt;/a&gt; is better for an up-to-date ClamAV than &lt;a href=&quot;http://www.backports.org&quot;&gt;Backports.org&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Debian Volatile is made for packages that change very often, and you need the current upstream package on a server. Like an up-to-date virus scanning engine.&lt;br /&gt;
&lt;br /&gt;
So simple and this line to your &lt;i&gt;sources.list&lt;/i&gt; and run after that an  &lt;i&gt;apt-get update&lt;/i&gt;.&lt;br /&gt;
&lt;blockquote&gt;deb http://ftp2.de.debian.org/debian-volatile sarge/volatile main&lt;/blockquote&gt;&lt;br /&gt;
BTW: &lt;a href=&quot;http://www.debian.org/devel/debian-volatile/volatile-mirrors&quot;&gt; Volatile Mirror List&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Now you can install your clamav normally with an  &lt;i&gt;apt-get install clamav&lt;/i&gt;. 
    </content:encoded>

    <pubDate>Fri, 19 May 2006 02:18:03 +0200</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/19-guid.html</guid>
    
</item>
<item>
    <title>Postfix with Amavis-new for virus scanning</title>
    <link>http://blog.brachium-system.net/archives/5-Postfix-with-Amavis-new-for-virus-scanning.html</link>
            <category>mail</category>
            <category>virus</category>
            <category>work</category>
    
    <comments>http://blog.brachium-system.net/archives/5-Postfix-with-Amavis-new-for-virus-scanning.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=5</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.brachium-system.net/rss.php?version=2.0&amp;type=comments&amp;cid=5</wfw:commentRss>
    

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    Here is a short HowTo for configure Postfix to use Amavis with ClamAV for virus scanning!&lt;br /&gt;
&lt;br /&gt;
First you should install ClamAV from backports.org, when you using the ClamAV from stable/sarge you have an old searching engine that maybe have some problems to recognize new viruses with the new files from ClamAV-freshclam.&lt;br /&gt;
&lt;br /&gt;
First add this line to your &lt;i&gt;/etc/apt/sources.list&lt;/i&gt;:&lt;br /&gt;
&lt;blockquote&gt;deb http://www.backports.org/debian sarge-backports main&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Now that is very important to create a &lt;i&gt;/etc/apt/preferences&lt;/i&gt; file:&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
Package: *&lt;br /&gt;
Pin: release a=sarge-backports&lt;br /&gt;
Pin-Priority: 200&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
With this entry you deactivate all packages from backports.org this is important because we will only install ClamAV from backports.&lt;br /&gt;
&lt;br /&gt;
Save the file and run an apt-get update to receive the packagefiles from backports.org.&lt;br /&gt;
&lt;br /&gt;
Now install clamav with:&lt;br /&gt;
&lt;i&gt;apt-get install -t sarge-backports clamav clamav-freshclam&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
The &lt;b&gt;-t sarge-backports&lt;/b&gt; is necessary, because apt will now install the package from backports.org!&lt;br /&gt;
&lt;br /&gt;
Now install amavis-new:&lt;br /&gt;
&lt;i&gt;apt-get install amavis-new&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Edit your &lt;i&gt;/etc/postfix/main.cf&lt;/i&gt; and add this for amavis:&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
###E-Mail filter:&lt;br /&gt;
content_filter = amavis:[127.0.0.1]:10024&lt;br /&gt;
receive_override_options = no_address_mappings&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Edit your &lt;i&gt;/etc/postfix/master.cf&lt;/i&gt; and add this for amavis:&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
amavis unix - - - - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes&lt;br /&gt;
&lt;br /&gt;
127.0.0.1:10025 inet n - - - - smtpd  -o content_filter=&lt;br /&gt;
        -o local_recipient_maps= -o relay_recipient_maps=&lt;br /&gt;
        -o smtpd_restriction_classes= -o smtpd_client_restrictions=&lt;br /&gt;
        -o smtpd_helo_restrictions= -o smtpd_sender_restrictions=&lt;br /&gt;
        -o smtpd_recipient_restrictions=permit_mynetworks,reject&lt;br /&gt;
        -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes&lt;br /&gt;
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks&lt;br /&gt;
        -o smtpd_bin_address=127.0.0.1&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Now you have to add clamav user to the amavis system group and add the clamav user to the amavis system group in your &lt;i&gt;/etc/group&lt;/i&gt;! &lt;br /&gt;
Because clamav user must read files in the amavis directory and the amvis user must read files in the clamav directory.&lt;br /&gt;
After the modification &lt;i&gt;/etc/group&lt;/i&gt; should look like:&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
clamav:x:107:amavis&lt;br /&gt;
amavis:x:108:clamav&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
After this modification &lt;b&gt;you have to restart all services!&lt;/b&gt;&lt;br /&gt;
(postfix, clamav-daemon, clamav-freshclam, amvis)&lt;br /&gt;
&lt;br /&gt;
Than you have to edit the &lt;i&gt;/etc/amavis/amavisd.conf&lt;/i&gt;:&lt;br /&gt;
It&#039;s very big so I only list the changes:&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
line 66: $mydomain = &#039;localhost&#039;; &lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
-&gt;&gt;change to your hostname&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
line 429: $warnvirussender = 0;&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
-&gt;&gt; no mail to virussender. because often the from emailaddres is faked!&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
line 442: $warnvirusrecip = 1;&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
-&gt;&gt; the recipient gets an email that he has received an virus email&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
line 476: $virus_admin = undef;&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
-&gt;&gt; postmaster gets no notification&lt;br /&gt;
&lt;br /&gt;
Safe the configuration file and restart your amavid!&lt;br /&gt;
&lt;br /&gt;
Now try to send an email and than try to send a virus from &lt;a href=&quot;http://www.eicar.org/anti_virus_test_file.htm&quot;http://www.eicar.org/anti_virus_test_file.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If the repicient gets an email about “VIRUS ( EICAR.Test) IN MAIL TO YOU” all works fine. &lt;br /&gt;
&lt;br /&gt;
If not, check the &lt;i&gt;/var/log/mail.log&lt;/i&gt; and try to resolv the error! &lt;img src=&quot;http://blog.brachium-system.net/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Thu, 09 Feb 2006 14:41:27 +0100</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/5-guid.html</guid>
    
</item>

</channel>
</rss>