<?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>I Can Has Linux? &#187; exim</title>
	<atom:link href="http://icanhaslinux.com/category/exim/feed/" rel="self" type="application/rss+xml" />
	<link>http://icanhaslinux.com</link>
	<description>Invisible Patent Infringement!</description>
	<lastBuildDate>Mon, 29 Aug 2011 13:37:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Greylisting in Exim</title>
		<link>http://icanhaslinux.com/2007/08/21/greylisting-in-exim/</link>
		<comments>http://icanhaslinux.com/2007/08/21/greylisting-in-exim/#comments</comments>
		<pubDate>Tue, 21 Aug 2007 15:44:00 +0000</pubDate>
		<dc:creator>LightningCrash</dc:creator>
				<category><![CDATA[exim]]></category>
		<category><![CDATA[greylisting]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://icanhaslinux.com/2007/08/21/greylisting-in-exim/</guid>
		<description><![CDATA[My personal e-mail server hosts a handful of domains. Being listed as the technical contact on these, I tend to get a lot of spambots swarming my mail server. Recently, I stumbled across this site at theinternetco detailing how to set up greylisting in an exim/mysql setup. I took the plunge. From Friday 1:28PM Central [...]]]></description>
			<content:encoded><![CDATA[<p>My personal e-mail server hosts a handful of domains. Being listed as the technical contact on these, I tend to get a lot of spambots swarming my mail server.</p>
<p>Recently, I stumbled across <a href="http://theinternetco.net/projects/exim/greylist">this site at theinternetco</a> detailing how to set up greylisting in an exim/mysql setup.</p>
<p>I took the plunge.</p>
<p>From Friday 1:28PM Central to Saturday 7:30AM Central</p>
<p>840 connection attempts greylisted<br />585 individual ip/domain pairs tried<br />505 unique ip connections</p>
<p>All of this is after the following two iptables rules:<br />/sbin/iptables -I INPUT -p tcp &#8211;dport 25 -i eth0 -m state &#8211;state NEW -m recent &#8211;set<br />/sbin/iptables -I INPUT -p tcp &#8211;dport 25 -i eth0 -m state &#8211;state NEW -m recent &#8211;update &#8211;seconds 60 &#8211;hitcount 1 -j DROP</p>
<p>(Basically, any given IP can only make one new connection per minute. Had a problem where spam bots would get greylisted and then would try to connect about 100 times in a row)<br />Nothing really needs to connect to my mail server more than once a minute, and any large transaction of e-mail would be ETRN&#8217;ed anyway.</p>
<p>I upgraded the Amavisd-new package, which also broke some of my config files. Basically, Amavis now comes out of the box with SpamAssassin and ClamD support disabled. I didn&#8217;t realize this until Monday when I noticed the logs didn&#8217;t have startup entries from Amavis for these two. Doh!</p>
<p>But all told, it looks like my spam count has dropped noticeably. I&#8217;ve been putting some manual entries in for google&#8217;s mail servers, but it&#8217;s a little harder to catch them when you have 3000 entries in the greylist tables, like I do right now. Maybe I&#8217;ll write a cron job to prune old entries later on. Greylist entries are only good for a week anyway.</p>
<p>I&#8217;m toying with the idea of automatically blacklisting certain senders based on a set of circumstances. A few years ago, I used an alias of my main mail account to make 2-3 posts to a mailing list. Even today I see spam mail come in for that mailbox. I&#8217;m looking at how to check for mail intended for that address and just blacklist the ip that sent it (again, via MySQL,) but I&#8217;m not sure if it would be worth the effort at this time.<br />If I could get a good system in place to blacklist country codes, I&#8217;m sure that would cut down on the spam significantly. I have a good blacklist file from work that could probably do the trick.</p>
<p>I suppose I could write a script to manually walk through my logs and spit out a list of people who attempted to e-mail the non-existant address. I could automate that as well and have it insert into a MySQL table. I might as well blacklist microsoft.com while I&#8217;m at it.</p>
]]></content:encoded>
			<wfw:commentRss>http://icanhaslinux.com/2007/08/21/greylisting-in-exim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

