<?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>Computer Support &#187; blackhole</title>
	<atom:link href="http://www.xiitec.com/blog/tag/blackhole/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xiitec.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Dec 2009 08:40:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Building Your Own DNS Blackhole List</title>
		<link>http://www.xiitec.com/blog/2009/02/12/building-your-own-dns-blackhole-list/</link>
		<comments>http://www.xiitec.com/blog/2009/02/12/building-your-own-dns-blackhole-list/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 18:48:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sendmail]]></category>
		<category><![CDATA[blackhole]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=245</guid>
		<description><![CDATA[The domain administrator must create a DNS zone file, in the   proper format, that lists all of the connection addresses that are to be   blacklisted. The special DNS address records in the zone file are constructed by   reversing the IP address of the blacklisted system to create the DNS [...]]]></description>
			<content:encoded><![CDATA[<p>The domain administrator must create a DNS zone file, in the   proper format, that lists all of the connection addresses that are to be   blacklisted. The special DNS address records in the zone file are constructed by   reversing the IP address of the blacklisted system to create the DNS name field   of the record and by using an address such as 127.0.0.2 in the data   field of the address record. This format means that hosts are blacklisted by IP   address instead of by name, which makes sense because the <em>dnsbl</em> lookup is   done using the connection IP address. The DNS server must be authoritative for   the domain in which the blackhole list is to be located. This is normally done   by creating a special subdomain for the blackhole list within the zone of   authority of the DNS server.</p>
<p><span id="more-245"></span></p>
<p>On the sendmail system, create a configuration containing the <em>dnsbl </em>feature. Identify the local DNS   blackhole list on the <em>dnsbl</em> command line. Here is an example:</p>
<pre>dnl Point dnsbl to our local DNS blackhole list

FEATURE(`dnsbl', `dnsbl.wrotethebook.com')</pre>
<p>Rebuild the <em>sendmail.cf</em> file, copy the new <em>sendmail.cf</em> file to <em>/etc/mail</em>, and restart sendmail.</p>
<p>Using a blackhole list service is simple but inflexible because   you can&#8217;t choose which sites are listed. This means that mail from a friendly   site might be blocked just because the administrator at that site misconfigured   relaying. For this reason, some organizations decide to build their own   DNS-based blackhole list. Creating your own blackhole server ensures that   connectivity to all of the sites you want to reach is under your direct control,   but it requires both sendmail and DNS expertise.</p>
<p>The DNS administrator uses a zone statement in the DNS   server&#8217;s <em>named.conf </em>file to load the blackhole database. Assuming that   the blacklisted hosts are defined in a zone file named <em>blacklisted.hosts</em>,   which provides the data for a domain named <em>dnsbl.wrotethebook.com</em>, the   following zone statement would be used:</p>
<pre>zone "dnsbl.wrotethebook.com" IN {

type master;

file "blacklisted.hosts";

allow-update { none; };

};</pre>
<p>Blackhole entries for addresses 10.0.187.215 and   192.168.0.3 defined in the <em>blacklisted.hosts</em> file would be the   following:</p>
<pre>215.187.0.10                 IN A 127.0.0.2

3.0.168.192                  IN A 127.0.0.2</pre>
<p>The newly created DNS domain is referenced as the source for   blackhole list data on the <em>dnsbl</em> feature command line in the Solution   section. Mail from any site listed in the <em>dnsbl.wrotethebook.com</em> domain   is rejected, as this attempt to send mail from 192.168.0.3 shows:</p>
<pre># <strong>telnet chef smtp</strong>

Trying 192.168.0.8...

Connected to 192.168.0.8.

Escape character is '^]'.

220 chef.wrotethebook.com ESMTP Sendmail 8.12.9/8.12.9; Fri, 22 Aug 2003 12:01:37 -  0400

<strong>helo rodent.wrotethebook.com</strong>

250 chef.wrotethebook.com Hello rodent.wrotethebook.com [192.168.0.3], pleased to   meet you

<strong>MAIL From:&lt;craig@rodent.wrotethebook.com&gt;</strong>

550 5.7.1 Rejected: 192.168.0.3 listed at dnsbl.wrotethebook.com

<strong>QUIT</strong>

221 2.0.0 chef.wrotethebook.com closing connection  Connection closed by foreign host.</pre>
<p>The connection address 192.168.0.3 is found in the <em>dnsbl.wrotethebook.com</em> domain, so our server rejects the mail and returns   the error message &#8220;550 5.7.1 Rejected: 192.168.0.3 listed at   dnsbl.wrotethebook.com.&#8221; This default error message can be changed with an   additional argument on the <em>dnsbl</em> feature command line. For example, the   command:</p>
<pre>FEATURE(`dnsbl', `dnsbl.wrotethebook.com', `"Mail rejected. "$&amp;{client_addr}" is a   suspected spam relay."')</pre>
<p>changes the error message to &#8220;Mail rejected. 192.168.0.3 is a   suspected spam relay.&#8221; However, the standard message works well and provides the   remote site with more information.</p>
<p>The small number of systems used in the blackhole list  could much more easily have been handled by the <em>access</em> database.   In most cases, using the <em>access</em> database to block unwanted mail   connections is much easier than creating your own blackhole list. Creating and   maintaining your own blackhole list is labor intensive. The systems that should   be added to and removed from the list are constantly changing. Additionally, a   great deal of information is needed to initially build a list. It is possible to   use a mail filtering tool, such as procmail, to   automatically collect suspected addresses directly from mail. However, it is   difficult to create a system that collects the right information and keeps it   up-to-date. Most administrators prefer to create their own blackhole list based   on the blackhole list provided by a blackhole list service. The services already   have large lists and they constantly maintain them. Most blackhole list services   provide some way to download the entire list. For example, the DSBL list can be   downloaded using rsync:</p>
<pre># rsync rsync.dsbl.org::dsbl/bind-list.dsbl.org.</pre>
<p>Periodically downloading a list and customizing it is one way   to create your own blackhole list. But even if you start with a preexisting   list, creating your own blackhole list is not a task that should be undertaken   lightly. Creating your own blackhole list is one of the most difficult   techniques for controlling unwanted junk email.</p>
<p>As usual, the choice between using a blackhole list service or   building your own blackhole list is a choice between simplicity and flexibility.   Most sites choose simplicity. If you don&#8217;t have the available staff necessary to   build and maintain your own blackhole list, stick with a standard blackhole list   service.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2009/02/12/building-your-own-dns-blackhole-list/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using a DNS Blackhole List Service</title>
		<link>http://www.xiitec.com/blog/2009/02/12/using-a-dns-blackhole-list-service/</link>
		<comments>http://www.xiitec.com/blog/2009/02/12/using-a-dns-blackhole-list-service/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 18:42:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sendmail]]></category>
		<category><![CDATA[blackhole]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=244</guid>
		<description><![CDATA[Add the dnsbl feature to the sendmail configuration.   Identify the specific blackhole list service you wish to use on the dnsbl command line. Here is an example:

dnl Use the DSBL blacklist service

FEATURE(`dnsbl', `list.dsbl.org')
Rebuild the sendmail.cf file, copy the new sendmail.cf file to /etc/mail, and restart sendmail.
The dnsbl feature adds the sendmail.cf code  [...]]]></description>
			<content:encoded><![CDATA[<p>Add the <em>dnsbl </em>feature to the sendmail configuration.   Identify the specific blackhole list service you wish to use on the <em>dnsbl</em> command line. Here is an example:</p>
<p><span id="more-244"></span></p>
<pre>dnl Use the DSBL blacklist service

FEATURE(`dnsbl', `list.dsbl.org')</pre>
<p>Rebuild the <em>sendmail.cf</em> file, copy the new <em>sendmail.cf</em> file to <em>/etc/mail</em>, and restart sendmail.</p>
<p>The <em>dnsbl</em> feature adds the <em>sendmail.cf</em> code   needed to enable a DNS blacklist service. The <em>dnsbl</em> feature uses a   K command to define the <em>dnsbl</em> database as a host type   database, which means lookups in <em>dnsbl</em> are really passed to DNS for   resolution.The <em>dnsbl</em> feature also   adds a few rules to the Basic_check_relay ruleset, which is called from   the check_relay ruleset. The added rules lookup the connection address   in the <em>dnsbl</em> database. If the connection address is found in the   database, mail from that address is rejected with an error message. If the   connection address is not found in the <em>dnsbl</em> database, the mail is passed   on for further processing. A sendmail -bt test shows the   impact of the added rewrite rules:</p>
<pre># <strong>sendmail -bt</strong>

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)

Enter &lt;ruleset&gt; &lt;address&gt;

&gt; <strong>.D{client_addr}192.168.111.68</strong>

&gt; <strong>Basic_check_relay &lt;&gt;</strong>

Basic_check_rela   input: &lt; &gt;

Basic_check_rela returns: $# error $@ 5 . 7 . 1 $: "550 Rejected:

" 192 . 168 . 111 .  68 " listed at list.dsbl.org"

&gt; <strong>/quit</strong></pre>
<p>Because there is no active connection—this is just a test—the   first step is to statically define a connection address for the test. Next, the   Basic_check_relay ruleset is called and passed to an empty workspace.   The workspace passed to the ruleset in this test is unimportant because the   first rule added to the ruleset by the <em>dnsbl</em> feature unconditionally   replaces the workspace with the value found in ${client_addr}.   Therefore, the value looked up in the <em>dnsbl</em> database is the connection   address stored in the ${client_addr} macro. In this test, the address   192.168.111.68 is found in the blackhole list maintained at <em>list.dsbl.org</em>, so mail from that address is rejected. The mail is   rejected with the error message:</p>
<pre>550 Rejected: 192.168.111.68 listed at list.dsbl.org</pre>
<p>The error message displays the address that was rejected and   the service that recommended the rejection. This information is important. The   administrators at 192.168.111.68 might need to contact the blackhole   service to find out why their system is blacklisted and what they can do to get   it removed from the blackhole list. Often, a system is blacklisted because of a   configuration error that creates an open relay. As soon as the error is fixed,   the administrator wants to get the system removed from the blackhole list.   Knowing which services have blacklisted the system tells the administrator which   services must be contacted to get full mail service restored.</p>
<p>This configuration uses the blackhole server at <em>list.dsbl.org</em> because that is the service specified with the <em>dnsbl</em> feature command, which is just an example; it is not a   recommendation for the <em>list.dsbl.org</em> service. There are many blackhole   services available. Go to each service&#8217;s web site and evaluate their policy for listing   hosts in the database. Select the service whose policy most closely matches the   policy you want to enforce on your server.</p>
<p>When no service is specified on the <em>dnsbl</em> feature   command line, sendmail defaults to using <em>blackholes.mail-abuse.org</em>, which   is the same service that was used by the deprecated sendmail <em>rbl</em> feature.</p>
<p>The <em>enhdnsbl</em> feature could be used as an alternative to <em>dnsbl</em>. However, the <em>enhdnsbl</em> feature provides no   real advantage in this particular case.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2009/02/12/using-a-dns-blackhole-list-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

