<?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>Linux Mail Server Setup and Howto Guide &#187; Anti-spam/Anti-virus</title>
	<atom:link href="http://www.linuxmail.info/category/anti-spam-anti-virus/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Sat, 13 Feb 2010 23:39:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Barracuda Anti Spam Firewall</title>
		<link>http://www.linuxmail.info/barracuda-anti-spam-firewall/</link>
		<comments>http://www.linuxmail.info/barracuda-anti-spam-firewall/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 10:48:32 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/barracuda-anti-spam-firewall/</guid>
		<description><![CDATA[Barracuda Spam Firewall is a Linux based network appliance that is fairly priced and works very well in fighting spam.]]></description>
			<content:encoded><![CDATA[<p>The <strong>Barracuda Spam Firewall</strong> is a Linux based anti spam network appliance dedicated to fighting spam and viruses. Unlike <a href="/postgrey-postfix-anti-spam/">Postgrey</a> which greatly reduces spam but at a cost of delays to your mail, the Barracuda Spam Firewall performs a battery of test to eliminate spam without any costly delay.</p>
<span id="more-57"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>Spam Tests</h2>
<ul class="spaced">
<li><strong>Image Analysis</strong><br />Uses a Multi-Pass Optical Character Recognition engine to detect spam text embedded within image files.</li>
<li><strong>IP Reputation Analysis</strong><br />Checks the reputation of the sender&#8217;s IP address. The reputation system is fully automated, similar to the anti-fraud mechanisms used for credit cards.</li>
<li><strong>Bayesian algorithms</strong><br />Bayesian algorithm is a probabilistic classifier, used to calculate the probability of a message being a spam. It is accurate, effective and adaptable in doing its job.</li>
<li><strong>Content-based filtering</strong><br />Set custom content filters based on the subject, message headers, message bodies and attachment file type.</li>
<li><strong>Intent Analysis</strong><br />What&#8217;s the mail all about? If it&#8217;s trying to sell something, it&#8217;s probably a spam.</li>
<li><strong>Keyword blocking</strong><br />Mail contains &#8220;buy viagra&#8221;, definitely spam.</li>
<li><strong>Rate control</strong><br />Protects against spam bots or mail bomb type attacks by throttling incoming connections once a certain threshold is exceeded.</li>
<li><strong>Real-time Block List and DNS Blacklist support</strong><br />Take advantage of external block list sites to further reject unwanted spam.</li>
<li><strong>Rule-based scoring algorithms</strong><br />Identifies spam using a wide range of heuristic tests on mail headers and body text. Uses the open source software SpamAssassin to perform this.</li>
<li><strong>Sender Policy Framework</strong><br />A way to validate the identity of the sender if it is genuine.</li>
</ul>
<p>Aside from spam filtering, the Barracuda Spam Firewall will also give you several other benefits like</p>
<h2>For the company</h2>
<ul>
<li>Virus filtering</li>
<li>Anti-spoofing</li>
<li>Anti-phishing</li>
<li>Anti-spyware</li>
<li>Denial of service protection</li>
<li>Directory harvest protection</li>
<li>Outbound email filtering</li>
<li>Compliance and corporate policy monitoring</li>
</ul>
<h2>For the end user</h2>
<ul>
<li>Web-based interface</li>
<li>User-based filtering</li>
<li>Individual spam scoring</li>
<li>Personal allow and block lists</li>
<li>End user quarantine</li>
<li>Digest emails</li>
<li>Outlook/Lotus Notes integration</li>
<li>Bayesian analysis</li>
</ul>
<h2>For the administrator</h2>
<ul>
<li>Web-based interface</li>
<li>User account administration</li>
<li>Reports, graphs and statistics</li>
<li>LDAP interface</li>
<li>Multiple domain support</li>
<li>Secure remote administration</li>
<li>Journaling</li>
</ul>
<p>You get all the above benefits at a fair price with no per-user fees. Barracuda Networks, the maker of the network appliance was able to achieve this using open source softwares (Linux, SpamAssassin and ClamAV), low cost hardware (AMD processors) and a build-to-order system similar to Dell Computer.</p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/barracuda-anti-spam-firewall/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Postgrey, Anti-Spam for Postfix</title>
		<link>http://www.linuxmail.info/postgrey-postfix-anti-spam/</link>
		<comments>http://www.linuxmail.info/postgrey-postfix-anti-spam/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 07:52:12 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/postgrey-postfix-anti-spam/</guid>
		<description><![CDATA[Step by step guide for adding greylisting anti-spam technique into a Postfix mail server using Postgrey.]]></description>
			<content:encoded><![CDATA[<p>Postgrey is a simple and powerful anti-spam tool for Postfix. It works by using a technique called <a href="http://en.wikipedia.org/wiki/Greylisting">Greylisting</a>. Adding greylisting in Postfix will give your Postfix mail server a simple and effective first line of defense against spam, at a cost of a few minor delays for newly identified senders.</p>
<span id="more-56"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<p>To install Postgrey, we are going to use the precompiled binaries from <a href="http://dag.wieers.com/rpm">Dag Wieers RPM packages for Red Hat, RHEL, CentOS and Fedora</a>.</p>
<h2>Adding RPMForge to Yum</h2>
<div class="clearfix steps"><a href="/images/centos-5/firefox-rpmforge.png"><img class="preview" alt="Firefox RPMForge" src="/images/centos-5/t-firefox-rpmforge.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Launch Firefox and go to <a href="http://dag.wieers.com/rpm/FAQ.php#B2">http://dag.wieers.com/rpm/FAQ.php#B2</a>. Click on the package appropriate for your version of Red Hat Enterprise Linux or CentOS.</div>
<div class="clearfix steps"><a href="/images/centos-5/firefox-rpmforge-install.png"><img class="preview" alt="Firefox RPMForge Install" src="/images/centos-5/t-firefox-rpmforge-install.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Choose <em>Open with Software Installer (default)</em> and click <em>Ok</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/installing-rpmforge.png"><img class="preview" alt="Installing RPMForge" src="/images/centos-5/t-installing-rpmforge.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. The <strong>Installing packages</strong> window will appear. Click <em>Apply</em> to proceed.</div>
<div class="clearfix steps"><a href="/images/centos-5/install-rpmforge-success.png"><img class="preview" alt="Installing RPMForge" src="/images/centos-5/t-install-rpmforge-success.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Finally click <em>Ok</em>. You now have access to an extensive library of precompiled binaries.</div>
<h2>Installing Postgrey Greylisting Policy Server</h2>
<p>If you are using Red Hat Enterprise Linux 4 or CentOS 4, you have an older version of the Package Manager tool. Instead of using the GUI tool below, you can use the command <tt>yum install postgrey</tt> in a Terminal window to install Postgrey.</p>
<div class="clearfix steps"><a href="/images/centos-5/package-manager.png"><img class="preview" alt="Package Manager" src="/images/centos-5/t-package-manager.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em> then click <em>Add/Remove Software</em>. This will launch the <strong>Package Manager</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/package-manager-postgrey.png"><img class="preview" alt="Package Manager Search" src="/images/centos-5/t-package-manager-postgrey.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click the <em>Search</em> tab. Next type in <em>postgrey</em> and click the <em>Search</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/package-manager-postgrey2.png"><img class="preview" alt="Package Manager Search" src="/images/centos-5/t-package-manager-postgrey2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Select the latest version of postgrey then click <em>Apply</em>. Next click on <em>Continue</em> until it proceeds with the installation.</div>
<div class="clearfix steps"><a href="/images/centos-5/package-manager-postgreyf.png"><img class="preview" alt="Package Manager" src="/images/centos-5/t-package-manager-postgreyf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. After installation, click <em>Ok</em>. You now have successfully installed Postgrey Postfix Greylisting Policy Server.</div>
<h2>Configuring Postfix</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-postgrey.png"><img class="preview" alt="Package Manager" src="/images/centos-5/t-edit-main-cf-postgrey.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">1. Edit <em>/etc/postfix/main.cf</em> and add <em>reject_unlisted_recipient</em> and <em>check_policy_service unix:postgrey/socket</em> to the value of <em>smtpd_recipient_restrictions</em>.<br /><br />check_policy_service unix:postgrey/socket performs the greylisting while adding reject_unlisted_recipient before it enables Postfix to immediately reject unknown recipients instead of having clients go through the greylisting process before being informed that the recipient does not exist.</div></div>
<div class="clearfix steps"><a href="/images/centos-5/service-config-2.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Start Postgrey and restart Postfix or MailScanner (if you have installed MailScanner). <a href="/how-to-start-stop-services-centos-5/">Learn how to start and restart services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. <a href="/postfix-smtp-server-howto-centos-5/#test-postfix">Test Postfix</a>. Do not use localhost to connect to Postfix since localhost will bypass Postgrey. After typing in the <tt>rcpt to</tt> command, it should reply with <tt>Recipient address rejected: Greylisted</tt> and it should work if you try it again after at least five minutes.</div>
<h2>Configuring the Whitelist in Postgrey</h2>
<p>Whitelist enables you to disable greylisting for certain email accounts or client ip addresses or hostnames.</p>
<div class="clearfix steps"><a href="/images/centos-5/postgrey-whitelist-recp.png"><img class="preview" alt="Postgrey" src="/images/centos-5/t-postgrey-whitelist-recp.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. To disable greylisting for certain email accounts, add their email address into the file <em>/etc/postfix/postgrey_whitelist_recipients</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/postgrey-whitelist-client.png"><img class="preview" alt="Postgrey" src="/images/centos-5/t-postgrey-whitelist-client.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. To disable greylisting for certain IP addresses or hostnames, add the IP address, hostname or regular expression to match hostnames into the file <em>/etc/postfix/postgrey_whitelist_clients.local</em>. Hostnames are identified by performing a reverse DNS on the client&#8217;s IP address. For sample entries, view the file <em>/etc/postfix/postgrey_whitelist_clients</em>.</div></div>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you liked the immense reduction in spam but cannot live with the delay, check out the <a href="/barracuda-anti-spam-firewall/">Barracuda Anti Spam Firewall</a>. It will give you even better spam and virus control without any penalty in time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postgrey-postfix-anti-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailScanner now directly supports Clam Antivirus (ClamAV)</title>
		<link>http://www.linuxmail.info/mailscanner-clamav-clamd-direct-support/</link>
		<comments>http://www.linuxmail.info/mailscanner-clamav-clamd-direct-support/#comments</comments>
		<pubDate>Sun, 15 Jul 2007 11:55:44 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>
		<category><![CDATA[MailScanner]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/mailscanner-clamav-clamd-direct-support/</guid>
		<description><![CDATA[MailScanner now talks directly to the Clam AntiVirus clamd daemon]]></description>
			<content:encoded><![CDATA[<p>Starting with version 4.61.7-2 of MailScanner, MailScanner can now talk directly to the Clam AntiVirus clamd daemon. Previously, an executable program called <em>clamscan</em>, specified by setting <tt>Virus Scanners = clamav</tt> in the MailScanner configuration file, was launched to perform virus scanning. This process required so much overhead to perform.</p>
<span id="more-47"></span>
<p>To minimize the resource requirements, a more efficient <a href="/perl-clamav-mailscanner-centos-4/">Perl ClamAV module</a>, specified by setting <tt>Virus Scanners = clamavmodule</tt> in the MailScanner configuration file and installing the necessary Perl modules, was developed.</p>
<p>But this new feature, activated by setting <tt>Virus Scanners = clamd</tt> in the MailScanner configuration file, bypasses the external program <em>clamscan</em> and <em>Perl ClamAV module</em> and communicates directly with the Clam AntiVirus daemon (clamd) giving a lighter resource usage and better performance.</p>
<p>The MailScanner and ClamAV integration guide has been updated to utilize this new feature.</p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/mailscanner-clamav-clamd-direct-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailScanner, Postfix, ClamAV and SpamAssassin Setup Howto for RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-5/</link>
		<comments>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-5/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 13:48:38 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>
		<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-5/</guid>
		<description><![CDATA[How to setup MailScanner, Postfix, ClamAV and SpamAssassin in Red Hat Enterprise Linux 5 or CentOS 5]]></description>
			<content:encoded><![CDATA[<p>This page will guide you in configuring MailScanner, ClamAV and SpamAssassin to work in Postfix. Before proceeding, please make sure that all of the above components are already installed.</p>
<span id="more-41"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<p>Here are the installation guides for the above components.</p>
<ul>
<li><a href="/postfix-smtp-server-howto-centos-5/">How to install Postfix SMTP Server</a></li>
<li><a href="/how-to-install-clam-antivirus-centos-5/">How to install Clam Anti-virus (ClamAV)</a></li>
<li><a href="/how-to-install-mailscanner-centos-5/">How to install MailScanner</a></li>
</ul>
<p>SpamAssassin is included in Red Hat Enterprise Linux 5 and CentOS 5 and it&#8217;s ready to go out of the box. Just add it using the <a href="/how-to-add-remove-applications-centos-5/">Package Manager</a> tool if you haven&#8217;t done so during installation.</p>
<h2>Configuring MailScanner</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-mailscanner-conf.png"><img class="preview" alt="MailScanner Config" src="/images/centos-5/t-edit-mailscanner-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/MailScanner/MailScanner.conf</em></div>
<div class="clearfix">Find the following keys and change the values as follows</div>
<pre class="steps">
%org-name% = <em>your organization name</em>
%org-long-name% = <em>your full organization name</em>
Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
Incoming Work Group = clamav
Incoming Work Permissions = 0640
MTA = postfix
Virus Scanners = clamd
Clamd Socket = /tmp/clamd.socket
Use SpamAssassin = yes
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
</pre>
<div class="clearfix steps"><a href="/images/centos-5/mailscanner-spool-dir.png"><img class="preview" alt="MailScanner Spool Directory" src="/images/centos-5/t-mailscanner-spool-dir.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click <em>Applications</em> and click <em>File Browser</em> to launch the <strong>File Browser</strong> window and go to the <em>/var/spool/MailScanner</em> directory.</div>
<div class="clearfix steps"><a href="/images/centos-5/mailscanner-spool-dir-2.png"><img class="preview" alt="MailScanner Spool Directory" src="/images/centos-5/t-mailscanner-spool-dir-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the <strong>File Browser</strong> window, click <em>File</em> and click <em>Create Folder</em>. Name the new folder <em>spamassassin</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/mailscanner-spool-dir-3.png"><img class="preview" alt="MailScanner Spool Directory" src="/images/centos-5/t-mailscanner-spool-dir-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Recreate the <em>incoming</em> folder to ensure the permission of the contents are set properly. Then right click on the folder <em>incoming</em> and click <em>Properties</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/mailscanner-folder-perm.png"><img class="preview" alt="MailScanner Directory Permission" src="/images/centos-5/t-mailscanner-folder-perm.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">5. In the <strong>Properties</strong> window, click the <em>Permissions</em> tab. In the Permissions page, set the <em>Owner</em> as <em>postfix</em> and its <em>Folder Access</em> as <em>Create and delete files</em>. Set the <em>Group</em> as <em>clamav</em> and its <em>Folder Access</em> as <em>Access files</em>. Finally, set the <em>Folder Access</em> of Others as <em>None</em>. Click <em>Close</em> when you are done. Repeat this for the <em>quarantine</em> and <em>spamassassin</em> folders.</div></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-ln-freshclam.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-ln-freshclam.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">6. From a terminal window, type in <pre class="steps">ln -s /usr/bin/freshclam /usr/local/bin/freshclam</pre> MailScanner will be looking for freshclam in the /usr/local/bin directory so we&#8217;ll create a symbolic link to it in that directory.</div></div>
<h2>Integrating MailScanner into Postfix</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-2.png"><img class="preview" alt="Postfix Configuration" src="/images/centos-5/t-edit-main-cf-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/postfix/main.cf</em> and remove the <em>#</em> in front of the line below <pre class="steps">header_checks = regexp:/etc/postfix/header_checks</pre></div>
<div class="clearfix steps"><a href="/images/centos-5/edit-header-checks.png"><img class="preview" alt="Header Checks" src="/images/centos-5/t-edit-header-checks.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/postfix/header_checks</em> and add the line below to the bottom of the file<div class="m"><pre class="steps">/^Received:/ HOLD</pre>This will now place all incoming mail into the holding area until released by MailScanner.</div></div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="CentOS 4 Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. MailScanner should now be the one to start the Postfix service. Stop the Postfix service and start the Clamd and MailScanner service in that order. <a href="/how-to-start-stop-services-centos-5/">Learn how to stop and start services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Test if Postfix is still working. See <a href="/postfix-smtp-server-howto-centos-5/#test-postfix">Test Postfix using Telnet.</a></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you encounter any problems, check the log file at <em>/var/log/maillog.</em></div>
<h2>Congratulations</h2>
<p>Congratulations, your mails are now checked for spam and viruses. Each mail you send or receive will now contain the lines below to indicate that MailScanner is doing its job.</p>
<pre class="steps">
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
</pre>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you would like to change the inline signature above or any MailScanner email templates, go to <em>/etc/MailScanner/reports/en</em> for the English templates.</div>
<div class="left">&laquo;&laquo; Previous: <a href="/how-to-install-clam-antivirus-centos-5/">How to Install ClamAV</a></div><div class="right">Next: <a href="/postfix-dovecot-ldap-centos-5/">How to Integrate Active Directory</a> &raquo;&raquo;</div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-5/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>Clam AntiVirus (ClamAV) Setup Howto for RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/how-to-install-clam-antivirus-centos-5/</link>
		<comments>http://www.linuxmail.info/how-to-install-clam-antivirus-centos-5/#comments</comments>
		<pubDate>Mon, 23 Apr 2007 14:50:58 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>
		<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/how-to-install-clam-antivirus-centos-5/</guid>
		<description><![CDATA[How to install Clam AntiVirus (ClamAV) in Red Hat Enterprise Linux 5 or CentOS 5]]></description>
			<content:encoded><![CDATA[<p>To install <strong>Clam AntiVirus (ClamAV)</strong>, we are going to use the precompiled binaries from the RPMforge repository. <a href="/add-rpmforge-centos-5/">Learn how to add the RPMforge repository.</a></p>
<span id="more-39"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>Installing Clam AntiVirus</h2>
<p>If you prefer not to use the GUI tool below, you can also install the Clam AntiVirus by typing in <tt>yum install clamd</tt> in a Terminal window.</p>
<div class="clearfix steps"><a href="/images/centos-5/package-manager.png"><img class="preview" alt="Package Manager" src="/images/centos-5/t-package-manager.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em> then click <em>Add/Remove Software</em>. This will launch the <strong>Package Manager</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/package-manager-clamd.png"><img class="preview" alt="Package Manager Search" src="/images/centos-5/t-package-manager-clamd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click the <em>Search</em> tab. Next type in <em>clamd</em> and click the <em>Search</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/package-manager-clamd-2.png"><img class="preview" alt="Package Manager Search" src="/images/centos-5/t-package-manager-clamd-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Select the latest version of clamd then click <em>Apply</em>. Next click on <em>Continue</em> until it proceeds with the installation.</div>
<div class="clearfix steps"><a href="/images/centos-5/package-manager-clamd-done.png"><img class="preview" alt="Package Manager" src="/images/centos-5/t-package-manager-clamd-done.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. After installation, click <em>Ok</em>. You now have successfully installed Clam Antivirus.</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="CentOS 5 Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Start the <em>clamd</em> service. <a href="/how-to-start-stop-services-centos-5/">Learn how to stop and start services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-4.png"><img class="preview" alt="CentOS 5 Terminal" src="/images/centos-5/t-terminal-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. To test ClamAV AntiVirus, type in the command <em>clamscan</em> in a terminal window.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-freshclam.png"><img class="preview" alt="CentOS 5 Terminal" src="/images/centos-5/t-terminal-freshclam.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. To update the virus database, type in the command <em>freshclam</em> in a terminal window.</div>
<div class="left">&laquo;&laquo; Previous: <a href="/how-to-install-mailscanner-centos-5/">How to Install MailScanner</a></div><div class="right">Next: <a href="/mailscanner-postfix-clamav-spamassassin-howto-centos-5/">Integrate MailScanner into Postfix</a> &raquo;&raquo;</div>
<div class="clear">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/how-to-install-clam-antivirus-centos-5/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Perl ClamAV Module in MailScanner</title>
		<link>http://www.linuxmail.info/perl-clamav-mailscanner-centos-4/</link>
		<comments>http://www.linuxmail.info/perl-clamav-mailscanner-centos-4/#comments</comments>
		<pubDate>Thu, 15 Mar 2007 03:40:11 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>
		<category><![CDATA[MailScanner]]></category>

		<guid isPermaLink="false">http://linux-mail.info/perl-clamav-mailscanner-centos-4/</guid>
		<description><![CDATA[How to setup Perl ClamAV module in MailScanner in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p>For more efficient virus scanning in MailScanner, we can use the Perl ClamAV Module. To do this, we need to install the required Perl modules. Here are the steps to do this.</p>
<div class="clearfix steps"><a href="/images/centos-4/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-4/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. In the <strong>Terminal</strong> window, type in the commands below.</div>
<pre class="clearfix steps">
perl -MCPAN -e shell
</pre>
<p>This will activate the interactive mode for locating, download and building perl modules from CPAN sites. CPAN stands for Comprehensive Perl Archive Network. CPAN sites contains a large collection of Perl softwares and documentations.</p>
<span id="more-19"></span>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If this is your first time to issue this command, you will be asked to set it up first. Don&#8217;t worry, all the setup options has usable default values except the geographic location option. Just hit the Enter key until you read the geographic location option and then select the location closest to you.</p>
<pre class="steps">
install Parse::RecDescent
install Inline
install Mail::ClamAV
</pre>
<div class="clearfix steps"><a href="/images/centos-4/edit-ms-conf2.png"><img class="preview" alt="MailScanner Config" src="/images/centos-4/t-edit-ms-conf2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/MailScanner/MailScanner.conf</em>. Find the key below and change it as follows<pre class="steps">Virus Scanners = clamavmodule</pre></div>
<div class="clearfix steps"><a href="/images/centos-4/service-config.png"><img class="preview" alt="CentOS 4 Service Configuration" src="/images/centos-4/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Restart the MailScanner service. <a href="/how-to-start-stop-services-centos-4/">Learn how to restart services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-4/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-4/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Test if Postfix is still working. See <a href="/postfix-smtp-server-howto-centos-4/#test-postfix">Test Postfix using Telnet.</a></div>
<div>&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/perl-clamav-mailscanner-centos-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailScanner, Postfix, ClamAV and SpamAssassin Setup Howto in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-4/</link>
		<comments>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-4/#comments</comments>
		<pubDate>Wed, 14 Mar 2007 14:12:15 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>
		<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>

		<guid isPermaLink="false">http://linux-mail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-4/</guid>
		<description><![CDATA[How to setup MailScanner, Postfix, ClamAV and SpamAssassin in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p>This article will guide you in configuring MailScanner, ClamAV and SpamAssassin to work in Postfix. Before proceeding, please make sure that all of the above components are already installed.</p>
<span id="more-18"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<p>Here are the installation guides for the above components.</p>
<ul>
<li><a href="/postfix-smtp-server-howto-centos-4/">How to install Postfix SMTP Server</a></li>
<li><a href="/how-to-install-clam-antivirus-centos-4/">How to install Clam Anti-virus (ClamAV)</a></li>
<li><a href="/how-to-install-mailscanner-centos-4/">How to install MailScanner</a></li>
</ul>
<p>SpamAssassin is included in CentOS 4 and ready to go out of the box. Just add it using the <a href="/how-to-add-remove-applications-centos-4/">Package Management</a> tool if you haven&#8217;t done so during CentOS installation. SpamAssassin is located in the <em>Mail Server</em> package.</p>
<h2>Configuring MailScanner</h2>
<div class="clearfix steps"><a href="/images/centos-4/edit-ms-conf.png"><img class="preview" alt="MailScanner Config" src="/images/centos-4/t-edit-ms-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/MailScanner/MailScanner.conf</em></div>
<div class="clearfix">Find the following keys and change the values as follows</div>
<pre class="steps">
%org-name% = <em>your organization name</em>
%org-long-name% = <em>your full organization name</em>
Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
MTA = postfix
Virus Scanners = clamd
Clamd Socket = /tmp/clamd.socket
Use SpamAssassin = yes
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
</pre>
<div class="clearfix steps"><a href="/images/centos-4/ms-spool-dir.png"><img class="preview" alt="MailScanner Spool Directory" src="/images/centos-4/t-ms-spool-dir.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click <em>Applications</em> and click <em>File Browser</em> to launch the <strong>File Browser</strong> window and go to the <em>/var/spool/MailScanner</em> directory.</div>
<div class="clearfix steps"><a href="/images/centos-4/ms-spool-dir2.png"><img class="preview" alt="MailScanner Spool Directory" src="/images/centos-4/t-ms-spool-dir2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the <strong>File Browser</strong> window, click <em>File</em> and click <em>Create Folder</em>. Name the new folder <em>spamassassin</em>.</div>
<div class="clearfix steps"><a href="/images/centos-4/ms-spool-dir3.png"><img class="preview" alt="MailScanner Spool Directory" src="/images/centos-4/t-ms-spool-dir3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Right click on the folder <em>incoming</em> and click <em>Properties</em>.</div>
<div class="clearfix steps"><a href="/images/centos-4/ms-folder-perm.png"><img class="preview" alt="MailScanner Directory Permission" src="/images/centos-4/t-ms-folder-perm.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. In the <strong>Properties</strong> window, click the <em>Permissions</em> tab. In the Permissions page, set the File owner as <em>postfix</em>, the File group as <em>postfix</em> and check only the Owner <em>Read</em>, <em>Write</em> and <em>Execute</em>. Click <em>Close</em> when you are done. Repeat this for the <em>quarantine</em> and <em>spamassassin</em> folders.</div>
<h2>Integrating MailScanner into Postfix</h2>
<div class="clearfix steps"><a href="/images/centos-4/edit-main-cf2.png"><img class="preview" alt="Postfix Configuration" src="/images/centos-4/t-edit-main-cf2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/postfix/main.cf</em> and remove the <em>#</em> in front of the line below <pre class="steps">header_checks = regexp:/etc/postfix/header_checks</pre></div>
<div class="clearfix steps"><a href="/images/centos-4/header-checks.png"><img class="preview" alt="Header Checks" src="/images/centos-4/t-header-checks.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/postfix/header_checks</em> and add the line below to the bottom of the file<div class="m"><pre class="steps">/^Received:/ HOLD</pre>This will now place all incoming mail into the holding area until released by MailScanner.</div></div>
<div class="clearfix steps"><a href="/images/centos-4/service-config-mailscan.png"><img class="preview" alt="CentOS 4 Service Configuration" src="/images/centos-4/t-service-config-mailscan.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. MailScanner should now be the one to start the Postfix service. Stop the Postfix service and start the MailScanner service in that order. <a href="/how-to-start-stop-services-centos-4/">Learn how to stop and start services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-4/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-4/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Test if Postfix is still working. See <a href="/postfix-smtp-server-howto-centos-4/#test-postfix">Test Postfix using Telnet.</a></div>
<h2>Congratulations</h2>
<p>Congratulations, your mails are now checked for spam and viruses. Each mail you send or receive will now contain the lines below to indicate that MailScanner is doing its job.</p>
<pre>
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
</pre>
<div class="left">&laquo;&laquo; Previous: <a href="/how-to-install-mailscanner-centos-4/">How to Install MailScanner</a></div><div class="right">Next: <a href="/active-directory-integration-samba-centos-4/">How to Integrate Active Directory</a> &raquo;&raquo;</div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Install Clam AntiVirus (ClamAV) in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/how-to-install-clam-antivirus-centos-4/</link>
		<comments>http://www.linuxmail.info/how-to-install-clam-antivirus-centos-4/#comments</comments>
		<pubDate>Wed, 14 Mar 2007 13:26:39 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>
		<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>

		<guid isPermaLink="false">http://linux-mail.info/how-to-install-clam-antivirus-centos-4/</guid>
		<description><![CDATA[How to install Clam AntiVirus (ClamAV) in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p>To install Clam AntiVirus (ClamAV), we are going to use the precompiled binaries from  <a href="http://dag.wieers.com/rpm">Dag Wieers RPM packages for Red Hat, RHEL, CentOS and Fedora</a>. To do this, we are going to configure Yum to look for the ClamAV packages in Dag&#8217;s repository.</p>
<span id="more-16"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>Adding Dag Wieers RPM Repository to Yum</h2>
<div class="clearfix steps"><a href="/images/centos-4/terminal.png"><img class="preview" alt="CentOS 4 Terminal" src="/images/centos-4/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em>, select <em>System Tools</em> and click <em>Terminal</em>. This will launch the <strong>Terminal</strong> window. Type in the command <em>cd /etc/yum.repos.d</em> and press Enter. This will bring us to the Yum repository configuration directory.</div>
<div class="clearfix steps"><a href="/images/centos-4/terminal2.png"><img class="preview" alt="CentOS 4 Terminal" src="/images/centos-4/t-terminal2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. From this directory download the Yum repository configuration file by typing in the command<br /><em>wget http://www.linux-mail.info/files/dag-clamav.repo</em> and press Enter. This is what the file <a href="/files/dag-clamav.repo">dag-clamav.repo</a> looks like.</div>
<h2>Installing Clam AntiVirus</h2>
<div class="clearfix steps"><a href="/images/centos-4/terminal3.png"><img class="preview" alt="CentOS 4 Terminal" src="/images/centos-4/t-terminal3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. To install ClamAV AntiVirus, type in the command<br /><em>yum install clamav clamav-devel clamd</em> and press Enter. When asked to confirm download, type in <em>y</em> and press Enter.</div>
<h2>Using Clam AntiVirus</h2>
<div class="clearfix steps"><a href="/images/centos-4/terminal4.png"><img class="preview" alt="CentOS 4 Terminal" src="/images/centos-4/t-terminal4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. To use ClamAV AntiVirus, type in the command <em>clamscan</em> and press Enter.</div>
<div class="clearfix steps"><a href="/images/centos-4/freshclam.png"><img class="preview" alt="CentOS 4 Terminal" src="/images/centos-4/t-freshclam.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. To update the virus database, type in the command <em>freshclam</em> and press Enter.</div>
<div class="left">&laquo;&laquo; Previous: <a href="/firewall-configuration-centos-4/">How to Configure the Firewall</a></div><div class="right">Next: <a href="/how-to-install-mailscanner-centos-4/">How to Install MailScanner</a> &raquo;&raquo;</div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/how-to-install-clam-antivirus-centos-4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
