Upgrading Courier-IMAP is usually a very simple exercise. Configure, compile and install usually does it. It’s what you must not forget afterwards that really makes it work.

So first get the latest source code. Unpack it in your regular install directory. Use the installation instructions that reflect your situation:

Follow them and come back to this page when your done.

If the ‘make‘ and ‘sudo make install‘ all finished without an error code you are ready to restart the Courier-IMAP server. You can do that by rebooting your computer but just restarting the IMAP server is a more elegant solution.

If you don’t use IMAP over SSL use:
sudo /usr/local/libexec/imapd.rc stop
sudo /usr/local/libexec/imapd.rc start

If you do use IMAP over SSL use:
sudo /usr/local/libexec/imapd-ssl.rc stop
sudo /usr/local/libexec/imapd-ssl.rc start

A test you can perform is to restart your mail client. After restarting it should login to your IMAP mail server which should work.

If something fails or goes wrong, just go to the source directory of the previous installed version. execute the following commands and you’re back running the previous version:

If you don’t use IMAP over SSL use:
sudo make install
sudo /usr/local/libexec/imapd.rc stop
sudo /usr/local/libexec/imapd.rc start

If you do use IMAP over SSL use:
sudo make install
sudo /usr/local/libexec/imapd-ssl.rc stop
sudo /usr/local/libexec/imapd-ssl.rc start