Upgrading Courier-Auth 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 for the next step:

sudo chmod o+x /usr/local/var/spool/authdaemon

If you don’t do this you will get the error: ‘SASL authentication failure: cannot connect to Courier authdaemond: Permission denied.

Then you are ready to restart the Courier-Auth daemon. You can do that by rebooting your computer but just restarting the daemon is a more elegant solution.

sudo /usr/local/sbin/authdaemond stop
sudo /usr/local/sbin/authdaemond start

To check if everything worked you could check the mail log file in ‘/var/log/mail.log‘ at the last part it should say something like:

May 10 11:41:26 authdaemond[66]: stopping authdaemond children
May 10 11:42:06 authdaemond[71664]: modules=”authmysql”, daemons=3
May 10 11:42:06 authdaemond[71664]: Installing libauthmysql
May 10 11:42:06 authdaemond[71664]: Installation complete: authmysql

Another test you can perform is to restart your mail client. After restarting it should login to your IMAP mail server which should work. Sending an email will test the use of courier-auth by postfix.

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:

sudo make install
sudo chmod o+x /usr/local/var/spool/authdaemon
sudo /usr/local/sbin/authdaemond stop
sudo /usr/local/sbin/authdaemond start