<?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>BitDefender Unices &#187; Quick tutorials</title>
	<atom:link href="http://unices.bitdefender.com/category/quicktutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://unices.bitdefender.com</link>
	<description>We're going to show you a world, where anything is possible.</description>
	<lastBuildDate>Fri, 13 Nov 2009 14:21:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Radmin 3.1 Trailer</title>
		<link>http://unices.bitdefender.com/2009/11/03/radmin-3-1-trailer/</link>
		<comments>http://unices.bitdefender.com/2009/11/03/radmin-3-1-trailer/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 11:24:16 +0000</pubDate>
		<dc:creator>The BitDefender Team</dc:creator>
				<category><![CDATA[Quick tutorials]]></category>

		<guid isPermaLink="false">http://unices.bitdefender.com/?p=674</guid>
		<description><![CDATA[We also have a video now  
You can also download it from here.
]]></description>
			<content:encoded><![CDATA[<p>We also have a video now <img src='http://unices.bitdefender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<object width="400" height="300"><param name="movie" value="http://unices.bitdefender.com/wp-content/plugins/video-enhanced/player.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="flashvars" value="file=http%3A%2F%2Funices.bitdefender.com%2Fwp-content%2Fuploads%2F2009%2F11%2Fradmin_view.flv" /><embed src="http://unices.bitdefender.com/wp-content/plugins/video-enhanced/player.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="300" flashvars="file=http%3A%2F%2Funices.bitdefender.com%2Fwp-content%2Fuploads%2F2009%2F11%2Fradmin_view.flv"></embed></object>
<p>You can also download it from <a title="Radmin 3.1 Trailer" href="http://unices.bitdefender.com/wp-content/uploads/2009/11/radmin_view.mpeg" target="_self">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://unices.bitdefender.com/2009/11/03/radmin-3-1-trailer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://unices.bitdefender.com/wp-content/uploads/2009/11/radmin_view.flv" length="9506761" type="video/x-flv" />
<enclosure url="http://unices.bitdefender.com/wp-content/uploads/2009/11/radmin_view.mpeg" length="19668246" type="video/mpeg" />
		</item>
		<item>
		<title>BitDefender and CommuniGate Pro howto</title>
		<link>http://unices.bitdefender.com/2009/05/13/bitdefender-and-communigate-pro-howto/</link>
		<comments>http://unices.bitdefender.com/2009/05/13/bitdefender-and-communigate-pro-howto/#comments</comments>
		<pubDate>Wed, 13 May 2009 16:20:41 +0000</pubDate>
		<dc:creator>The BitDefender Team</dc:creator>
				<category><![CDATA[Quick tutorials]]></category>

		<guid isPermaLink="false">http://unices.bitdefender.com/?p=511</guid>
		<description><![CDATA[The BitDefender Security for Mail Servers product offers support for the CommuniGate Pro server, but in certain special cases the integration might not work entirely out of the box. The following article explains the additional steps that need to be followed in order to fully integrate BitDefender with CommuniGate.
First, when BitDefender is installed, the MTA [...]]]></description>
			<content:encoded><![CDATA[<p>The <em>BitDefender Security for Mail Servers</em> product offers support for the <a title="The CommuniGate Website" href="http://www.communigate.com/" target="_blank">CommuniGate Pro</a> server, but in certain special cases the integration might not work entirely out of the box. The following article explains the additional steps that need to be followed in order to fully integrate BitDefender with CommuniGate.<span id="more-511"></span></p>
<p>First, when BitDefender is installed, the MTA with which you want to integrate with must be <em>CommuniGate Pro</em>. If such a product is already installed on the server, the BitDefender installer will automatically detect it and display it as default option for MTA integration.</p>
<p>If BitDefender is already installed and integrated with another MTA, for example <em>Sendmail</em>, you can change it by disabling the <em>milter</em> integration and activating the <em>CommuniGate Pro</em> one:</p>
<blockquote>
<pre># ./bdsafe agent disable milter
# ./bdsafe agent enable cgate
# cd /opt/BitDefender/bin</pre>
</blockquote>
<blockquote></blockquote>
<p>The second step is to add some lines in the <em>Mail.settings</em> file of the <em>CommuniGate Pro</em> server, located in <em>/var/CommuniGate/Settings.</em></p>
<p>Use your favorite editor to edit the <em>Main.settings</em> file (do not forget to make a backup of it first, in case something goes wrong). Add the following lines somewhere in the configuration file, between the first &#8216;{&#8217; and the last &#8216;}&#8217;:</p>
<blockquote>
<pre>ExternalFilters = (
    {
        Enabled = YES;
        LogLevel = 5;
        Name = BitDefender;
        ProgramName = "/opt/BitDefender/bin/bdcgated";
        RestartPause = 1m;
        Timeout = 2m;
    }
);</pre>
</blockquote>
<p>After this, modify the <em>Rules.settings</em> file (again, make a backup first) and add a rule for the BitDefender filter:</p>
<blockquote>
<pre>(
    5,
    BitDefender,
    (("Message Size", "greater than", 1)),
    ((ExternalFilter, BitDefender))
)</pre>
</blockquote>
<p>Another way and the <span style="text-decoration: underline;">recommended</span> one to enable the BitDefender integration, is to use the CommuniGate management web interface (by default it listens on <em>http://&lt;your-host&gt;:8010</em>):</p>
<p>1. go to <em>Settings</em> → <em>General</em> (you will be required to login);</p>
<p>2. go to the <em>Helpers</em> tab and look at <em>Content Filtering</em>, for the <em>CommuniGate Pro</em> version;</p>
<p>3. do the following actions:</p>
<p style="padding-left: 30px;">3.1. check the <em>Use Filter</em> box;</p>
<p style="padding-left: 30px;">3.2. enter <em>BitDefender</em> in the text box;</p>
<p style="padding-left: 30px;">3.3. set the <em>Log list </em>to<em> Problems</em>;</p>
<p style="padding-left: 30px;">3.4. set <em>Timeout</em> to 2 minutes</p>
<p>In the <em>Program Path</em>, enter <em>/opt/BitDefender/bin/bdcgated</em>. For <em>CommuniGate Pro</em> version 5 and above, the method is slightly different:</p>
<p style="padding-left: 30px;">3.1. enable the filter using the drop-down combo box;</p>
<p style="padding-left: 30px;">3.2. enter <em>BitDefender</em> in the corresponding text box;</p>
<p style="padding-left: 30px;">3.3. set the <em>Log Level</em> to <em>Problems</em>;</p>
<p style="padding-left: 30px;">3.4. set <em>Timeout</em> to 2 minutes;</p>
<p style="padding-left: 30px;">3.5. in the <em>Program Path</em> text box, enter <em>/opt/BitDefender/bin/bdcgated</em>;</p>
<p style="padding-left: 30px;">3.6. set <em>Auto-Restart</em> to 5 seconds;</p>
<p style="padding-left: 30px;">3.7. press <em>Update</em>;</p>
<p>4. go to the <em>Settings</em> → <em>Mail</em> → <em>Rules</em> tab;</p>
<p>5. enter <em>BitDefender</em> and press <em>Create New</em> or <em>Add Rule</em>, in version 5;</p>
<p>6. press the <em>Edit</em> button next to the <em>BitDefender</em> filter. Do the following:</p>
<p style="padding-left: 30px;">6.1. look at the <em>Data</em> list and set it to <em>Message Size</em>;</p>
<p style="padding-left: 30px;">6.2. set <em>Operation</em> to <em>greater than</em>;</p>
<p style="padding-left: 30px;">6.3. set <em>Parameter</em> to 1;</p>
<p style="padding-left: 30px;">6.4. look at the <em>Action</em> list and set it to <em>External Filter</em>;</p>
<p style="padding-left: 30px;">6.5. enter <em>BitDefender</em> in the <em>Parameters</em> box;</p>
<p style="padding-left: 30px;">6.6. press <em>Update</em>;</p>
<p>7. restart the <em>BitDefender</em> services;</p>
<p>8. restart the <em>CommuniGate Pro</em> server.</p>
<p>BitDefender will now start scanning your incoming messages.</p>
<p>With the latest update, <em>BitDefender Security for Mail Servers</em> can provide some additional information to <em>CommuniGate Pro</em> server, in order to mark spam messages and to deliver them in the designated folder (<em>Junk</em>), depending on the <em>digital range bar score from the email headers</em>. In order to enable this feature, do the following:</p>
<blockquote>
<pre># cd /opt/BitDefender/bin</pre>
<pre># ./bdsafe group configure mygroup antispam cgatecompat Y</pre>
<pre># ./bdsafe reloadsettings</pre>
</blockquote>
<p>Change <em>mygroup</em> with the name of your group. If you have a default installation, <em>mygroup</em> is <em>default</em> (bdsafe group configure default antispam cgatecompat Y).</p>
<p>From this moment on, BitDefender will add a new header, which looks something like this: <em>X-Junk-Score: 92 [XXXX]</em>. The number of X-s is given by the value of the spam level, so the digital score bar range will look like this:</p>
<blockquote>
<pre>0  []
1-39  [X]
40-80  [XX]
81-90  [XXX]
91-95  [XXXX]
96-99  [XXXXX]
100  [XXXXXX]</pre>
</blockquote>
<p>If the email is not spam, the range is &#8216;0 []&#8216;, if the value increases, the range bar will do the same, &#8216;1-39 [X]&#8216; and so on.</p>
<p>The administrator of the <em>CommuniGate Pro</em> server can set the actions for this kind of emails. From <em>Settings</em>-&gt;<em>Users</em>-&gt;<em>Domains</em>, the <em>Junk Mail control</em> can set the action for spam e-mails. For example, <em>High probability</em>-&gt;<em>Store in junk</em>, <em>Medium probability</em>-&gt;<em>Mark as Junk</em>, <em>Low priority</em>-&gt;<em>Mark as junk.</em></p>
<p style="text-align: center;"><a href="http://unices.bitdefender.com/wp-content/uploads/2009/05/communigate-x-junk-score.png"><img class="aligncenter size-medium wp-image-543" style="border: 0pt none;" title="CommuniGate X-Junk-Score" src="http://unices.bitdefender.com/wp-content/uploads/2009/05/communigate-x-junk-score-300x38.png" alt="" width="300" height="38" /></a></p>
<p>If the user receives an e-mail that is marked as spam (<em>X-Junk-Score: 100 [XXXXXX]</em>), this mail will be moved in the Junk directory. Using this header, the administrator of the <em>CommuniGate Pro</em> server can filter the e-mails delivered to the users.</p>
<p>For more information, read the <a title="The BitDefender Security for Mail Servers User Guide" href="http://download.bitdefender.com/SMB /Mail_Server_Security/BitDefender_Security_for_Mail_Servers/Unix/Current/ EN/Version_3.0/Documentation/BitDefender_Security_for_Mail_Servers_UNIX_v3_Userguide.pdf" target="_blank">BitDefender user guide</a> and <a title="The CommuniGate Pro Flags" href="http://www.communigate.com/CommuniGatePro/Mailboxes.html#Flags" target="_blank">this chapter</a> on CommuniGate Server flags.</p>
]]></content:encoded>
			<wfw:commentRss>http://unices.bitdefender.com/2009/05/13/bitdefender-and-communigate-pro-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building the BitDefender VFS for Samba</title>
		<link>http://unices.bitdefender.com/2009/05/06/building-the-bitdefender-vfs-for-samba/</link>
		<comments>http://unices.bitdefender.com/2009/05/06/building-the-bitdefender-vfs-for-samba/#comments</comments>
		<pubDate>Wed, 06 May 2009 12:26:35 +0000</pubDate>
		<dc:creator>The BitDefender Team</dc:creator>
				<category><![CDATA[Quick tutorials]]></category>

		<guid isPermaLink="false">http://unices.bitdefender.com/?p=475</guid>
		<description><![CDATA[In order to compile the BitDefender vfs module, the Samba server sources are required. There are two ways to obtain the source of the Samba server. If you use a rpm based system, download the src.rpm from the distro repository, or just use yum to download and install the src.rpm file.
For example, in Fedora Core, [...]]]></description>
			<content:encoded><![CDATA[<p>In order to compile the BitDefender vfs module, the Samba server sources are required. There are two ways to obtain the source of the Samba server. If you use a <em>rpm</em> based system, download the <em>src.rpm</em> from the distro repository, or just use <em>yum</em> to download and install the <em>src.rpm</em> file.<span id="more-475"></span></p>
<p>For example, in <a title="The Fedora Project Page" href="http://fedoraproject.org/" target="_blank">Fedora Core</a>, download the <em>src.rpm</em> file from the repository and install it with:</p>
<blockquote>
<pre># rpm -ivh samba-3.0.24.src.rpm</pre>
</blockquote>
<p>If the install is OK, go to <em>/usr/src/redhat/SPECS</em> and rebuild the <em>src.rpm</em> file:</p>
<blockquote>
<pre># cd /usr/src/redhat/SPECS
# rpmbuild -bc samba.spec</pre>
</blockquote>
<p>It is possible you will need some more packages (<em>libacl-devel</em>, <em>cups-devel</em>, <em>gnutls-devel</em>, <em>autoconf</em>, <em>libtool</em> etc.) to rebuild the <em>src.rpm</em> package. If so, use the distro way to install the missing packages.</p>
<p>The other way is to get the latest source tarball from the Samba <a title="The Samba Project Page" href="http://www.samba.org" target="_blank">web site</a>.</p>
<p>The next step is to compile the BitDefender vfs module. Go to <em>/opt/BitDefender/var/src</em> and unpack the <em>BitDefender-Samba-vfs.tar.gz</em> file using:</p>
<blockquote>
<pre># tar -xvf BitDefender-Samba-vfs.tar.gz</pre>
</blockquote>
<p>To compile the vfs, run in a console:</p>
<blockquote>
<pre># ./configure --with-samba-source=samba_source_directory</pre>
</blockquote>
<p><em>samba-source_directory</em> is <em>/usr/src/redhat/BUILD/samba-3.0.24</em> if the <em>src.rpm</em> is used, or it can be the path to the Samba sources from the <em>tar.gz</em> file. If there are no error messages, type:</p>
<blockquote>
<pre># make &amp;&amp; make install</pre>
</blockquote>
<p>By default the vfs file <em>bdvfs3.so</em> is installed in <em>/usr/lib/samba/vfs</em>. This path can be changed by setting the <em>&#8216;&#8211;with-install-dir&#8217;</em> parameter in the <em>configure</em> command.</p>
<p>The BitDefender Samba vfs module is activated/deactivated on a per-share basis. You can check it&#8217;s status by running the following command:</p>
<blockquote>
<pre># bdsafe samba vfs</pre>
</blockquote>
<p>The output will be something like this:</p>
<blockquote>
<pre>global
    Path           :
    VFS            : disabled

public
    Path           : /data/500GB/public/
    VFS            : disabled</pre>
</blockquote>
<p>To enable the BitDefender vfs for the <em>public</em> share, run:</p>
<blockquote>
<pre># bdsafe samba vfs enable public</pre>
</blockquote>
<p>To check the status of the <em>public</em> share, type:</p>
<blockquote>
<pre># bdsafe samba vfs status public</pre>
</blockquote>
<p>The output will look like this:</p>
<blockquote>
<pre>public
    Path           : /data/500GB/public/
    VFS            : enabled
    Failure action : (default)
    Actions:
        On infected  : (default)
        On suspected : (default)
        On riskware  : (default)</pre>
</blockquote>
<p>To test if the BitDefender vfs for Samba is working, try to copy the <a title="The EICAR Test File Download Page" href="http://www.eicar.org/anti_virus_test_file.htm" target="_blank">EICAR</a> test file from a windows machine into the <em>public</em> share. If it&#8217;s working, in the <em>/opt/BitDefender/var/log/virus.log</em> file, a new entry will appear and the test file will be deleted from the <em>public</em> share:</p>
<p>&#8220;05/06/2009 11:15:03 BDFILED MALWARE: /data/500GB/public/eicar.com (/data/500GB/public/eicar.com), malware: EICAR-Test-File (not a virus), status: Infected, action: Deleted (disinfect, delete, deny)&#8221;</p>
<p>Now your share is protected against malware by BitDefender. <img src='http://unices.bitdefender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For more information about the BitDefender vfs module, please read the <em>INSTALL.samba-vfs</em> file from your BitDefender installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://unices.bitdefender.com/2009/05/06/building-the-bitdefender-vfs-for-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BitDefender + Axigen = Milter Love</title>
		<link>http://unices.bitdefender.com/2009/01/27/bitdefender-axigen-milter-love/</link>
		<comments>http://unices.bitdefender.com/2009/01/27/bitdefender-axigen-milter-love/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 16:31:24 +0000</pubDate>
		<dc:creator>Daniel Dumitrache</dc:creator>
				<category><![CDATA[Quick tutorials]]></category>

		<guid isPermaLink="false">http://unices.bitdefender.com/?p=322</guid>
		<description><![CDATA[The BitDefender Security Milter integration saga continues after the last article with an new conquest: Axigen Mail Server v6. If you wish to integrate BitDefender Security for Mail Servers with your Axigen server please read on for a step by step quick guide.



The minimum required Axigen version is 6.0, previous versions use a different method [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="font-family: Trebuchet MS,sans-serif;">The BitDefender Security Milter integration saga continues after the last <a href="../postfix-and-bitdefender-for-milter/">article</a> with an new conquest: <a href="http://www.axigen.com/">Axigen</a> Mail Server v6. If you wish to integrate <a href="http://www.bitdefender.com/PRODUCT-32-en--BitDefender-Security-for-Mail-Servers.html">BitDefender Security for Mail Servers</a> with your Axigen server please read on for a step by step quick guide.</span></p>
<p style="text-align: justify;">
<p style="text-align: justify;"><span id="more-322"></span></p>
<p><br class="omg" /></p>
<p style="text-align: justify;"><span style="font-family: Trebuchet MS,sans-serif;">The minimum required Axigen version is 6.0, previous versions use a different method for integrating with milter interfaces, you&#8217;ll be ok with any 6.x version. All commands below should be executed from within the <em><strong>~bitdefender/bin</strong></em> directory.</span></p>
<p><br class="omg" /></p>
<p style="text-align: justify;"><span style="font-family: Trebuchet MS,sans-serif;">First of all, you&#8217;ll have to install BitDefender and select the <span style="color: #000000;"><em><strong>Sendmail-milter</strong></em></span> agent during the installation wizard, or if it&#8217;s already installed just enable it:</span></p>
<blockquote style="text-align: justify;">
<pre># ./bdsafe agent enable milter</pre>
</blockquote>
<p style="text-align: justify;"><span style="font-family: Trebuchet MS,sans-serif;">BitDefender and Axigen run as different users, and they need to communicate with each other for the integration to work, so you&#8217;ll need to make some changes regarding the two users and the default access permissions:</span></p>
<ol style="text-align: justify; padding-left: 65px;">
<li> Add the <em><strong>axigen</strong></em> user to BitDefender&#8217;s <em><strong>LocalUsers</strong></em> and to the <em><strong>bitdefender</strong></em> system group:<br />
<blockquote>
<pre># ./bdsafe registry configure localusers add axigen</pre>
</blockquote>
<ul>
<li>Linux: add the <em><strong>axigen</strong></em> user to the <em><strong>bitdefender</strong></em> group:<br />
<blockquote>
<pre># usermod -G axigen,bitdefender axigen</pre>
</blockquote>
</li>
<li>FreeBSD: add the <em><strong>axigen</strong></em> user to the <em><strong>bitdefender</strong></em> group:<br />
<blockquote>
<pre># pw usermod axigen -G axigen,bitdefender</pre>
</blockquote>
</li>
</ul>
</li>
<li> Change the access permissions on <em><strong>/var/run/BitDefender</strong></em> so <em><strong>bdmilterd</strong></em> which will be running as the <em><strong>axigen</strong></em> user will be able to create the milter intercommunication socket:<br />
<blockquote>
<pre># chmod 731 /var/run/BitDefender</pre>
</blockquote>
</li>
<li><em><strong>bdmilterd</strong></em> needs to run as the <em><strong>axigen</strong></em> user, and the easiest way to achieve this is by setting the <em><strong>setuid</strong></em> flag for <em><strong>bdmilterd</strong></em> and changing it&#8217;s owner to the <em><strong>axigen</strong></em> user:<br />
<blockquote>
<pre># chown axigen:bitdefender bdmilterd
# chmod u+s bdmilterd</pre>
</blockquote>
</li>
</ol>
<p style="text-align: justify;">The next step is configuring Axigen with a milter filter, so it will know how to talk to BitDefender, and instructing Axigen to send all mails to be scanned by BitDefender. This can be done as follows, from Axigen&#8217;s WebAdmin interface in the <em><strong>Security &amp; Filtering -&gt; Acceptance &amp; Routing -&gt; Advanced Settings </strong></em>context:</p>
<ol style="text-align: justify; padding-left: 65px;">
<li>Add a new <em><strong>Acceptance/Routing</strong></em> rule:
<ol style="text-align: justify; list-style: lower-alpha;">
<li>Set the name of the rule to <em><strong>BitDefender_Milter</strong></em></li>
<li>Unless otherwise required, leave the <em><strong>Conditions</strong></em> section unmodified as the default policies will apply to all SMTP connections.</li>
<li>From the <em><strong>Actions</strong></em> section, making use of the drop-down box select <em><strong>Filters-&gt; Add Filter</strong></em> and select the <strong>+Add condition</strong> button</li>
<li>In the <em><strong>Add milter filter</strong></em> box set the <em><strong>Name</strong></em> field to <em><strong>BitDefender</strong></em> and the <em><strong>Address</strong></em> one to <em><strong>local:///var/run/BitDefender/bdmilterd.sock</strong></em></li>
<li>Save configuration</li>
</ol>
</li>
<li>Activate the filter by creating a second <em><strong>Acceptance/Routing</strong></em> policy that will ensure the first filter execution:
<ol style="text-align: justify; list-style: lower-alpha;">
<li>Set the name of the new rule to <em><strong>BitDefender_Execute</strong></em></li>
<li>Leave the <em><strong>Conditions</strong></em> section unmodified</li>
<li>From the <em><strong>Actions</strong></em> section, making use of the drop-down box select <em><strong>Filters-&gt; Execute Filters </strong></em>and select the <em><strong>+Add condition</strong></em> button</li>
<li>Set the <em><strong>Execute filters Name pattern</strong></em> to <em><strong>BitDefender</strong></em></li>
<li>Save configuration</li>
</ol>
</li>
</ol>
<p style="text-align: justify;">And now the final touch, restart them all:</p>
<blockquote style="text-align: justify;">
<pre># ./bd restart</pre>
<pre># /etc/init.d/axigen restart</pre>
</blockquote>
<p style="text-align: justify;">Axigen doesn&#8217;t send any kind of connection information to BitDefender, like the IP address of the client sending the mail, therefore BitDefender&#8217;s RBL filter won&#8217;t be able to process mails properly. You&#8217;ll need to disable the filter:</p>
<blockquote style="text-align: justify;">
<pre># ./bdsafe group configure default antispam userblfilter N</pre>
<pre># ./bdsafe reload</pre>
</blockquote>
<p>You&#8217;ll have to add the RBL servers in Axigen&#8217;s configuration from the <strong><em>Security &amp; Filtering -&gt; Additional AntiSpam Methods -&gt; DNSBL (DNS BlackList)</em></strong> context.</p>
<p style="text-align: justify;">If the setup works correctly you&#8217;ll find the <em><strong>X-BitDefender-Scanner </strong></em>header in the headers of all delivered mails, similar to this:</p>
<blockquote style="text-align: justify;">
<pre>[...]</pre>
<pre>X-BitDefender-Scanner: Clean, Agent: BitDefender Milter 3.0.2 on</pre>
<pre>my.axigen.server, sigver: 7.23354</pre>
<pre>[..]</pre>
</blockquote>
<p><br class="omg" /></p>
<p style="text-align: justify;">Th-That&#8217;s all folks, you can now enjoy the two products, <strong>BitDefender</strong> and <strong>Axigen</strong>, happily ever after working together, fighting against the bad guys <img src='http://unices.bitdefender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://unices.bitdefender.com/2009/01/27/bitdefender-axigen-milter-love/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BitDefender Management Server</title>
		<link>http://unices.bitdefender.com/2008/12/24/bitdefender-management-server/</link>
		<comments>http://unices.bitdefender.com/2008/12/24/bitdefender-management-server/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 23:58:29 +0000</pubDate>
		<dc:creator>The BitDefender Team</dc:creator>
				<category><![CDATA[Quick tutorials]]></category>

		<guid isPermaLink="false">http://unices.bitdefender.com/?p=235</guid>
		<description><![CDATA[Starting with version 3.0, all BitDefender Security for Mail Servers and BitDefender Security for Samba setups can be managed from a single station using the BitDefender Management Server (BDMS). Being the first time our Linux and FreeBSD server products incorporate this technology, there is a certain degree of configurability available. For example, creating or deleting [...]]]></description>
			<content:encoded><![CDATA[<p>Starting with version 3.0, all <a title="BitDefender Security for Mail Servers" href="http://www.bitdefender.com/PRODUCT-32-en--BitDefender-Security-for-Mail-Servers.html" target="_blank">BitDefender Security for Mail Servers</a> and <a title="BitDefender Security for Samba" href="http://www.bitdefender.com/PRODUCT-11-en--BitDefender-Security-for-Samba.html" target="_blank">BitDefender Security for Samba</a> setups can be managed from a single station using the <a title="BitDefender Client Security and Management Server" href="http://www.bitdefender.com/PRODUCT-51-en--BitDefender-Client-Security.html" target="_blank">BitDefender Management Server</a> (<em>BDMS</em>). Being the first time our Linux and FreeBSD server products incorporate this technology, there is a certain degree of configurability available. For example, creating or deleting groups is not yet supported, while advanced group configuration is.</p>
<p><span id="more-235"></span></p>

<a href='http://unices.bitdefender.com/2008/12/24/bitdefender-management-server/bdms0/' title='bdms0'><img width="150" height="150" src="http://unices.bitdefender.com/wp-content/uploads/2008/12/bdms0-150x150.png" class="attachment-thumbnail" alt="" title="bdms0" /></a>
<a href='http://unices.bitdefender.com/2008/12/24/bitdefender-management-server/bdms1/' title='bdms1'><img width="150" height="150" src="http://unices.bitdefender.com/wp-content/uploads/2008/12/bdms1-150x150.png" class="attachment-thumbnail" alt="" title="bdms1" /></a>
<a href='http://unices.bitdefender.com/2008/12/24/bitdefender-management-server/bdms2/' title='bdms2'><img width="150" height="150" src="http://unices.bitdefender.com/wp-content/uploads/2008/12/bdms2-150x150.png" class="attachment-thumbnail" alt="" title="bdms2" /></a>
<a href='http://unices.bitdefender.com/2008/12/24/bitdefender-management-server/bdms3/' title='bdms3'><img width="150" height="150" src="http://unices.bitdefender.com/wp-content/uploads/2008/12/bdms3-150x150.png" class="attachment-thumbnail" alt="" title="bdms3" /></a>
<a href='http://unices.bitdefender.com/2008/12/24/bitdefender-management-server/bdms4/' title='bdms4'><img width="150" height="150" src="http://unices.bitdefender.com/wp-content/uploads/2008/12/bdms4-150x150.png" class="attachment-thumbnail" alt="" title="bdms4" /></a>
<a href='http://unices.bitdefender.com/2008/12/24/bitdefender-management-server/bdms5/' title='bdms5'><img width="150" height="150" src="http://unices.bitdefender.com/wp-content/uploads/2008/12/bdms5-150x150.png" class="attachment-thumbnail" alt="" title="bdms5" /></a>

<p>The rest of this article focuses on explaining how to setup a BitDefender Security product to work with our Management Server and it assumes you have already installed BDMS on a Windows computer found in your local network.</p>
<p>1. Install the <a title="Bitdefender Security for Unix Servers Server addon" href="http://download.bitdefender.com/SMB/Workstation_Security_and_Management/BitDefender_Client_Security/Windows/Current/EN/Version_3.0/server_addon/" target="_blank">BitDefender Management Server AddOn for Linux</a> products, on the computer running <em>BDMS</em>.</p>
<p><strong>NOTE</strong>: This addon can not be used together with a <a title="BitDefender Security for Mail Servers" href="http://www.bitdefender.com/PRODUCT-32-en--BitDefender-Security-for-Mail-Servers.html" target="_blank">BitDefender Security for Windows Mail Servers</a> or <a title="BitDefender Security for File Servers" href="http://www.bitdefender.com/PRODUCT-33-en--BitDefender-Security-for-File-Servers.html" target="_blank">BitDefender Security for File Servers</a>. It will install, but the managed products will not be properly registered.</p>
<p>2. Install <em>BitDefender Security for Mail Servers</em> or <em>BitDefender Security for Samba</em>. Please check with the <a title="BitDefender Security for Mail Servers requirements" href="http://www.bitdefender.com/PRODUCT-32-en--BitDefender-Security-for-Mail-Servers.html#requirements" target="_blank">website</a> for the list of supported distributions.</p>
<p>The install procedure is quite simple. Example:</p>
<blockquote>
<pre># sh <a title="BitDefender Security for Mail Servers" href="http://download.bitdefender.com/SMB/Mail_Server_Security/BitDefender_Security_for_Mail_Servers/Unix/Current/EN/Version_3.0/Linux/BitDefender_Security_for_Mail_Servers_v3_linuxgcc3x_i586.rpm.run" target="_blank">BitDefender-Security-Mail-3.0.2-linuxgcc3x-i586.rpm.run</a></pre>
</blockquote>
<p>and follow the instructions displayed on the screen. At some point, the installer will ask if you want to enable the <em>Enterprise Management</em> integration. Type &#8216;Y&#8217; followed by ENTER. Then you will be asked the name of the computer on which BDMS is installed. Type the name and then hit ENTER again. This is all the installer needed to know about your <em>Management Server</em> and it will now proceed normally with questions about RBL, MTA etc.</p>
<p>If you already have a server installation and wish to enable the integration, then continue reading the rest of the steps, otherwise you can jump past them.</p>
<p>3. Specify the <em>host</em> of the<em> Management Server</em>:</p>
<blockquote>
<pre># cd ~bitdefender/bin
# ./bdsafe bdem host &lt;host[:port]&gt;</pre>
</blockquote>
<p>4. Enable the integration</p>
<blockquote>
<pre># cd ~bitdefender/bin
# ./bdsafe bdem enable Y</pre>
</blockquote>
<p>5. Restart the product</p>
<blockquote>
<pre># cd ~bitdefender/bin
# ./bd restart</pre>
</blockquote>
<p>From this moment, you should be able to see in the <em>BitDefender Management Server Console</em> the installed Linux product(s). You can disable the management integration at any time, using the following commands:</p>
<blockquote>
<pre># cd ~bitdefender/bin
# ./bdsafe bdem enable N
# ./bd restart</pre>
</blockquote>
<p><strong>NOTE</strong>: The communication between the <em>BitDefender Management Server</em> and the Linux product(s) takes place once every 5 minutes. As a result, the policies (even the registration information) will need some time to propagate.</p>
<p>Before we end, we also made a little video (<a title="Installing BitDefender Security for Mail Servers and enabling the Management Server integration" href="http://unices.bitdefender.com/wp-content/uploads/2008/12/bdms.ogv" target="_blank">ogv</a>, <a title="Installing BitDefender Security for Mail Servers and enabling the Management Server integration" href="http://unices.bitdefender.com/wp-content/uploads/2008/12/bdms.mp4" target="_blank">mp4</a>). Enjoy! <img src='http://unices.bitdefender.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://unices.bitdefender.com/2008/12/24/bitdefender-management-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mirroring the BitDefender update server</title>
		<link>http://unices.bitdefender.com/2008/11/03/mirroring-the-bitdefender-update-server/</link>
		<comments>http://unices.bitdefender.com/2008/11/03/mirroring-the-bitdefender-update-server/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 12:33:41 +0000</pubDate>
		<dc:creator>The BitDefender Team</dc:creator>
				<category><![CDATA[Quick tutorials]]></category>

		<guid isPermaLink="false">http://unices.bitdefender.com/?p=129</guid>
		<description><![CDATA[The product updates are done by downloading the new files from some update locations found on the update server (default: upgrade.bitdefender.com), to some local paths where the product can find and use them.
The update locations are version and product specific. For example, BitDefender-common-3.0.2-1 (part of both BitDefender Security for Mail Servers and BitDefender Security for [...]]]></description>
			<content:encoded><![CDATA[<p>The product updates are done by downloading the new files from some update locations found on the update server (default: upgrade.bitdefender.com), to some local paths where the product can find and use them.</p>
<p>The update locations are version and product specific. For example, BitDefender-common-3.0.2-1 (part of both <a title="BitDefender Security for Mail Servers" href="http://www.bitdefender.com/PRODUCT-32-en--BitDefender-Security-for-Mail-Servers.html" target="_blank">BitDefender Security for Mail Servers</a> and <a title="BitDefender Security for Samba" href="http://www.bitdefender.com/PRODUCT-11-en--BitDefender-Security-for-Samba.html" target="_blank">BitDefender Security for Samba</a> version 3.0.x) uses the following update locations: <em>linux-gcc3x-i586-common-302</em> and <em>update_is_90</em>. For the exact values, see the output of the command:</p>
<blockquote>
<pre># bdsafe live</pre>
</blockquote>
<p><span id="more-129"></span>To mirror the necessary update locations, you should invoke the <a title="BitDefender Mirroring Script" href="http://unices.bitdefender.com/wp-content/uploads/2008/11/bdmirror.sh">mirror</a> script with the update locations names as parameters, but first, edit the script by modifying the value of OUTPUT_DIR to the location where you want the update directories to be created. The mirroring command is:</p>
<blockquote>
<pre># sh bdmirror.sh linux-gcc3x-i586-common-302 update_is_90</pre>
</blockquote>
<p>The script will create the directories <em>linux-gcc3x-i586-common-302/</em> and <em>update_is_90/</em> under $OUTPUT_DIR, containing all files that are needed for securely updating BitDefender-common-3.0.2-1. The task could (and should) be ran periodically for all the product&#8217;s update locations.</p>
<p>Next, you need to HTTP-publish the mirrored folders under the root directory of your site.</p>
<p>Finally, you need to tell the Live! Update daemon to use this update server:</p>
<blockquote>
<pre># bdsafe live updateservers add [some_name] [mirror_host_name]</pre>
</blockquote>
<p>The command will add a second update server after the one listed under the name <em>Default</em>. The added server will be used as a backup. See the <em>bdsafe</em> manual page for more details. Another option is to replace the default server:</p>
<blockquote>
<pre># bdsafe live updateservers host Default [mirror_host_name]</pre>
</blockquote>
<p>There is also the possibility to redirect the <em>upgrade.bitdefender.com</em> queries to the mirror.</p>
]]></content:encoded>
			<wfw:commentRss>http://unices.bitdefender.com/2008/11/03/mirroring-the-bitdefender-update-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Postfix and BitDefender for Milter</title>
		<link>http://unices.bitdefender.com/2008/10/08/postfix-and-bitdefender-for-milter/</link>
		<comments>http://unices.bitdefender.com/2008/10/08/postfix-and-bitdefender-for-milter/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 12:51:32 +0000</pubDate>
		<dc:creator>The BitDefender Team</dc:creator>
				<category><![CDATA[Quick tutorials]]></category>

		<guid isPermaLink="false">http://unices.bitdefender.com/?p=87</guid>
		<description><![CDATA[If you wish to use the BitDefender Security Milter integration with your Postfix server, then follow these steps (all commands should be executed from within the ~bitdefender/bin directory):
1) Check that you have the minimum required version (we recommend 2.4.x).

# postconf mail_version
mail_version = 2.4.5

Although the Postfix documentation stipulates that versions 2.3 or later are sufficient, our [...]]]></description>
			<content:encoded><![CDATA[<p>If you wish to use the BitDefender Security Milter integration with your Postfix server, then follow these steps (all commands should be executed from within the ~bitdefender/bin directory):</p>
<p>1) Check that you have the minimum required version (we recommend 2.4.x).</p>
<blockquote>
<pre># postconf mail_version</pre>
<pre>mail_version = 2.4.5</pre>
</blockquote>
<p><span id="more-87"></span>Although the Postfix documentation stipulates that versions 2.3 or later are sufficient, our tests revealed that the setup doesn&#8217;t work for 2.3.x versions and that messages similar to the following appear in the postfix log:</p>
<blockquote>
<pre>warning: milter unix:/var/spool/postfix/BitDefender/bdmilterd.sock:
can't read SMFIC_OPTNEG reply packet header: Success
warning: milter unix:/var/spool/postfix/BitDefender/bdmilterd.sock:
read error in initial handshake
NOQUEUE: milter-reject: CONNECT from localhost[127.0.0.1]: 451 4.7.1
Service unavailable - try again later; proto=SMTP
NOQUEUE: milter-reject: MAIL from localhost[127.0.0.1]: 451 4.7.1
Service unavailable - try again later; proto=SMTP</pre>
</blockquote>
<p>See <a href="http://www.postfix.org/MILTER_README.html" target="_blank">this page</a> for more information regarding 2.3 vs. 2.4 version. Specifically, <em>&#8220;body replacement is not available in Postfix 2.3</em>&#8220;.</p>
<p>2) Add the <em>postfix</em> user to the LocalUsers of BitDefender and to the <em>bitdefender</em> group:</p>
<blockquote>
<pre># export POSTFIXUSER=`postconf -h mail_owner`
# ./bdsafe registry configure localusers add $POSTFIXUSER</pre>
</blockquote>
<p>2.a) <span style="text-decoration: underline;">Linux</span>: add the <em>postfix</em> user to the <em>bitdefender</em> group</p>
<blockquote>
<pre># usermod -G $(groups $POSTFIXUSER |
sed -e 'y/ /,/' -e 's;^.*:,;;'),bitdefender $POSTFIXUSER</pre>
</blockquote>
<p>2.b) <span style="text-decoration: underline;">FreeBSD</span>: add the <em>postfix</em> user to the <em>bitdefender</em> group</p>
<blockquote>
<pre># pw usermod $POSTFIXUSER -G $(groups $POSTFIXUSER | \
sed -e 'y/ /,/' -e 's;^.*:,;;'),bitdefender</pre>
</blockquote>
<p>3) Fix access rights on /var/run/BitDefender since <em>bdmilterd</em> will need to write its pid there when running as $POSTFIXUSER</p>
<blockquote>
<pre># chmod 731 /var/run/BitDefender</pre>
</blockquote>
<p>4) <em>bdmilterd</em> needs to be run as the $POSTFIXUSER; this can be done either by:</p>
<p>a) setting the <em>bdmilterd</em> setuid and making it owned by the $POSTFIXUSER – in this way the <em>bd</em> script will control the milter agent, too &#8211; easier, but possibly riskier, depending on your mail setup, or by</p>
<p>b) starting <em>bdmilterd</em> as the postfix user, manually or via a wrapper (<em>bdmilterd</em> should also be stopped manually or via a wrapper before a &#8220;<em>bd stop</em>&#8221; command)</p>
<p>4.a) use suid and enable the milter agent:</p>
<blockquote>
<pre># chown $POSTFIXUSER bdmilterd
# chmod u+s bdmilterd
# ./bdsafe agent enable milter</pre>
</blockquote>
<p>4.b) manually start/stop <em>bdmilterd</em> as $POSTFIXUSER after &#8220;<em>bd start</em>&#8221; / after &#8220;<em>bd stop</em>&#8220;. After <em>bd start</em> the following should be run</p>
<blockquote>
<pre># ./bdsu postfix ./bdmilterd -s</pre>
</blockquote>
<p>and, respectively, before <em>bd stop</em>:</p>
<blockquote>
<pre># ./bdmilterd -k</pre>
</blockquote>
<p>5) Depending on your distribution, your Postfix MTA might start in a chroot. Debian and Debian-based distributions start in a chroot (var/spool/postfix), while RedHat based distributions don&#8217;t. Because of this, we have to make sure the socket used for Postfix &lt;-&gt; bdmilterd communication is visible in that chroot. We have seen that the chroot is usually placed in the <em>queue_directory</em>. The following commands should make sure that happens no matter if your setup uses chroot or not when starting the MTA. Please adapt to your needs.</p>
<p>5.1) find out the queue_directory and set things up for the socket</p>
<blockquote>
<pre># export POSTFIXCHROOT=`postconf -h queue_directory`
# mkdir -p $POSTFIXCHROOT/BitDefender $POSTFIXCHROOT/$POSTFIXCHROOT
# chown bitdefender:bitdefender $POSTFIXCHROOT/BitDefender
# chmod 731 $POSTFIXCHROOT/BitDefender</pre>
</blockquote>
<p>5.2) create a relative symlink to the $POSTFIXCHROOT/BitDefender directory in the $POSTFIXCHROOT/$POSTFIXCHROOT directory.</p>
<blockquote>
<pre># ln -s `echo $POSTFIXCHROOT | sed 's#[^/]+#..#g' | \
sed 's#^/##'`/BitDefender $POSTFIXCHROOT/$POSTFIXCHROOT</pre>
</blockquote>
<p>Example: for $POSTFIXCHROOT=/var/spool/postfix, the command above should create the /var/spool/postfix/var/spool/postfix/BitDefender symlink which should point to ../../../BitDefender, thus pointing to /var/spool/postfix/BitDefender. Please make sure this link is created correctly on systems using chroots to run the MTA.</p>
<p>6) Configure the location of the <em>bdmilterd</em> socket file:</p>
<blockquote>
<pre># ./bdsafe agent configure milter sockpath "$POSTFIXCHROOT/BitDefender/"</pre>
</blockquote>
<p>7) Configure Postfix to know the location of the <em>bdmilterd</em> socket (usually $POSTFIXCHROOT is /var/spool/postfix; adapt to your case). Append these lines to main.cf:</p>
<blockquote>
<pre>smtpd_milters=unix:/var/spool/postfix/BitDefender/bdmilterd.sock
milter_protocol = 2
milter_default_action = tempfail
milter_connect_timeout = 30s
milter_command_timeout = 30s
milter_content_timeout = 30s</pre>
</blockquote>
<p><strong>Note:</strong> all options other than <em>smtpd_milters</em> can be omitted entirely. If <em>milter_protocol</em> is present, it must be set to 2.</p>
<p>8 ) restart Postfix or reload its configuration:</p>
<blockquote>
<pre># postfix reload</pre>
</blockquote>
<p>9 ) Make sure BitDefender is (re)started</p>
<p>10 ) If the setup works correctly the <em>Received:</em> and <em>X-BitDefender-Scanner:</em> headers of a delivered mail should be of a form similar to this:</p>
<blockquote>
<pre>[...]
Received: from foo.example.com (foo.example.com [1.2.3.4])
by myexampleserver.com (Postfix) with ESMTP id 123456789AB
[...]
X-BitDefender-Scanner: Clean, Agent: BitDefender Milter 3.0.2 on
myexampleserver, sigver: 7.15108
[..]</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://unices.bitdefender.com/2008/10/08/postfix-and-bitdefender-for-milter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Postfix and BitDefender Scanner</title>
		<link>http://unices.bitdefender.com/2008/10/01/postfix-and-bitdefender-scanner/</link>
		<comments>http://unices.bitdefender.com/2008/10/01/postfix-and-bitdefender-scanner/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 15:41:57 +0000</pubDate>
		<dc:creator>The BitDefender Team</dc:creator>
				<category><![CDATA[Quick tutorials]]></category>

		<guid isPermaLink="false">http://unices.bitdefender.com/?p=53</guid>
		<description><![CDATA[In this post we will describe to you how to scan and clean your e-mail traffic of malware, using Postfix and BitDefender Scanner. This is not a very fast solution and it will scan only the incoming traffic, because the procmail filter will send each and every e-mail to BitDefender Scanner. If speed is an [...]]]></description>
			<content:encoded><![CDATA[<p>In this post we will describe to you how to scan and clean your e-mail traffic of malware, using Postfix and <a href="http://news.bitdefender.com/PRODUCT-80-en--BitDefender-Antivirus-Scanner-for-Unices.html" target="_blank">BitDefender Scanner</a>. This is not a very fast solution and it will scan only the incoming traffic, because the procmail filter will send each and every e-mail to BitDefender Scanner. If speed is an issue, we recommend that you use <a title="BitDefender Security for Mail Servers" href="http://www.bitdefender.com/PRODUCT-32-en--BitDefender-Security-for-Mail-Servers.html" target="_blank">BitDefender Security for Mail Servers</a> and integrate it with Postfix or other supported MTA.</p>
<p><span id="more-53"></span>Bitdefender Scanner is very easy to install. The package comes as .rpm, .deb and .tar. For example, type in your console:</p>
<blockquote>
<pre>$ sh -x BitDefender-scanner-7.5-4.linux-gcc3x.i586.deb.run</pre>
</blockquote>
<p>and follow the install procedure.</p>
<p>Once you have completed the installation, you should update the antimalware engines, as follows:</p>
<blockquote>
<pre>$ cd /opt/BitDefender-scanner/bin
$ ./bdscan --update</pre>
</blockquote>
<p>or just:</p>
<blockquote>
<pre>$ bdscan --update</pre>
</blockquote>
<p>If your LDA in Postfix is <em>procmail</em>, then you don&#8217;t need to make any changes in your <em>main.cf</em> file. Otherwise add this line in <em>/etc/postfix/main.cf</em>:</p>
<blockquote>
<pre>mailbox_command = /usr/bin/procmail -a "$EXTENSION"</pre>
</blockquote>
<p>Now, restart the Postfix server.</p>
<p>If your Postfix server is using another LDA, but it is using <em>.forward</em> files, a solution per user, not system wide, is to add a <em>.forward</em> file in your home directory and then put the following line in it:</p>
<blockquote>
<pre>|/usr/bin/procmail</pre>
</blockquote>
<p>Make sure you have the <em>procmail</em> package installed and that you use the actual path to your procmail binary, which is system specific.</p>
<p>In your home directory, edit the <em>.procmailrc</em> file. If it is not there, then create it as follows:</p>
<blockquote>
<pre>$ echo &gt;$HOME/.procmailrc</pre>
</blockquote>
<p>You can enable the pre-delivery scanner, system wide, by editing <em>/etc/.procmailrc</em> as root.</p>
<p>Add the following lines in <em>.procmailrc</em>:</p>
<blockquote>
<pre>PATH=/usr/local/bin:/usr/bin:/bin
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR
LOGFILE=$MAILDIR/procmail.log
FILE=`mktemp`
:0 fw
|cat &gt; $FILE; if bdscan $FILE &amp;&gt;/dev/null; then formail -a "X-BDScan:
clean" &lt;$FILE; else formail -a "X-BDScan: infected" &lt;$FILE; fi; rm -f $FILE</pre>
</blockquote>
<p>You must modify the <em>MAILDIR</em> variable and <em>bdscan</em> must be in your path.</p>
<p>Procmail will add to your email, a header that contains:</p>
<blockquote>
<pre>X-BDScan: clean</pre>
</blockquote>
<p>or</p>
<blockquote>
<pre>X-BDScan: infected</pre>
</blockquote>
<p>depending on the <em>bdscan</em> result.</p>
<p>If you want the infected email to be deleted, then add the following lines to <em>.procmailrc</em>:</p>
<blockquote>
<pre>:0
* ^X-BDScan: infected
/dev/null</pre>
</blockquote>
<p>If you want to move the infected files to a local directory, add:</p>
<blockquote>
<pre>:0
* ^X-BDScan: infected
Maildir/infected</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://unices.bitdefender.com/2008/10/01/postfix-and-bitdefender-scanner/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
