<?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; MailScanner</title>
	<atom:link href="http://www.linuxmail.info/category/mailscanner/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Sat, 26 Jun 2010 16:30:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Add a Disclaimer to Outgoing Postfix Emails</title>
		<link>http://www.linuxmail.info/postfix-disclaimer/</link>
		<comments>http://www.linuxmail.info/postfix-disclaimer/#comments</comments>
		<pubDate>Sun, 16 May 2010 10:55:14 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=382</guid>
		<description><![CDATA[This article describes how to use MailScanner to add a disclaimer message to outgoing mails in Postfix.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to use MailScanner to add a disclaimer message to outgoing mails in Postfix. Make sure <a href="/mailscanner-postfix-clamav-spamassassin-howto-centos-5/">MailScanner is integrated into Postfix</a> and tested to be working.</p>
<span id="more-382"></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>

<div class="clearfix steps"><a href="/images/centos-5/edit-inline-sig-txt.png"><img class="preview" alt="Inline Signature" src="/images/centos-5/t-edit-inline-sig-txt.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/MailScanner/reports/en/inline.sig.txt</em> and <em>/etc/MailScanner/reports/en/inline.sig.html</em> and replace it with your own message.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-mailscanner-conf-sig.png"><img class="preview" alt="MailScanner Config" src="/images/centos-5/t-edit-mailscanner-conf-sig.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/MailScanner/MailScanner.conf</em> and update the line below.</div>
<pre class="steps">
Sign Clean Messages = /etc/MailScanner/rules/signing.rules
</pre>
<div class="clearfix steps"><a href="/images/centos-5/edit-signing-rules.png"><img class="preview" alt="signing.rules" src="/images/centos-5/t-edit-signing-rules.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Create the file <em>/etc/MailScanner/rules/signing.rules</em> and add the lines below.
<pre class="steps">
From:      *@acme.local  yes
FromOrTo:  default       no
</pre>
</div>
Replace <strong>acme.local</strong> with your own domain name.
</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>4. Restart the MailScanner service. <a href="/how-to-start-stop-services-centos-5/">Learn how to restart services.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/sm-message-sig.png"><img class="preview" alt="SquirrelMail Message" src="/images/centos-5/t-sm-message-sig.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. You should now see your disclaimer message on outbound emails.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-disclaimer/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 = /var/run/clamav/clamd.sock
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" />The English language message templates used in MailScanner is stored in <em>/etc/MailScanner/reports/en</em> and can even be <a href="/postfix-disclaimer/">configured to add a disclaimer message to outgoing mails.</a></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>MailScanner Setup Howto for RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/how-to-install-mailscanner-centos-5/</link>
		<comments>http://www.linuxmail.info/how-to-install-mailscanner-centos-5/#comments</comments>
		<pubDate>Mon, 23 Apr 2007 15:19:02 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/how-to-install-mailscanner-centos-5/</guid>
		<description><![CDATA[How to install MailScanner in Red Hat Enterprise Linux 5 or CentOS 5]]></description>
			<content:encoded><![CDATA[<p><strong>MailScanner</strong> is an open source anti-virus and anti-spam filter for email servers. The anti-virus and anti-spam portion is delegated to third party applications. This article describes how to install MailScanner.</p>
<span id="more-40"></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>

<div class="clearfix steps"><a href="/images/centos-5/installing-rpmforge.png"><img class="preview" alt="Install RPMforge" src="/images/centos-5/t-installing-rpmforge.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>The installation requires some packages found in RPMforge so make sure it is available in your system. <a href="/add-rpmforge-centos-5/">Learn how to add the RPMforge repository.</a></div>
<h2>Getting MailScanner</h2>
<div class="clearfix steps"><a href="/images/centos-5/firefox.png"><img class="preview" alt="Firefox" src="/images/centos-5/t-firefox.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div>1. Click the globe icon at the top near the <em>System</em> menu to launch the <strong>Firefox</strong> web browser.</div><div>&nbsp;</div><div class="m">If an error occurs, you probably did not install the Graphical Internet package. You can add it now using the <a href="/how-to-add-remove-applications-centos-5/">Package Manager</a> tool.</div></div>
<div class="clearfix steps"><a href="/images/centos-5/mailscanner-download.png"><img class="preview" alt="MailScanner download" src="/images/centos-5/t-mailscanner-download.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the address box, type in <a href="http://www.mailscanner.info/downloads.html">http://www.mailscanner.info/downloads.html</a> and press <em>Enter</em>. Download the stable version for RedHat, Fedora and Mandrake Linux.</div>
<h2>Installing MailScanner</h2>
<div class="clearfix steps"><a href="/images/centos-5/mailscanner-extract.png"><img class="preview" alt="Extract MailScanner" src="/images/centos-5/t-mailscanner-extract.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. The MailScanner source code should now be on your desktop. Right click the newly downloaded file and click <em>Extract Here</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/mailscanner-folder.png"><img class="preview" alt="MailScanner Folder" src="/images/centos-5/t-mailscanner-folder.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. After extracting, a MailScanner folder should be found on your Desktop. Right click the MailScanner folder and click <em>Open in Terminal</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/mailscanner-perl-dependencies.png"><img class="preview" alt="Yum perl dependencies" src="/images/centos-5/t-mailscanner-perl-dependencies.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the terminal window, type in all the command below (in one line) to install the required Perl modules from the RPMforge repository.
<pre class="steps">yum install perl-Archive-Zip 
perl-DBI
perl-DBD-SQLite
perl-Filesys-Df 
perl-Net-CIDR perl-OLE-Storage_Lite 
perl-Sys-Hostname-Long</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/mailscanner-install.png"><img class="preview" alt="MailScanner Install" src="/images/centos-5/t-mailscanner-install.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Finally, type in the command below to install MailScanner.
<pre class="steps">yum install --nogpgcheck mailscanner*</pre>
</div>
<div class="left">&laquo;&laquo; Previous: <a href="/firewall-configuration-centos-5/">How to Configure the Firewall</a></div><div class="right">Next: <a href="/how-to-install-clam-antivirus-centos-5/">How to Install Clam AntiVirus</a> &raquo;&raquo;</div>
<div class="clear">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/how-to-install-mailscanner-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 MailScanner in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/how-to-install-mailscanner-centos-4/</link>
		<comments>http://www.linuxmail.info/how-to-install-mailscanner-centos-4/#comments</comments>
		<pubDate>Wed, 14 Mar 2007 13:43:13 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>

		<guid isPermaLink="false">http://linux-mail.info/how-to-install-mailscanner-centos-4/</guid>
		<description><![CDATA[How to install MailScanner in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p>To install MailScanner, we are going to download the latest source code from the MailScanner web site and build it. For this to work, it needs the <em>Development Tools</em> package. If you did not include this during installation, you must add it now. <a href="/how-to-add-remove-applications-centos-4/">Learn how to add or remove applications here</a>.</p>
<span id="more-17"></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>Getting MailScanner</h2>
<div class="clearfix steps"><a href="/images/centos-4/firefox.png"><img class="preview" alt="Firefox" src="/images/centos-4/t-firefox.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div>1. Click the globe icon at the top near the <em>Actions</em> menu to launch the <strong>Firefox</strong> web browser.</div><div>&nbsp;</div><div class="m">If an error occurs, you probably did not install the Graphical Internet package. You can add it now using the <a href="/how-to-add-remove-applications-centos-4/">Package Management</a> tool.</div></div>
<div class="clearfix steps"><a href="/images/centos-4/ms-download.png"><img class="preview" alt="MailScanner download" src="/images/centos-4/t-ms-download.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the address box, type in <a href="http://www.mailscanner.info/downloads.html">http://www.mailscanner.info/downloads.html</a> and press <em>Enter</em>. Download the stable version for RedHat, Fedora and Mandrake Linux.</div>
<h2>Building and Installing MailScanner</h2>
<div class="clearfix steps"><a href="/images/centos-4/ms-extract.png"><img class="preview" alt="Extract MailScanner" src="/images/centos-4/t-ms-extract.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. The MailScanner source code should now be on your desktop. Right click the newly downloaded file and click <em>Extract Here</em>.</div>
<div class="clearfix steps"><a href="/images/centos-4/ms-folder.png"><img class="preview" alt="MailScanner Folder" src="/images/centos-4/t-ms-folder.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. After extracting, a MailScanner folder should be found on your Desktop. Double click the MailScanner folder to open it.</div>
<div class="clearfix steps"><a href="/images/centos-4/ms-install.png"><img class="preview" alt="MailScanner Install" src="/images/centos-4/t-ms-install.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Next, double click the file <em>install.sh</em>. On the <em>Run or Display</em> window, select <em>Run in Terminal</em>. This will now build and install MailScanner. This will take a while so just wait until the <strong>Terminal</strong> window disappears.</div>
<div class="left">&laquo;&laquo; Previous: <a href="/how-to-install-clam-antivirus-centos-4/">How to Install ClamAV</a></div><div class="right">Next: <a href="/mailscanner-postfix-clamav-spamassassin-howto-centos-4/">How to Integrate MailScanner into Postfix</a> &raquo;&raquo;</div>
<div class="clear">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/how-to-install-mailscanner-centos-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
