<?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>Debian Tutorials &#187; spamassassin</title>
	<atom:link href="http://www.debiantutorials.com/tag/spamassassin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian Linux</description>
	<lastBuildDate>Wed, 08 Sep 2010 08:36:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing and configuring MailScanner for virus and spam filtering (Postfix, ClamAV, SpamAssassin, Razor)</title>
		<link>http://www.debiantutorials.com/installing-and-configuring-mailscanner-for-virus-and-spam-filtering-postfix-clamav-spamassassin-razor/</link>
		<comments>http://www.debiantutorials.com/installing-and-configuring-mailscanner-for-virus-and-spam-filtering-postfix-clamav-spamassassin-razor/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 20:57:29 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[mailscanner]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[razor]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=209</guid>
		<description><![CDATA[MailScanner is an e-mail security and anti-spam package for e-mail gateway systems. MailScanner is highly configurable using a very easy-to-use system of rulesets. Virtually every configuration option can, for example, be controlled on a per-user, per-domain or per-IP basis. 
It's assumed that you have already installed and configured Postfix according to this tutorial:
Installing Postfix with [...]]]></description>
			<content:encoded><![CDATA[<p>MailScanner is an e-mail security and anti-spam package for e-mail gateway systems. MailScanner is highly configurable using a very easy-to-use system of rulesets. Virtually every configuration option can, for example, be controlled on a per-user, per-domain or per-IP basis. </p>
<p>It's assumed that you have already installed and configured Postfix according to this tutorial:<br />
<a href="http://www.debiantutorials.net/installing-postfix-with-mysql-backend-and-sasl-for-smtp-authentication/">Installing Postfix with MySql backend and SASL for SMTP authentication</a></p>
<p>1. Add backports to your apt sources (pico /etc/apt/sources.list)</p>
<p><code>deb http://www.backports.org/debian lenny-backports main contrib non-free<br />
</code></p>
<p>2. Add the backports keyring and update apt</p>
<p><code>apt-get update<br />
apt-get install debian-backports-keyring<br />
apt-get update<br />
</code></p>
<p>3. Install required packages (ClamAV, SpamAssassin, Razor and required libs for MailScanner)</p>
<p><code>apt-get install clamav clamav-base clamav-freshclam libclamav6 spamassassin razor unzip libarchive-zip-perl libconvert-tnef-perl libhtml-parser-perl libmime-tools-perl libmime-perl libcompress-zlib-perl libconvert-binhex-perl libdbd-sqlite3-perl libfilesys-df-perl libsys-syslog-perl libsys-hostname-long-perl libmailtools-perl libole-storage-lite-perl libnet-cidr-perl<br />
</code><span id="more-209"></span></p>
<p>4. Install libnet-dns-perl from backports</p>
<p><code>apt-get -t lenny-backports install libnet-dns-perl<br />
</code></p>
<p>5. Install MailScanner</p>
<p><code>apt-get install mailscanner<br />
</code></p>
<p>6. Enable MailScanner (pico /etc/default/mailscanner)</p>
<p><code>run_mailscanner=1<br />
</code></p>
<p>7. Edit MailScanner configuration (pico /etc/MailScanner/MailScanner.conf)</p>
<p><code>Run As User = postfix<br />
Run As Group = postfix<br />
Incoming Queue Dir = /var/spool/postfix/hold<br />
Outgoing Queue Dir = /var/spool/postfix/incoming<br />
MTA = postfix<br />
Always Include SpamAssassin Report = yes<br />
Send Notices = no<br />
Spam List = RFC-IGNORANT-DSN SORBS-SMTP spamhaus-ZEN spamcop.net CBL<br />
Spam Lists To Reach High Score = 2<br />
High SpamAssassin Score = 8<br />
Rebuild Bayes Every = 86400<br />
Wait During Bayes Rebuild = yes<br />
High Scoring Spam Actions = delete<br />
</code></p>
<p>8. Create razorhome, discover razor servers and register for identify</p>
<p><code>razor-admin -create<br />
razor-admin -register<br />
</code></p>
<p>9. Make Postfix put all messages on hold to allow MailScanner to scan the messages (pico /etc/postfix/main.cf)</p>
<p><code>header_checks = regexp:/etc/postfix/header_checks<br />
</code></p>
<p>10. Create the header checks file referenced by previous line (pico /etc/postfix/header_checks)</p>
<p><code>/^Received:/ HOLD<br />
</code></p>
<p>11. Restart MailScanner and Postfix</p>
<p><code>/etc/init.d/mailscanner restart<br />
postfix reload<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-and-configuring-mailscanner-for-virus-and-spam-filtering-postfix-clamav-spamassassin-razor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
