MySQL issue after upgrading from Courier-Imap 3 to 4

Along with CentOS 4.2 came MySQL 4.1, great news ! BUT…

My old Courier-Imap version was only compatible with MySQL 3.x..

I had to upgrade to Courier-imap 4. My buddy kindly compiled the packages for me and published it on his repository :

A few issue then came up with my imap configuration, I noticed a few changes had been made to Courier-Imap about MySQL connectivity..

As explained here, mysql configuration files of courier used to be under /usr/lib/courier-imap/etc..

The new version of courier requires the files to be located under /etc/authlib or courier will just complain about not being reachable :

authdaemond: failed to connect to mysql server (, userid=admin): Unknown MySQL serv)

You just need to move your configuration files into the new directory and you are done.. It took me 20 minutes to figure out the relocation of the files :)

More info :

Thanks for reading this post!

If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!