<?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 - mail</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 - mail - Weblog of an System Engineer</title>
        <link>http://blog.brachium-system.net/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Policyd-Weight nagios plugin</title>
    <link>http://blog.brachium-system.net/archives/59-Policyd-Weight-nagios-plugin.html</link>
            <category>control</category>
            <category>mail</category>
            <category>spam</category>
    
    <comments>http://blog.brachium-system.net/archives/59-Policyd-Weight-nagios-plugin.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=59</wfw:comment>

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

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    If you are using &lt;a href=&quot;http://www.policyd-weight.org/&quot;&gt;Policyd-weight&lt;/a&gt; and you want to monitor it with your nagios, you can use my policyd-weight nagios plugin.&lt;br /&gt;
&lt;br /&gt;
You can download it &lt;a href=&quot;http://jonas.genannt.name/check_policyd_weight.pl&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 08 Jun 2007 10:42:13 +0200</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/59-guid.html</guid>
    
</item>
<item>
    <title>TMS Logistik - Spam</title>
    <link>http://blog.brachium-system.net/archives/52-TMS-Logistik-Spam.html</link>
            <category>mail</category>
            <category>spam</category>
    
    <comments>http://blog.brachium-system.net/archives/52-TMS-Logistik-Spam.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=52</wfw:comment>

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

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    I think you are know the TMS Logisik Spam. I get it 10 times a day.&lt;br /&gt;
&lt;br /&gt;
You should look at &lt;a href=&quot;http://tms-logistik.de/&quot;&gt;http://tms-logistik.de/&lt;/a&gt; a really nice site about spambots and the fucking spammails.&lt;br /&gt;
&lt;br /&gt;
I using postifx-pcre to reject this mail on SMTP connect. If you reject this mails on SMTP connect your mailq does not blow up and it does not slow down your mailserver. 
    </content:encoded>

    <pubDate>Thu, 29 Mar 2007 22:35:47 +0200</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/52-guid.html</guid>
    
</item>
<item>
    <title>Webbased email administration interface - Update</title>
    <link>http://blog.brachium-system.net/archives/35-Webbased-email-administration-interface-Update.html</link>
            <category>control</category>
            <category>mail</category>
            <category>network</category>
            <category>work</category>
    
    <comments>http://blog.brachium-system.net/archives/35-Webbased-email-administration-interface-Update.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=35</wfw:comment>

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

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    Updated features list:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1.) normal eMailaccount&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;change there own password&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;create/modify/delete autoresponder&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;&lt;b&gt;create/modify/delete forward to an other email address (with the option deliver local or not)&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;&lt;b&gt;activate/deactivate spamassassin&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;&lt;b&gt;create/modify/delete whist- and blacklists for spamassassin&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;&lt;b&gt;modify some options for spamassassin, e.g.  rewrite subject&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
Now it would be nice if some volunteer create a nice site layout for the webinterface. &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>Sun, 10 Sep 2006 18:06:35 +0200</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/35-guid.html</guid>
    
</item>
<item>
    <title>Webbased email administration interface</title>
    <link>http://blog.brachium-system.net/archives/33-Webbased-email-administration-interface.html</link>
            <category>control</category>
            <category>mail</category>
            <category>network</category>
            <category>work</category>
    
    <comments>http://blog.brachium-system.net/archives/33-Webbased-email-administration-interface.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=33</wfw:comment>

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

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    My project is neaerly complete! - Web based managment for eMailServers.&lt;br /&gt;
&lt;br /&gt;
My eMailServer framework based on Courier/Postfix/Maildrop/MySQL has got four usergroups:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1.) normal eMailaccount&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;change there own password&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;create/modify/delete autoresponder&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;b&gt;2.) admin for one or more domains&lt;/b&gt;&lt;br /&gt;
        &lt;ul&gt;&lt;li&gt;can do the same like a normal eMailaccount&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;create/modify/delete eMailaddresses&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;create/modify/delete Forwardings&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;create/modify/delete CatchAll Address&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3.) superadmin&lt;/b&gt;&lt;br /&gt;
        &lt;ul&gt;&lt;li&gt;can do the same like the admin&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;create/modify/delete domains&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4.) superadmin manager&lt;/b&gt;&lt;br /&gt;
        &lt;ul&gt;&lt;li&gt;can do the same like the superadmin&lt;/li&gt;&lt;br /&gt;
        &lt;li&gt;create/modify/delete superadmins&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
All this actions can be done with the webinterface!&lt;br /&gt;
&lt;br /&gt;
You can find &lt;a href=&quot;http://jonas.capi2name.de/email_system/&quot;&gt;some screenshots here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Sorry all screenshots in german, but it based on Smarty so you can make your own template.&lt;br /&gt;
&lt;br /&gt;
The Webinterface depends on php4, php4-mysql, php4-cli, mysql-server,smarty, php4-pear and some extra Pear Modules. 
    </content:encoded>

    <pubDate>Mon, 14 Aug 2006 21:27:04 +0200</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/33-guid.html</guid>
    
</item>
<item>
    <title>Virtual emailsystem based on MySQL/postfix/Courier</title>
    <link>http://blog.brachium-system.net/archives/28-Virtual-emailsystem-based-on-MySQLpostfixCourier.html</link>
            <category>mail</category>
            <category>network</category>
    
    <comments>http://blog.brachium-system.net/archives/28-Virtual-emailsystem-based-on-MySQLpostfixCourier.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=28</wfw:comment>

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

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    I develop an easy webinterface for Postfix and Courier based on a MySQL Database.&lt;br /&gt;
&lt;br /&gt;
Now it get a step closer to the finish.&lt;br /&gt;
&lt;a href=&quot;http://blog.brachium-system.net/uploads/email_syste.jpg&quot;&gt;&lt;br /&gt;
&lt;img width=&#039;110&#039; height=&#039;90&#039; border=&#039;0&#039; hspace=&#039;5&#039; src=&#039;http://blog.brachium-system.net/uploads/email_syste.serendipityThumb.jpg&#039; alt=&#039;&#039; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Main work is done, now some subtleties need to be done.&lt;br /&gt;
&lt;br /&gt;
Yes, and it&#039;s using smarty, so everyone can make his own style! &lt;img src=&quot;http://blog.brachium-system.net/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks to &lt;a href=&quot;http://blog.bremert.eu&quot;&gt;Sven&lt;/a&gt; he provides me a vserver for testing! 
    </content:encoded>

    <pubDate>Fri, 30 Jun 2006 00:32:42 +0200</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/28-guid.html</guid>
    
</item>
<item>
    <title>SPAM: Please program secure mailscript with PHP</title>
    <link>http://blog.brachium-system.net/archives/23-SPAM-Please-program-secure-mailscript-with-PHP.html</link>
            <category>mail</category>
            <category>spam</category>
    
    <comments>http://blog.brachium-system.net/archives/23-SPAM-Please-program-secure-mailscript-with-PHP.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=23</wfw:comment>

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

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    &lt;blockquote&gt;&lt;b&gt;Please Mr. Postman&lt;/b&gt;&lt;br /&gt;
Wait, oh yes wait a minute mister postman&lt;br /&gt;
Wait, wait mister postman&lt;/blockquote&gt;(The Marvelettes  covered by The Beatles)&lt;br /&gt;
&lt;br /&gt;
So! Please wait and think a moment, if you program a little script for sending mails from an webpage to you.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Very&lt;/strong&gt; often these script are insecure. Spammers use this script regularly  to send tons of spam emails throw &lt;strong&gt;your&lt;/strong&gt; server.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 01 Jun 2006 23:21:01 +0200</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/23-guid.html</guid>
    
</item>
<item>
    <title>Postfix with SASL-Authentication in Debian</title>
    <link>http://blog.brachium-system.net/archives/16-Postfix-with-SASL-Authentication-in-Debian.html</link>
            <category>debian</category>
            <category>mail</category>
    
    <comments>http://blog.brachium-system.net/archives/16-Postfix-with-SASL-Authentication-in-Debian.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=16</wfw:comment>

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

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    I think SMTP-AUTH is very important! Here is a short HowTo for Postfix with sasl authentication against shadow.&lt;br /&gt;
&lt;br /&gt;
First install the necessary packages:&lt;br /&gt;
&lt;i&gt;apt-get install postfix-tls libsasl2-modules sasl2-bin&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Open the &lt;i&gt;/etc/default/saslauthd&lt;/i&gt; for the configuration.&lt;br /&gt;
&lt;blockquote&gt;# This needs to be uncommented before saslauthd will be run automatically&lt;br /&gt;
START=yes&lt;br /&gt;
# You must specify the authentication mechanisms you wish to use.&lt;br /&gt;
# This defaults to &quot;pam&quot; for PAM support, but may also include&lt;br /&gt;
# &quot;shadow&quot; or &quot;sasldb&quot;, like this:&lt;br /&gt;
MECHANISMS=&quot;shadow&quot;&lt;br /&gt;
&lt;br /&gt;
PARAMS=&quot;-m /var/spool/postfix/var/run/saslauthd/&quot;&lt;br /&gt;
PIDFILE=&quot;/var/spool/postfix/var/run/${NAME}/saslauthd.pid&quot;&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Postfix have to know which authentication mode the daemon will use.&lt;br /&gt;
You can define this in the &lt;i&gt;/etc/postfix/sasl/smtpd.conf&lt;/i&gt;! (&lt;b&gt;chmod 0644&lt;/b&gt;)&lt;br /&gt;
&lt;blockquote&gt;saslauthd_path: /var/run/saslauthd/mux&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: plain login&lt;/blockquote&gt;&lt;br /&gt;
Then configure the postfix to ask for a username and password then anybody will send a mail to the server.&lt;br /&gt;
Add the following lines to the &lt;i&gt;/etc/postfix/main.cnf&lt;/i&gt;&lt;br /&gt;
&lt;blockquote&gt;#sasl&lt;br /&gt;
smtpd_sasl_auth_enable = yes&lt;br /&gt;
smtpd_sasl_security_options = noanonymous&lt;br /&gt;
smtpd_sasl_local_domain =&lt;br /&gt;
smtp_sasl_auth_enable = no&lt;br /&gt;
broken_sasl_auth_clients = yes&lt;br /&gt;
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
For security reason you should change that postfix runs in a chroot environment. You can change that in the &lt;i&gt;/etc/postfix/master.cnf&lt;/i&gt;&lt;br /&gt;
&lt;blockquote&gt;smtp      inet  n       -       &lt;b&gt;y&lt;/b&gt;       -       -       smtpd&lt;/blockquote&gt;&lt;br /&gt;
(Change the &lt;b&gt;-&lt;/b&gt; to &lt;b&gt;y&lt;/b&gt;!)&lt;br /&gt;
&lt;br /&gt;
Create now the directory for the saslauthd:&lt;br /&gt;
&lt;i&gt;mkdir -p /var/spool/postfix/var/run/saslauthd&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Set the right directory permission:&lt;br /&gt;
&lt;i&gt;chown root.sasl -R /var/spool/postfix/var/&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Instead that dpkg change the permission we have to create an override for dpkg!&lt;br /&gt;
&lt;i&gt;dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
At last postfix musst have the right permission to speak to the saslauthd daemon, add postfix to the sasl group.&lt;br /&gt;
&lt;i&gt;adduser postfix sasl&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Restart postfix and saslauthd and try to send a mail to the mailserver.&lt;br /&gt;
&lt;br /&gt;
(Don&#039;t forget to set a username and a password in your mailclient for mailsending) &lt;img src=&quot;http://blog.brachium-system.net/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Thu, 27 Apr 2006 22:31:37 +0200</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/16-guid.html</guid>
    
</item>
<item>
    <title>Script: check for new security updates with cron and mail</title>
    <link>http://blog.brachium-system.net/archives/9-Script-check-for-new-security-updates-with-cron-and-mail.html</link>
            <category>control</category>
            <category>debian</category>
            <category>mail</category>
            <category>work</category>
    
    <comments>http://blog.brachium-system.net/archives/9-Script-check-for-new-security-updates-with-cron-and-mail.html#comments</comments>
    <wfw:comment>http://blog.brachium-system.net/wfwcomment.php?cid=9</wfw:comment>

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

    <author>nospam@example.com (Jonas Genannt)</author>
    <content:encoded>
    This script checks for new updates and mails the output to the sysadmin!&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
#Copyright: Jonas Genannt jonas.genannt (AT) capi2name.de&lt;br /&gt;
#License: GPL&lt;br /&gt;
&lt;br /&gt;
MAIL_CMD=&quot;/usr/bin/mail&quot;&lt;br /&gt;
EMAIL_ADDR=&quot;email@domain.tld&quot;&lt;br /&gt;
TMPNAME=&quot;`mktemp`&quot;&lt;br /&gt;
&lt;br /&gt;
IPADDR=&quot;`LC_ALL=&#039;en&#039; /sbin/ifconfig eth0 | sed -n -e&#039;/inet addr:/s/^.*inet addr:\([0-9.]*\).*$/\1/p&#039;`&quot;&lt;br /&gt;
&lt;br /&gt;
if [ -z ${IPADDR} ]; then&lt;br /&gt;
        IPADDR=&quot;`LC_ALL=&#039;en&#039; /sbin/ifconfig eth0:1 | sed -n -e&#039;/inet addr:/s/^.*inet addr:\([0-9.]*\).*$/\1/p&#039;`&quot;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z ${IPADDR} ]; then&lt;br /&gt;
        IPADDR=`/bin/hostname -f`&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
apt-get update &gt; /dev/null&lt;br /&gt;
if [ `apt-get --just-print upgrade | grep -c -E &quot;^Inst&quot;` -gt &quot;0&quot; ]; then&lt;br /&gt;
&lt;br /&gt;
        echo -e &quot;apt-get upgrade would like to install these packages:\n&quot; &gt;&gt; ${TMPNAME}&lt;br /&gt;
        `apt-get --just-print -u  upgrade | grep   &quot;^Inst &quot; | awk &#039;{print$2}&#039; &gt;&gt; ${TMPNAME}`&lt;br /&gt;
        echo -e &quot;\n-------------------------------------\nSecurity Updates. You know the drill.&quot; &gt;&gt; ${TMPNAME}&lt;br /&gt;
        ${MAIL_CMD} ${EMAIL_ADDR} -s &quot;Updates available on ${IPADDR}&quot; &lt; ${TMPNAME}&lt;br /&gt;
        rm -f ${TMPNAME}&lt;br /&gt;
fi&lt;br /&gt;
&lt;/blockquote&gt; 
    </content:encoded>

    <pubDate>Mon, 20 Feb 2006 22:03:13 +0100</pubDate>
    <guid isPermaLink="false">http://blog.brachium-system.net/archives/9-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>