<?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; dspam</title>
	<atom:link href="http://www.debiantutorials.com/tag/dspam/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 the DSPAM web frontend on lenny</title>
		<link>http://www.debiantutorials.com/installing-the-dspam-web-frontend-on-lenny/</link>
		<comments>http://www.debiantutorials.com/installing-the-dspam-web-frontend-on-lenny/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 23:38:59 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[dspam]]></category>
		<category><![CDATA[frontend]]></category>
		<category><![CDATA[lenny]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=90</guid>
		<description><![CDATA[This tutorial covers installing and configuring the DSPAM web frontend. Using the web frontend, the mail users can configure the sensitivity of the spam filter, see statistics and more. I assume you already have the Apache2 web server and DSPAM daemon installed. 1. Install the dspam-webfrontend package and suexec module for the Apache2 web server. [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial covers installing and configuring the DSPAM web frontend. Using the web frontend, the mail users can configure the sensitivity of the spam filter, see statistics and more.</p>
<p>I assume you already have the Apache2 web server and DSPAM daemon installed.</p>
<p>1. Install the dspam-webfrontend package and suexec module for the Apache2 web server.</p>
<p><code>apt-get install dspam-webfrontend apache2-suexec<br />
</code><span id="more-90"></span></p>
<p>2. Enable the suexec module</p>
<p><code>a2enmod suexec<br />
</code></p>
<p>3. Configure the default web site to allow access to DSPAM webfrontend. Append these lines to the file somewhere between &lt;VirtualHost *:80&gt;&lt;/VirtualHost&gt; (pico /etc/apache2/sites-enabled/000-default)</p>
<p><code>SuexecUserGroup dspam dspam<br />
Addhandler cgi-script .cgi<br />
Options +ExecCGI -Indexes<br />
&nbsp;<br />
Alias /dspam /var/www/dspam/<br />
&lt;Directory /var/www/dspam/&gt;<br />
Addhandler cgi-script .cgi<br />
Options +ExecCGI -Indexes<br />
DirectoryIndex dspam.cgi<br />
&nbsp;<br />
AuthType Basic<br />
AuthName "DSPAM Control Center"<br />
AuthUserFile /etc/dspam/webfrontend.htpasswd<br />
Require valid-user<br />
&nbsp;<br />
AllowOverride None<br />
&lt;/Directory&gt;<br />
</code></p>
<p>4. Create a file containing users that have access to the webfrontend</p>
<p><code>htpasswd -c /etc/dspam/webfrontend.htpasswd user1<br />
</code></p>
<p><em>Change user1 into the username you want to allow access. The username must match the username used by you mail server to indentify the mail box so you may want to use other authentication backend to match the one used by you mail server.</em></p>
<p>Now you can access the webfrontend by entering http://yourserver/dspam/ in your web browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-the-dspam-web-frontend-on-lenny/feed/</wfw:commentRss>
		<slash:comments>2</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! -->
