<?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>tom's blog &#187; greylisting</title>
	<atom:link href="http://tom.knaupp.com/tag/greylisting/feed/" rel="self" type="application/rss+xml" />
	<link>http://tom.knaupp.com</link>
	<description>free software, security and a bunch of my strange thoughts</description>
	<lastBuildDate>Fri, 21 Jan 2011 00:13:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>exim / implementing greylisting without db</title>
		<link>http://tom.knaupp.com/2007/03/28/exim-implementing-greylisting-without-db/</link>
		<comments>http://tom.knaupp.com/2007/03/28/exim-implementing-greylisting-without-db/#comments</comments>
		<pubDate>Wed, 28 Mar 2007 16:03:36 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Distributions]]></category>
		<category><![CDATA[Mailserver]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[greylisting]]></category>

		<guid isPermaLink="false">http://tom.knaupp.com/?p=31</guid>
		<description><![CDATA[I had greylisting running for a while with a little perl script, that only worked with ip-addresses. As spam is growing an growing, I wanted to use the whole triplet (ip/sender/recipient) for the filter. As I did not want to use a database backend, the decision led to greylistd &#8211; an easy configurable daemon. I [...]]]></description>
			<content:encoded><![CDATA[<p>I had <a href="http://en.wikipedia.org/wiki/Greylisting" title="Wikipedia Article about Greylisting" target="_blank">greylisting</a> running for a while with a little perl script, that only worked with ip-addresses. As spam is growing an growing, I wanted to use the whole triplet (ip/sender/recipient) for the filter.<br />
<br />
As I did not want to use a database backend, the decision led to <a href="http://packages.qa.debian.org/g/greylistd.html" title="Debian page of greylistd" target="_blank">greylistd</a> &#8211; an easy configurable daemon. I needed the packages for (open)SuSE, that can be found in openSuSE&#8217;s <a href="http://software.opensuse.org/download/server:/mail/" title="openSuSE mail software repository">software repository</a>.<br />
<br />
After installing it and checking the basics at /etc/greylistd/config, you have to add a little code to your acls in exim.conf, i.e.:<br />
<br />
<code>defer message = greylisted $sender_host_address. please try again later<br />
condition = ${readsocket{/var/run/greylistd/socket}\<br />
{--grey $sender_host_address $sender_address $local_part@$domain} {5s}{}{false}}</code><br />
<br />
That was all I had to do to get it working. It&#8217;s advisable to add some hosts, that are known for problems with greylisting, not to be checked. Therefor you have to extend your acl:<br />
<br />
<code>defer message = greylisted $sender_host_address. please try again later<br />
!hosts = : ${if exists {/etc/greylistd/whitelist-hosts}\<br />
{/etc/greylistd/whitelist-hosts}{}} : \<br />
${if exists {/var/lib/greylistd/whitelist-hosts}\<br />
{/var/lib/greylistd/whitelist-hosts}{}}<br />
condition = ${readsocket{/var/run/greylistd/socket}\<br />
{--grey $sender_host_address $sender_address $local_part@$domain} {5s}{}{false}}</code><br />
<br />
Many thanks for the documentations from <a href="http://www.schirmacher.de/display/INFO/SPAM+filtern+mit+Greylisting?focusedCommentId=396" target="_blank" title="German Docu howto filter spam with exim">Arne Schirmacher</a> and <a href="http://spod.cx/blog/greylisting_with_exim_spamassassin.shtml" title="Greylisting with Exim 4 and Spamassassin" target="_blank">Ben Charlton</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.knaupp.com/2007/03/28/exim-implementing-greylisting-without-db/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

