<?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>Aarat's Blog &#187; dkim</title>
	<atom:link href="http://www.aarat.com/tag/dkim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aarat.com</link>
	<description>A good place to hangout.</description>
	<lastBuildDate>Fri, 13 Jan 2012 07:48:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>DKIM For Debian + Postfix</title>
		<link>http://www.aarat.com/dkim-for-debian-postfix/</link>
		<comments>http://www.aarat.com/dkim-for-debian-postfix/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 22:09:21 +0000</pubDate>
		<dc:creator>Aarat</dc:creator>
				<category><![CDATA[General Posts]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dkim]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://www.aarat.com/?p=328</guid>
		<description><![CDATA[Here&#8217;s Quick Tutorial for how to setup dkim (AKA Domain Keys ) on Debian + Postfix. 1.) Install dkim-filter apt-get install dkim-filter 2.) Create a key for each domain verified mkdir -p /etc/dkim/keys/abc.com cd /etc/dkim/keys/abc.com dkim-genkey -r -d abc.com Replace abc.com with the domain that this mail server should authenticate using DKIM 3. Add a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">Here&#8217;s Quick Tutorial for how to setup dkim (AKA Domain Keys ) on Debian + Postfix.</p>
<p>1.) Install dkim-filter</p>
<p style="padding-left: 90px;">
<p style="padding-left: 90px;"><strong><span style="color: #ff6600;"><code>apt-get install dkim-filter</code></span></strong></p>
<p style="padding-left: 90px;">
<p>2.) Create a key for each domain verified</p>
<p style="padding-left: 90px;"><strong><span style="color: #ff6600;"><code>mkdir -p /etc/dkim/keys/abc.com<br />
cd /etc/dkim/keys/abc.com<br />
dkim-genkey -r -d abc.com</code></span></strong></p>
<p style="padding-left: 90px;">
<p><em>Replace abc.com with the domain that this mail server should  authenticate using DKIM</em></p>
<p>3. Add a line for each domain to dkim-keys.conf file (vim  /etc/dkim-keys.conf)</p>
<p style="padding-left: 60px;"><strong><span style="color: #ff6600;"><code>*@abc.com:abc.com:/etc/dkim/keys/abc.com/default.private</code></span></strong></p>
<p><em>Replace abc.com with the domain that this mail server should  authenticate using DKIM</em></p>
<p>4. Add a TXT record to the DNS for the domain being authenticated using  DKIM. The record is automatically created and stored in  /etc/dkim/keys/abc.com/default.txt. You just need to add it to the  DNS server. (cat /etc/dkim/keys/abc.com/default.txt)</p>
<p>Here&#8217;s a sample output:</p>
<p style="padding-left: 120px;"><strong><span style="color: #ff6600;"><code>default._domainkey IN TXT "v=DKIM1; g=*; k=rsa;  p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8IQNYlS+8jyrbAxNsghsPrWYgOQQWI0Ab4e9MToZYLTBGI41V3Zet5Awrt19nMIUlTpuE+/YVnjP/pu3fgeYkoe6NUzp+oEcWAioQXBmx0njigac7iJ/I0naTP1xTrDacnwsTp/F+lMwGgjiHpaJA7iBmL0AfYMXlTBo5pFog2QIDAQAB"  ; ----- DKIM default for abc.com</code></span></strong></p>
<p style="padding-left: 120px;">
<p><em>Repeat steps 2, 3 and 4 for every domain that this server should  authenticate using DKIM.</em></p>
<p>5. Uncomment line 37 to make DKIM filter use the dkim-keys.conf file to  look up domains available (vim /etc/dkim-filter.conf)</p>
<p style="padding-left: 30px;"><strong><span style="color: #ff6600;"><code>KeyList                /etc/dkim-keys.conf</code></span></strong></p>
<p style="padding-left: 30px;">
<p>6. Add a inet socket that Postfix can communicate with (vim  /etc/default/dkim-filter)</p>
<p style="padding-left: 60px;"><strong><span style="color: #ff6600;"><code>SOCKET="inet:8891@localhost"</code></span></strong></p>
<p style="padding-left: 60px;">
<p>7. Restart DKIM filter</p>
<p style="padding-left: 60px;"><strong><span style="color: #ff6600;"><code>/etc/init.d/dkim-filter restart</code></span></strong></p>
<p style="padding-left: 60px;">
<p>8. Configure Postfix to query DKIM filter using the socket created  earlier. Add these lines to main.cf (vim /etc/postfix/main.cf)</p>
<p style="padding-left: 60px;"><strong><span style="color: #ff6600;"><code>milter_default_action = accept<br />
milter_protocol = 2<br />
smtpd_milters = inet:localhost:8891<br />
non_smtpd_milters = inet:localhost:8891</code></span></strong></p>
<p style="padding-left: 60px;">
<p>9. Reload Postfix config</p>
<p style="padding-left: 90px;"><strong><span style="color: #ff6600;"><code>postfix reload</code></span></strong></p>
<p style="padding-left: 90px;">
<p><span style="color: #ff6600;"><span style="color: #000000;"><strong>Courtesy: </strong> </span></span>http://www.debiantutorials.net/setup-domainkeys-identified-mail-dkim-in-postfix/<span style="color: #ff6600;"><span style="color: #000000;"> </span><br />
</span></p>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.aarat.com/dkim-for-debian-postfix/' addthis:title='DKIM For Debian + Postfix '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.aarat.com/dkim-for-debian-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

