<?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>Thu, 09 Dec 2010 03:56:11 +1100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: How to install dkim for postfix in centos 5.4 - - Coding Answers</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-895</link>
		<dc:creator>How to install dkim for postfix in centos 5.4 - - Coding Answers</dc:creator>
		<pubDate>Thu, 09 Dec 2010 03:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-895</guid>
		<description>[...] I am trying to install DKIM for my postfix so that i have a signature. I am following this guide: http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/ [...]</description>
		<content:encoded><![CDATA[<p>[...] I am trying to install DKIM for my postfix so that i have a signature. I am following this guide: <a href="http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/" rel="nofollow">http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to install dkim for postfix in centos 5.4 &#124; DeveloperQuestion.com</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-894</link>
		<dc:creator>How to install dkim for postfix in centos 5.4 &#124; DeveloperQuestion.com</dc:creator>
		<pubDate>Thu, 09 Dec 2010 00:43:43 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-894</guid>
		<description>[...] Tags: DKIM, ftp    I am trying to install DKIM for my postfix so that i have a signature. I am following this guide: http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Tags: DKIM, ftp    I am trying to install DKIM for my postfix so that i have a signature. I am following this guide: <a href="http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/" rel="nofollow">http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-611</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Wed, 16 Jun 2010 19:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-611</guid>
		<description>After extensive test, I found out the magic number of 990 for my php mail() stop working on dkim error “dkim=neutral (body hash did not verify)”

It turns out to be the configure of postfix limit of 990 and automatically add some line break after the 990th character, which caused the dkim fail.

lmtp_line_length_limit (default: 990)

    The LMTP-specific version of the smtp_line_length_limit configuration parameter. See there for details.

    This feature is available in Postfix 2.3 and later.</description>
		<content:encoded><![CDATA[<p>After extensive test, I found out the magic number of 990 for my php mail() stop working on dkim error “dkim=neutral (body hash did not verify)”</p>
<p>It turns out to be the configure of postfix limit of 990 and automatically add some line break after the 990th character, which caused the dkim fail.</p>
<p>lmtp_line_length_limit (default: 990)</p>
<p>    The LMTP-specific version of the smtp_line_length_limit configuration parameter. See there for details.</p>
<p>    This feature is available in Postfix 2.3 and later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-545</link>
		<dc:creator>Amy</dc:creator>
		<pubDate>Fri, 04 Jun 2010 16:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-545</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: skyhorse</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-542</link>
		<dc:creator>skyhorse</dc:creator>
		<pubDate>Fri, 04 Jun 2010 03:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-542</guid>
		<description>Henry Hughes is right, I have tried with openssl many times but getting hardfail with google.
After changing to dkim-genkey, I got passed.

Thank you alot for this post.</description>
		<content:encoded><![CDATA[<p>Henry Hughes is right, I have tried with openssl many times but getting hardfail with google.<br />
After changing to dkim-genkey, I got passed.</p>
<p>Thank you alot for this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emily</title>
		<link>http://allaboutlamp.com/2009/09/setup-dkim-for-postfix-in-fedora-using-dkim-milter/comment-page-1/#comment-517</link>
		<dc:creator>Emily</dc:creator>
		<pubDate>Tue, 01 Jun 2010 09:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://allaboutlamp.com/?p=1#comment-517</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: 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>
</channel>
</rss>

