<?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; clamav</title>
	<atom:link href="http://www.debiantutorials.com/tag/clamav/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian based Linux distros</description>
	<lastBuildDate>Tue, 27 Dec 2011 01:15:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Installing HAVP (HTTP Antivirus Proxy)</title>
		<link>http://www.debiantutorials.com/installing-havp-http-antivirus-proxy/</link>
		<comments>http://www.debiantutorials.com/installing-havp-http-antivirus-proxy/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 06:50:05 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[havp]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=315</guid>
		<description><![CDATA[HAVP (HTTP Antivirus Proxy) is a proxy with a ClamAV anti-virus scanner. The main aims are continuous, non-blocking downloads and smooth scanning of dynamic and password protected HTTP traffic. Havp antivirus proxy has a parent and transparent proxy mode. It can be used with squid or standalone. 1. Install HAVP apt-get install havp 2. Start [...]]]></description>
			<content:encoded><![CDATA[<p>HAVP (HTTP Antivirus Proxy) is a proxy with a ClamAV anti-virus scanner. The main aims are continuous, non-blocking downloads and smooth scanning of dynamic and password protected HTTP traffic. Havp antivirus proxy has a parent and transparent proxy mode. It can be used with squid or standalone.</p>
<p>1. Install HAVP</p>
<p><code>apt-get install havp<br />
</code><span id="more-315"></span></p>
<p>2. Start HAVP if it didn't start after the installation</p>
<p><code>/etc/init.d/havp start<br />
</code></p>
<p>It's ready, by default HAVP listens on port 8080. You can configure your web browser to use the server as a proxy.</p>
<p>You can customize the error pages by editing the html files in this directory: /etc/havp/templates/en/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-havp-http-antivirus-proxy/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<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 [...]]]></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>1</slash:comments>
		</item>
		<item>
		<title>Installing DSPAM with ClamAV for Postfix on lenny</title>
		<link>http://www.debiantutorials.com/installing-dspam-with-clamav-for-postfix-on-lenny/</link>
		<comments>http://www.debiantutorials.com/installing-dspam-with-clamav-for-postfix-on-lenny/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 23:23:15 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[dspam]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=81</guid>
		<description><![CDATA[DSPAM is a scalable and open-source content-based spam filter designed for multi-user enterprise systems. On a properly configured system, many users experience results between 99.5% - 99.95%, or one error for every 200 to 2000 messages. Install and configure the DSPAM daemon 1. Install DSPAM daemon with MySql storage driver and ClamAV. The installer will [...]]]></description>
			<content:encoded><![CDATA[<p>DSPAM is a scalable and open-source content-based spam filter designed for multi-user enterprise systems. On a properly configured system, many users experience results between 99.5% - 99.95%, or one error for every 200 to 2000 messages.</p>
<p><strong>Install and configure the DSPAM daemon</strong></p>
<p>1. Install DSPAM daemon with MySql storage driver and ClamAV. The installer will create a database and required table structure.</p>
<p><code>apt-get install DSPAM libdspam7-drv-mysql clamav<br />
 &gt; Yes<br />
 &gt; Type the password for the root user in MySql<br />
 &gt; Select a strong password or allow a random password to be generated<br />
</code><span id="more-81"></span></p>
<p>2. Configure DSPAM to deliver mail to the Postfix mail server on port 10025, use ClamAV for virus filtering and more. You should read the config file carefully and adjust as needed. (pico /etc/dspam/dspam.conf)</p>
<p><code>StorageDriver /usr/lib/dspam/libmysql_drv.so<br />
DeliveryHost        127.0.0.1<br />
DeliveryPort        10025<br />
DeliveryIdent       dspam<br />
DeliveryProto       SMTP<br />
Preference "signatureLocation=headers"<br />
Preference "spamSubject=SPAM"<br />
Opt out<br />
TrackSources spam<br />
ClamAVPort      3310<br />
ClamAVHost      127.0.0.1<br />
ClamAVResponse accept<br />
ServerMode auto<br />
ServerPass.Relay1       "secret"<br />
ServerParameters        "--deliver=innocent -d %u"<br />
ServerDomainSocketPath  "/var/run/dspam/dspam.sock"<br />
</code></p>
<p>3. Enable the DSPAM daemon (pico /etc/default/dspam)</p>
<p><code>START=yes<br />
</code></p>
<p>4. Restart the DSPAM daemon</p>
<p><code>/etc/init.d/dspam restart<br />
</code></p>
<p>&nbsp;</p>
<p><strong>Install and configure Postfix mail system</strong></p>
<p>1. Install Postfix mail system if not already installed. The postfix-pcre package is required for the dspam_filter_access and dspam_check_aliases files created later.</p>
<p><code>apt-get install postfix postfix-pcre<br />
</code></p>
<p>2. We only want to filter incoming mail (pico /etc/postfix/dspam_filter_access)</p>
<p><code>/^(spam|ham)@.*$/ OK<br />
/./ FILTER dspam:dspam<br />
</code></p>
<p>Set correct permissions on the newly created file</p>
<p><code>chown root.postfix /etc/postfix/dspam_filter_access<br />
</code></p>
<p>3. Set up special aliases to train DSPAM (pico /etc/aliases)</p>
<p><code>ham: ham@ham.ham<br />
spam: spam@spam.spam<br />
</code></p>
<p><code>postalias /etc/aliases<br />
</code></p>
<p>Add entries into the transports file (pico /etc/postfix/transports)</p>
<p><code>spam.spam       dspam-retrain:spam<br />
ham.ham         dspam-retrain:innocent<br />
</code></p>
<p><code>postmap /etc/postfix/transports<br />
</code></p>
<p>Create a filter to prevent unwanted use of the spam and ham aliases (pico /etc/postfix/dspam_check_aliases)</p>
<p><code>/^.*(spam|ham)@.*$/ REJECT<br />
</code></p>
<p><code>postmap /etc/postfix/dspam_check_aliases<br />
</code></p>
<p>4. Configure Postfix (pico /etc/postfix/main.cf)</p>
<p><code>smtpd_client_restrictions = check_client_access pcre:/etc/postfix/dspam_filter_access<br />
dspam_destination_recipient_limit = 1<br />
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access pcre:/etc/postfix/dspam_check_aliases, check_sender_access pcre:/etc/postfix/dspam_check_aliases<br />
transport_maps = hash:/etc/postfix/transports<br />
</code></p>
<p><em>If you have changed the config of your mail server from the default ones, you may need to append the new values instead of replacing the whole line.</em></p>
<p>Append these lines to the master.cf file (pico /etc/postfix/master.cf)</p>
<p><code>dspam                 unix    -       n       n       -       -    pipe<br />
flags=Ru user=dspam argv=/usr/bin/dspam --client --deliver=innocent,spam --user ${recipient} --mail-from=${sender}<br />
&nbsp;<br />
dspam-retrain         unix    -       n       n       -      -     pipe<br />
flags=Rhq user=dspam argv=/usr/bin/dspam --client --mode=teft --class=$nexthop --source=error --user dspam<br />
&nbsp;<br />
localhost:10025 inet  n -       n       -       -        smtpd<br />
  -o content_filter=<br />
  -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks<br />
  -o smtpd_helo_restrictions=<br />
  -o smtpd_client_restrictions=<br />
  -o smtpd_sender_restrictions=<br />
  -o smtpd_recipient_restrictions=permit_mynetworks,reject<br />
  -o mynetworks=127.0.0.0/8<br />
  -o smtpd_authorized_xforward_hosts=127.0.0.0/8<br />
</code></p>
<p>&nbsp;</p>
<p><strong>Train DSPAM</strong></p>
<p>1. Install bzip2</p>
<p><code>apt-get install bzip2<br />
</code></p>
<p>2. Download training content</p>
<p><code>cd /tmp<br />
wget http://spamassassin.apache.org/publiccorpus/20050311_spam_2.tar.bz2<br />
wget http://spamassassin.apache.org/publiccorpus/20030228_easy_ham_2.tar.bz2<br />
</code></p>
<p>3. Extract the training content</p>
<p><code>tar xvfj 20050311_spam_2.tar.bz2<br />
tar xvfj 20030228_easy_ham_2.tar.bz2<br />
</code></p>
<p>4. Start the training. This may take a few minutes.</p>
<p><code>dspam_train test spam_2/ easy_ham_2/<br />
</code></p>
<p>You're all set, now you should have a fully function mail system with powerful spam and virus filtering.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-dspam-with-clamav-for-postfix-on-lenny/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
