<?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/"
	xmlns:georss="http://www.georss.org/georss" >

<channel>
	<title>Even the wrong words seem to rhyme &#187; imap</title>
	<atom:link href="http://www.kevinblake.co.uk/tag/imap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kevinblake.co.uk</link>
	<description>a blog-life by Kevin Blake</description>
	<lastBuildDate>Thu, 13 May 2010 22:27:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Upgrading Fedora 8 to Fedora 9</title>
		<link>http://www.kevinblake.co.uk/upgrading-fedora-8-to-fedora-9/171/</link>
		<comments>http://www.kevinblake.co.uk/upgrading-fedora-8-to-fedora-9/171/#comments</comments>
		<pubDate>Sat, 17 May 2008 18:07:17 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cyrus]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.kevinblake.co.uk/?p=171</guid>
		<description><![CDATA[It&#8217;s time for another Fedora upgrade. Whilst the installations aren&#8217;t necessarily getting any better &#8211; fixing them is becoming a bit faster, because the problems are pretty similar every time and these notes I&#8217;m keeping are helping. System won&#8221;t boot. Met with a grub&#62; prompt, and no menu Boot the system from the DVD again, [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s time for another Fedora upgrade.  Whilst the installations aren&#8217;t necessarily getting any better &#8211; fixing them is becoming a bit faster, because the problems are pretty similar every time and these notes I&#8217;m keeping are helping.</p>
<div class="entry">
<div id="post_content_153" class="post_content">
<ol>
<li><strong>System won&#8221;t boot. Met with a grub&gt; prompt, and no menu</strong>
<ul>
<li>Boot the system from the DVD again, and select &#8220;rescue an install system&#8221;.</li>
<li>&#8216;chroot /mnt/sysimage/&#8217;</li>
<li>&#8220;nano /boot/grub/grub.conf&#8221;</li>
<li>Change this line, &#8220;root (hd2,0)&#8221; to root &#8220;(hd0,0)&#8221;.  (I&#8217;m not sure why Grub seems incapable of finding the right hard drive to boot from each time&#8230; It doesn&#8217;t change.)</li>
<li>Uncomment the line at the top #boot</li>
</ul>
</li>
<li><strong>Cyrus imapd won&#8221;t start.  Complaining of libcrypto.so.6 library missing.</strong>
<ul>
<li>Upgrade Cyrus &#8211; &#8220;yum upgrade -y cyrus&#8221;</li>
<li>Restart the service &#8211; &#8216;service cyrus-imapd restart&#8217;</li>
</ul>
</li>
<li><strong>Rss2imap no longer posts the messages into Cyrus IMAPD</strong>
<ul>
<li>Difficult to place the blame on this one.  One turning on Rss2imap debug mode, I see i@m getting the error &#8216;Message contains bare newlines&#8217;, and although Rss2imap has posted the message.  It&#8217;s been discarded by Cyrus.  This is actually proper RFC behaviour for Cyrus &#8211; as message&#8217;s shouldn&#8217;t contain the broken &#8216;\n&#8217; character, but rather &#8216;\r\n&#8217;.  At the same time, I also think, &#8216;so what?&#8217;.  Either way, the Cyrus behaviour has changed, or Mail::IMAPClient modules have.</li>
<li>So the fix&#8230; Edit Rss2imap\RSS2IMAPLIB\Rss2imap.pm, and add the bold text.<br />
<code> &nbsp;my $message = ($headers . $body);<br />
<strong> $message =~ s/\n/\r\n/g;</strong><br />
utf8::encode ( $message );<br />
</code><br />
and<br />
<code> &nbsp;my $folder = $this-&gt;get_real_folder_name ($this-&gt;{'last-modified-folder'});<br />
<strong> $body =~ s/\n/\r\n/g;</strong><br />
$this-&gt;{imap}-&gt;append_string ($folder, $body);</code></p>
<p>You&#8217;ll notice we&#8217;ve replaced all the \n line endings with the more correct \r\n.  Let&#8217;s just hope we don&#8217;t have to undo that later when the problem gets resolved elsewhere <img src='http://www.kevinblake.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
</li>
</ol>
<p>Remarkably, this was the first time the wireless card started up immediately after the upgrade, perhaps things are improving after all <img src='http://www.kevinblake.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.kevinblake.co.uk/upgrading-fedora-8-to-fedora-9/171/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cyrus Certificate Authentication</title>
		<link>http://www.kevinblake.co.uk/cyrus-certificate-authentication/52/</link>
		<comments>http://www.kevinblake.co.uk/cyrus-certificate-authentication/52/#comments</comments>
		<pubDate>Sun, 18 Dec 2005 16:37:22 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cyrus]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://blog.puzzlebox.co.uk/?p=52</guid>
		<description><![CDATA[This is probably of no interest to anyone whatsoever. Except me, in a few months time when I try and configure another mail server &#8211; and can&#8217;t remember how to generate certificates for Windows. So first off, create the certificates for your Cyrus IMAP server (you&#8217;ve already set all that up, right?) openssl req -new [...]]]></description>
			<content:encoded><![CDATA[<p>This is probably of no interest to anyone whatsoever.  Except me, in a few months time when I try and configure another mail server &#8211; and can&#8217;t remember how to generate certificates for Windows.</p>
<p>So first off, create the certificates for your Cyrus IMAP server (you&#8217;ve already set all that up, right?)</p>
<p><code>openssl req -new -nodes -out req.pem -keyout key.pem<br />
openssl rsa -in key.pem -out new.key.pem<br />
openssl x509 -in req.pem -out ca-cert -req \<br />
-signkey new.key.pem -days 999<br />
mkdir /var/imap<br />
cp new.key.pem /var/imap/server.pem<br />
rm new.key.pem<br />
cat ca-cert &gt;&gt; /var/imap/server.pem<br />
chown cyrus:mail /var/imap/server.pem<br />
chmod 600 /var/imap/server.pem # Your key should be protected<br />
echo tls_ca_file: /var/imap/server.pem &gt;&gt; /etc/imapd.conf<br />
echo tls_cert_file: /var/imap/server.pem &gt;&gt; /etc/imapd.conf<br />
echo tls_key_file: /var/imap/server.pem &gt;&gt; /etc/imapd.conf<br />
</code></p>
<p>Then generate the certificate for the client.</p>
<p><code>openssl pkcs12 -export -in server.pem -inkey server.pem -out iestuff.p12</code></p>
<p>You&#8217;ll need to add that iestuff to your trusted certificates &#8211; but that&#8217;s pretty much it <img src='http://www.kevinblake.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   No more annoying messages from Outlook.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevinblake.co.uk/cyrus-certificate-authentication/52/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
