<?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; spam</title>
	<atom:link href="http://www.debiantutorials.com/tag/spam/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>Install mod_spamhaus Apache module to fight comment spam</title>
		<link>http://www.debiantutorials.com/install-modspamhaus-apache-module-to-fight-comment-spam/</link>
		<comments>http://www.debiantutorials.com/install-modspamhaus-apache-module-to-fight-comment-spam/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 20:53:01 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamhaus]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=301</guid>
		<description><![CDATA[mod_spamhaus is an Apache module for DNS Block Listing that protects web services by denying access to particular IP addresses. It can stop spam relaying via web form URL injection, and block HTTP DDoS attacks from bot-nets. It queries sbl-xbl.spamhaus.org, taking advantage of the Spamhaus Block List (SBL) and the Exploits Block List (XBL). 1. [...]]]></description>
			<content:encoded><![CDATA[<p>mod_spamhaus is an Apache module for DNS Block Listing that protects web services by denying access to particular IP addresses. It can stop spam relaying via web form URL injection, and block HTTP DDoS attacks from bot-nets.</p>
<p>It queries sbl-xbl.spamhaus.org, taking advantage of the Spamhaus Block List (SBL) and the Exploits Block List (XBL). </p>
<p>1. Download the latest mod_spamhaus deb package from sid package repository (mod_spamhaus is not available for lenny but we can use the sid package)</p>
<p><code>wget http://ftp.us.debian.org/debian/pool/main/m/mod-spamhaus/libapache2-mod-spamhaus_0.7-1_i386.deb<br />
</code><span id="more-301"></span></p>
<p>This package is for i386. If you are using other architecture, you can find a suitable package on the bottom of this page: http://packages.debian.org/sid/libapache2-mod-spamhaus</p>
<p>2. Install the package</p>
<p><code>dpkg -i libapache2-mod-spamhaus_0.7-1_i386.deb<br />
</code></p>
<p>Apache is automatically restarted and the module is enabled. If you would like to test the module you can add a line to your hosts file to make it think that your IP address is blocked (pico /etc/hosts)</p>
<p><code>127.0.0.4 1.0.168.192.sbl-xbl.spamhaus.org<br />
</code></p>
<p><em>Replace 1.0.168.192 with your IP address and reverse it. The IP address 192.168.0.1 should read 1.0.168.192.</em></p>
<p>By default, only POST, PUT, OPTIONS, CONNECT methods are blocked. You can add GET to the list of methods blocked in /etc/apache2/mods-enabled/mod-spamhaus.conf to block the spammers from seeing your website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/install-modspamhaus-apache-module-to-fight-comment-spam/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Implementing SPF checks in Postfix</title>
		<link>http://www.debiantutorials.com/implementing-spf-checks-in-postfix/</link>
		<comments>http://www.debiantutorials.com/implementing-spf-checks-in-postfix/#comments</comments>
		<pubDate>Sat, 15 May 2010 18:56:02 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[mailscanner]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spf]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=299</guid>
		<description><![CDATA[Sender Policy Framework (SPF), as defined in RFC 4408, is an e-mail validation system designed to prevent e-mail spam by addressing a common vulnerability, source address spoofing. SPF allows administrators to specify which hosts are allowed to send e-mail from a given domain by creating a specific DNS SPF record in the public DNS. Mail [...]]]></description>
			<content:encoded><![CDATA[<p>Sender Policy Framework (SPF), as defined in RFC 4408, is an e-mail validation system designed to prevent e-mail spam by addressing a common vulnerability, source address spoofing. SPF allows administrators to specify which hosts are allowed to send e-mail from a given domain by creating a specific DNS SPF record in the public DNS. Mail exchangers then use the DNS to check that mail from a given domain is being sent by a host sanctioned by that domain's administrators.<span id="more-299"></span></p>
<p>It's assumed that you have already installed Postfix and MailScanner. If not, check these tutorials:</p>
<p><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><br />
<a href="http://www.debiantutorials.net/installing-and-configuring-mailscanner-for-virus-and-spam-filtering-postfix-clamav-spamassassin-razor/">Installing and configuring MailScanner for virus and spam filtering (Postfix, ClamAV, SpamAssassin, Razor)</a></p>
<p>1. Install the Postfix policy engine</p>
<p><code>apt-get install postfix-policyd-spf-perl<br />
</code></p>
<p>2. Add the policy check to smtpd_recipient_restrictions (pico /etc/postfix/main.cf)</p>
<p><code>smtpd_recipient_restrictions = [...], check_policy_service unix:private/policy<br />
</code></p>
<p><em>Make sure you don't remove other restrictions, just add it to the end of the line.</em></p>
<p>3. Add the policy engine to the Postfix master.cf (pico /etc/postfix/master.cf)</p>
<p><code>policy  unix    -       n       n       -       -       spawn<br />
user=nobody argv=/usr/bin/perl /usr/sbin/postfix-policyd-spf-perl<br />
</code></p>
<p>4. Reload Postfix configuration</p>
<p><code>postfix reload<br />
</code></p>
<p>5. Check if this is working</p>
<p><code>telnet yourserver 25<br />
HELO gmail.com<br />
MAIL FROM: <user*@gmail.com><br />
RCPT TO: <user*@domain.com><br />
DATA<br />
test<br />
.<br />
</code></p>
<p><em>Replace user*@domain.com with a e-mail address hosted on your Postfix mailserver and user*@gmail.com with a valid Gmail e-mail address.</em></p>
<p>Look at /var/log/mail.log and you should see that the MailScanner score has been increased by SPF related rules:</p>
<p><code>Message 62ACA1813C.AFC5A from 192.168.1.4 (user@gmail.com) to domain.com is spam, SpamAssassin (score=7.394, required 6, MISSING_SUBJECT 1.28, SPF_HELO_NEUTRAL 2.00, SPF_NEUTRAL 1.21, TVD_SPACE_RATIO 2.90)<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/implementing-spf-checks-in-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable greylisting in Postfix using Postgrey</title>
		<link>http://www.debiantutorials.com/enable-greylisting-in-postfix-using-postgrey/</link>
		<comments>http://www.debiantutorials.com/enable-greylisting-in-postfix-using-postgrey/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 22:05:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mail]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[postgrey]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://debiantutorials.net/enable-greylisting-in-postfix-using-postgrey/</guid>
		<description><![CDATA[Greylisting is a new weapon to use against spam in this great war being waged upon it. With this new shielding method, by which you may block out huge amounts of spam, you are sure to please your email clients! In name, as well as operation, greylisting is related to whitelisting and blacklisting. What happen [...]]]></description>
			<content:encoded><![CDATA[<p>Greylisting is a new weapon to use against spam in this great war being waged upon it. With this new shielding method, by which you may block out huge amounts of spam, you are sure to please your email clients!</p>
<p>In name, as well as operation, greylisting is related to whitelisting and blacklisting. What happen is that each time a given mailbox receives an email from an unknown contact (ip), that mail is rejected with a "try again later"-message (This happens at the SMTP layer and is transparent to the end user). This, in the short run, means that all mail gets delayed at least until the sender tries again - but this is where spam loses out! Most spam is not sent out using RFC compliant MTAs; the spamming software will not try again later.<span id="more-3"></span></p>
<p>Now let's install postgrey<br />
<code>apt-get install postgrey<br />
</code></p>
<p>Configure Postfix (pico /etc/postfix/main.cf)<br />
Add "check_policy_service inet:127.0.0.1:60000" to the list recipient restrictions</p>
<p>The list may look similar to this one:<br />
<code>smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, check_policy_service inet:127.0.0.1:60000<br />
</code></p>
<p>Reload the Postfix daemon<br />
<code>postfix reload<br />
</code></p>
<p>By default postgrey delays all messages for 5 minutes. To change this, edit the postgrey configuration file (pico /etc/default/postgrey)</p>
<p>Change POSTGREY_OPTS so that it read something like this:<br />
<code>POSTGREY_OPTS="--inet=127.0.0.1:60000 --delay=60"</code><br />
The delay is specified in number of seconds. When you have changed the value, restart the daemon<br />
<code>/etc/init.d/postgrey restart</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/enable-greylisting-in-postfix-using-postgrey/feed/</wfw:commentRss>
		<slash:comments>0</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! -->
