<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to Setup DKIM for Postfix in Fedora using dkim-milter</title>
	<atom:link href="http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/feed/" rel="self" type="application/rss+xml" />
	<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/</link>
	<description>Create web applications with Linux, Apache, MySQL, PHP and other open source technologies</description>
	<lastBuildDate>Fri, 02 Jul 2010 14:40:24 +1000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel Lam</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-410</link>
		<dc:creator>Daniel Lam</dc:creator>
		<pubDate>Sat, 15 May 2010 02:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-410</guid>
		<description>Thanks for the information! Appreciate it!</description>
		<content:encoded><![CDATA[<p>Thanks for the information! Appreciate it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThomasRutter</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-386</link>
		<dc:creator>ThomasRutter</dc:creator>
		<pubDate>Thu, 06 May 2010 14:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-386</guid>
		<description>Trailing blank lines seems to do it too.  Looks like we have to be careful about filtering our mail before submitting it to PHP&#039;s mail() function.  I expect there to be other things that trip it up.

I think I&#039;ll abstract it out with a library.</description>
		<content:encoded><![CDATA[<p>Trailing blank lines seems to do it too.  Looks like we have to be careful about filtering our mail before submitting it to PHP&#8217;s mail() function.  I expect there to be other things that trip it up.</p>
<p>I think I&#8217;ll abstract it out with a library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThomasRutter</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-385</link>
		<dc:creator>ThomasRutter</dc:creator>
		<pubDate>Thu, 06 May 2010 14:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-385</guid>
		<description>The &quot;did not verify&quot; problem when using PHP seems to be caused by email bodies containing the &quot;\r&quot; character.  That is, a carraige return.  Postfix&#039;s sendmail implementation expects line breaks to be &quot;\n&quot; only.

Stripping these out before using mail() fixed the problem for me, and all emails verify DKIM properly with PHP posting to sendmail-&gt;postfix-&gt;dkim-filter

I&#039;ve seen problems before with PHP sending mail with &quot;\r\n&quot; instead of &quot;\n&quot;.  It&#039;s strange, because email itself wants &quot;\r\n&quot;, however PHP (or sendmail) seems to expect &quot;\n&quot; only.  Not sure how this affects things if you&#039;ve configured PHP not to use sendmail.

My guess is that PHP or sendmail is converting line breaks before dkim-filter, and dkim-filter sees a version with incorrect &quot;\r\r\n&quot; line breaks, then these are stripped out when the mail is transmitted, breaking DKIM&#039;s signature.  Unfortunately dkim-filter&#039;s &quot;relaxed&quot; body verification doesn&#039;t mitigate this problem as it deals only with whitespace within a line - position and type of line breaks ignored.</description>
		<content:encoded><![CDATA[<p>The &#8220;did not verify&#8221; problem when using PHP seems to be caused by email bodies containing the &#8220;\r&#8221; character.  That is, a carraige return.  Postfix&#8217;s sendmail implementation expects line breaks to be &#8220;\n&#8221; only.</p>
<p>Stripping these out before using mail() fixed the problem for me, and all emails verify DKIM properly with PHP posting to sendmail-&gt;postfix-&gt;dkim-filter</p>
<p>I&#8217;ve seen problems before with PHP sending mail with &#8220;\r\n&#8221; instead of &#8220;\n&#8221;.  It&#8217;s strange, because email itself wants &#8220;\r\n&#8221;, however PHP (or sendmail) seems to expect &#8220;\n&#8221; only.  Not sure how this affects things if you&#8217;ve configured PHP not to use sendmail.</p>
<p>My guess is that PHP or sendmail is converting line breaks before dkim-filter, and dkim-filter sees a version with incorrect &#8220;\r\r\n&#8221; line breaks, then these are stripped out when the mail is transmitted, breaking DKIM&#8217;s signature.  Unfortunately dkim-filter&#8217;s &#8220;relaxed&#8221; body verification doesn&#8217;t mitigate this problem as it deals only with whitespace within a line &#8211; position and type of line breaks ignored.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Lam</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-100</link>
		<dc:creator>Daniel Lam</dc:creator>
		<pubDate>Thu, 31 Dec 2009 04:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-100</guid>
		<description>Good to know that it helped! Regarding the use of openssl - that was just because I was not aware of the dkim-genkey tool. Thanks for pointing out!</description>
		<content:encoded><![CDATA[<p>Good to know that it helped! Regarding the use of openssl &#8211; that was just because I was not aware of the dkim-genkey tool. Thanks for pointing out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Hughes</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-33</link>
		<dc:creator>Henry Hughes</dc:creator>
		<pubDate>Tue, 24 Nov 2009 17:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-33</guid>
		<description>Brilliant article. Had me up and running on my test rig in no time, thank you.

I&#039;m curious as to why you mention using openssl command to create the keys, when you can use the utilities that comes with dkim-milter itself, eg:

/usr/sbin/dkim-genkey -r -d mydomain.com

This outputs 2 files, private and the exact string for TXT dns record.

Incidentally, a bug has been reported regarding the permisions problem with the .sock file:
https://bugzilla.redhat.com/show_bug.cgi?id=527423
... unsolved as yet.</description>
		<content:encoded><![CDATA[<p>Brilliant article. Had me up and running on my test rig in no time, thank you.</p>
<p>I&#8217;m curious as to why you mention using openssl command to create the keys, when you can use the utilities that comes with dkim-milter itself, eg:</p>
<p>/usr/sbin/dkim-genkey -r -d mydomain.com</p>
<p>This outputs 2 files, private and the exact string for TXT dns record.</p>
<p>Incidentally, a bug has been reported regarding the permisions problem with the .sock file:<br />
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=527423" rel="nofollow">https://bugzilla.redhat.com/show_bug.cgi?id=527423</a><br />
&#8230; unsolved as yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Setting up SPF, SenderID and DKIM on Centos 5.3 using sendmail &#124; Mixu&#8217;s blog</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-8</link>
		<dc:creator>Setting up SPF, SenderID and DKIM on Centos 5.3 using sendmail &#124; Mixu&#8217;s blog</dc:creator>
		<pubDate>Tue, 03 Nov 2009 16:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-8</guid>
		<description>[...] Postfix, use these instructions from All About LAMP. If you want to use sendmail as I did, here are my additional [...]</description>
		<content:encoded><![CDATA[<p>[...] Postfix, use these instructions from All About LAMP. If you want to use sendmail as I did, here are my additional [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: All About LAMP &#187; How to Prevent Emails Sent from Web Server to be Marked as SPAM</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-2</link>
		<dc:creator>All About LAMP &#187; How to Prevent Emails Sent from Web Server to be Marked as SPAM</dc:creator>
		<pubDate>Tue, 29 Sep 2009 17:36:15 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-2</guid>
		<description>[...] to this article for implementation details of [...]</description>
		<content:encoded><![CDATA[<p>[...] to this article for implementation details of [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

