<?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>jeremykendall.net &#187; ssl</title>
	<atom:link href="http://www.jeremykendall.net/tag/ssl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeremykendall.net</link>
	<description>{web developer, entrepreneur }</description>
	<lastBuildDate>Fri, 23 Jul 2010 19:18:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mail Notification 5.0 with SSL in Ubuntu</title>
		<link>http://www.jeremykendall.net/2008/02/14/mail-notification-50-with-ssl-in-ubuntu/</link>
		<comments>http://www.jeremykendall.net/2008/02/14/mail-notification-50-with-ssl-in-ubuntu/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 22:24:22 +0000</pubDate>
		<dc:creator>Jeremy Kendall</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://dev.jeremykendall.net/wp/?p=8</guid>
		<description><![CDATA[The Problem
We recently began using SSL to connect to IMAP at work.  Prior to switching to SSL I had been using the excellent Mail Notification to let me know if I had any messages in my inbox.   As soon as we switched over to SSL, Mail Notification quit alerting me to the [...]]]></description>
			<content:encoded><![CDATA[<p><b>The Problem</b></p>
<p>We recently began using SSL to connect to IMAP at work.  Prior to switching to SSL I had been using the excellent <a href="http://www.nongnu.org/mailnotify/">Mail Notification</a> to let me know if I had any messages in my inbox.   As soon as we switched over to SSL, Mail Notification quit alerting me to the presence of new email.</p>
<p>I figured that all I had to do was change my preferences in Mail Notification and select SSL.  Turns out I was right, except I couldn&#8217;t select SSL &#8211; all of the &#8220;SSL/TSL&#8221; options were grayed out.  Why in the world would that be?  After some research I discovered that:</p>
<ul>
<li>SSL isn&#8217;t available if the package was built without SSL support (makes sense)</li>
<li>The OpenSSL license conflicts with the Debian license</li>
</ul>
<p>Mail Notification <i>is</i> available in the Ubuntu repository, but without SSL support.  Bummer.</p>
<p><b>Build it Yourself</b></p>
<p>The resolution is to build Mail Notification with SSL support enabled, but I quickly discovered that building Mail Notification was not as easy as I thought it would be.  Although the installation is well documented in the INSTALL file, I still ran into a lot of problems with dependencies.</p>
<p><b>Dependencies Required</b></p>
<p>After a lot of troubleshooting and not a little frustration, I came up with a list of dependencies that I needed installed in order to configure and make Mail Notification 5.0 on Ubuntu Gutsy:</p>
<ul>
<li>build-essential</li>
<li>gnome-core-devel</li>
<li>libnotify-dev</li>
<li>libgnome2-dev</li>
<li>libgmime-2.0-2-dev</li>
<li>libssl-dev</li>
</ul>
<p>I used the Synaptic Package Manager to install each of these dependencies.  Read on if you&#8217;re looking to troubleshoot a specific error that you&#8217;re running into.</p>
<p><b>Errors and Troubleshooting</b></p>
<p>The first time I ran</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ ./configure</pre></div></div>

<p> I got this error:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.</pre></div></div>

<p>Installing <b>build-essential</b> took care of the C compiler issue, but I found a new one the next time I ran configure:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Error: checking for GNOME... no
configure: error: unable to find the GNOME libraries</pre></div></div>

<p>This one drove me a little batty.  What does it mean it can&#8217;t find the GNOME libraries?  I&#8217;m running GNOME for Pete&#8217;s sake!  After a decent amount of hair pulling and a seemingly endless amount of Googling, I finally found that <b>gnome-core-devel</b>, <b>libnotify-dev</b>, and <b>libgnome2-dev</b> resolved the</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">unable to find the GNOME libraries</pre></div></div>

<p> error.</p>
<p>Next up was the GMIME error:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">checking for GMIME... configure: error: Package requirements (gmime-2.0 &gt;= 2.1.0) were not met:
&nbsp;
No package 'gmime-2.0' found</pre></div></div>

<p>At least by now I was making it most of the way through the</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">configure</pre></div></div>

<p> process.  I found that installing <b>libgmime-2.0-2-dev</b> resolved the issue, finally allowing me to complete the configuration.</p>
<p>Of course, the whole point was to build Mail Notify with SSL support.  What do you think I found when configure finally ran all of the way through?  Down at the bottom of the options list, I saw this:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">--enable-ssl                 no (OpenSSL not found)</pre></div></div>

<p>By now, I had started seeing a pattern: look up the dependencies, find their dev libraries, install their dev libraries, and voila, on to the next issue.  With that in mind, I installed <b>libssl-dev</b> and ran</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ ./configure</pre></div></div>

<p> one last time.  Mail Notify configured without errors and with SSL support.  A quick</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">make</pre></div></div>

<p> and</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">make install</pre></div></div>

<p> later and I had a Mail Notify 5.0 installation complete with SSL support.</p>
<p><b>Other Options</b></p>
<p>There seem to be a lot of different ways to skin this particular cat.  The solution above is what worked for me, your mileage may vary.  You may find it useful to refer to the discussion in this <a href="https://bugs.launchpad.net/ubuntu/+source/mail-notification/+bug/44335">related bug report</a> for background.  </p>
<p>For another way to resolve this issue, you might try &#8220;<a href="http://www.howtoforge.com/repackage_deb_packages_debian_ubuntu">How to make a small change to a Debian tool and repackage it.</a>&#8221;  I didn&#8217;t find this article until after I had resolved the issue myself, but it looks like it might be a lot simpler.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeremykendall.net/2008/02/14/mail-notification-50-with-ssl-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
