<?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>Sebastian Mogilowskis Blog &#187; postgrey</title>
	<atom:link href="http://www.mogilowski.net/lang/en-us/tag/postgrey/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mogilowski.net</link>
	<description>Just another blog about administration, linux and other stuff</description>
	<lastBuildDate>Fri, 30 Jul 2010 06:26:33 +0000</lastBuildDate>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Greylisting with sqlgrey, postfix and mysql on Debian Lenny</title>
		<link>http://www.mogilowski.net/lang/en-us/2009/02/10/greylisting-with-sqlgrey-postfix-and-mysql-on-debian-lenny</link>
		<comments>http://www.mogilowski.net/lang/en-us/2009/02/10/greylisting-with-sqlgrey-postfix-and-mysql-on-debian-lenny#comments</comments>
		<pubDate>Tue, 10 Feb 2009 09:17:14 +0000</pubDate>
		<dc:creator>sebastian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systemadministration]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mailserver]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[postgrey]]></category>
		<category><![CDATA[sqlgrey]]></category>

		<guid isPermaLink="false">http://www.mogilowski.net/?p=284</guid>
		<description><![CDATA[This article describes howto setup sqlgrey with postfix and mysql on Debian Lenny. The normal graylisting with postgrey store the whitelist in a berkeley database which needs to be replicated on a mailserver cluster. With sqlgrey you can do that replication with a mysql database. First create a Database &#8220;sqlgrey&#8221; with an user &#8220;sqlgrey&#8221; on [...]]]></description>
			<content:encoded><![CDATA[<p><span lang="en-us">This article describes howto setup sqlgrey with postfix and mysql on Debian Lenny. </span></p>
<p><span lang="en-us">The normal graylisting with postgrey store the whitelist in a berkeley database which needs to be replicated on a mailserver cluster. With sqlgrey you can do that replication with a mysql database.</span></p>
<p><span lang="en-us">First create a Database &#8220;sqlgrey&#8221; with an user &#8220;sqlgrey&#8221; on your database server. (The tables will be created by sqlgrey.)</span></p>
<h3><span lang="en-us">1. Install sqlgrey:</span></h3>
<pre>
aptitude install sqlgrey
</pre>
<h3><span lang="en-us">2. Edit the sqlgrey configuration file:</span></h3>
<pre>
vim /etc/sqlgrey/sqlgrey.conf
</pre>
<p><span lang="en-us">Edit the database settings:</span></p>
<pre>
## Database settings
db_type = mysql
db_name = sqlgrey
db_host = YOUR_DATABASE_SERVER
db_port = default
db_user = sqlgrey
db_pass = YOUR_PASS_WORD
db_cleandelay = 1800
clean_method = sync
</pre>
<h3><span lang="en-us">4. Add sqlgrey to the postfix configuration:</span></h3>
<pre>
vim /etc/postfix/main.cf
</pre>
<p><span lang="en-us">Append the recipient restrictions:</span></p>
<pre>
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_unknown_client,
reject_invalid_hostname,
check_policy_service inet:127.0.0.1:2501,
permit
</pre>
<h3><span lang="en-us">5. Restart the services:</span></h3>
<pre>
/etc/init.d/sqlgrey restart
/etc/init.d/postfix restart
</pre>
<h3><span lang="en-us">6. Controll</span></h3>
<p><span lang="en-us">Watch the content of the table &#8220;connect&#8221; it contains the sender information of every incoming mail.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mogilowski.net/lang/en-us/2009/02/10/greylisting-with-sqlgrey-postfix-and-mysql-on-debian-lenny/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
