<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>No Content, No Fuss: Playing with spammers</title>
    <link>http://anil.recoil.org/blog/articles/2004/07/29/playing-with-spammers</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Anil Madhavapeddy</description>
    <item>
      <title>Playing with spammers</title>
      <description>&lt;p&gt;The amount of spam sent to Recoil accounts has dramatically sprung
up over the last few years, sending the machine loads skyrocketing
accordingly.  Luckily, we're running
&lt;a href="http://www.openbsd.org/"&gt;OpenBSD&lt;/a&gt;, which added a fun
tool called
&lt;a href="http://www.openbsd.org/cgi-bin/man.cgi?query=spamd"&gt;&lt;i&gt;spamd(8)&lt;/i&gt;&lt;/a&gt;
a couple of releases ago.
&lt;/p&gt;

&lt;p&gt;
It's activated by tracking IP addresses of known
spammers from blacklists like &lt;a href="http://www.spamhaus.org/"&gt;Spamhaus&lt;/a&gt;,
and redirecting them to the spam daemon via &lt;a href="http://www.openbsd.org/cgi-bin/man.cgi?query=pf"&gt;pf&lt;/a&gt; rules.  Once the mail reaches &lt;tt&gt;spamd&lt;/tt&gt;, it "tarpits"
it by dropping its TCP send and receive buffers to a very small value, 
encouraging the spammers and virii to (slowly) send their malware on.  If they
ever do reach the end of their data, it then rejects it with a temporary
failure - costing the spammers more resourcs if they decide to retransmit it.
&lt;/p&gt;

&lt;p&gt;
The load has dropped quite a bit since I activated this filtering; it seems
to help against some of the latest worms quite a lot, which just
connect to port 25, spew off a buffer-overflow attempt, and repeat this
once every few seconds.  Since &lt;tt&gt;spamd&lt;/tt&gt;, things take a bit longer though!
&lt;/p&gt;

&lt;pre&gt;
quick spamd: 221.2.232.138: connected (9/9), lists: spamhaus
quick spamd: 221.2.232.138: disconnected after 431 seconds. lists: spamhaus
&lt;/pre&gt;

&lt;p&gt;
Very satisfying.  I did play with the &lt;a href="http://www.greylisting.org/"&gt;greylisting&lt;/a&gt; mode of &lt;tt&gt;spamd&lt;/tt&gt; as well, but it wasn't quite as successful as some valid mail sites such as &lt;a href="http://www.edas.info/"&gt;EDAS&lt;/a&gt; (bless its underwhelming soul) take five days to send conference paper rejections into a greylisted system.  Public whitelists do &lt;a href="http://greylisting.org/whitelisting.shtml"&gt;exist&lt;/a&gt;, but I think I'll wait a while and see if things mature a little more first.
&lt;/p&gt;</description>
      <pubDate>Thu, 29 Jul 2004 09:53:48 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:17e93bbf-37c3-4628-97c6-efba183457db</guid>
      <author>avsm</author>
      <link>http://anil.recoil.org/blog/articles/2004/07/29/playing-with-spammers</link>
      <category>hacking</category>
      <category>net</category>
    </item>
  </channel>
</rss>
