Allright, the update for Courier-Auth that solves the bug found when using with Mac OSX is released. There where some other issues that were fixed in the IMAP server and some other small bugs in other parts of the courier software stack that we don’t use in our setup. The bug fixes that concern us are:
- courier-authlib: portability fix for the check of the highest available file descriptor, this is the one we reported on earlier
- imap: Fix crash during ‘make check’ on some platforms
- imap: Avoid a double-fclose in a marginal error condition
I’ve tested these new releases (0.60.2 for Courier-Auth and 4.2.1 for Courier-IMAP) and they work, don’t forget to do a:
after you’ve done a ‘make install’ on the courier-auth daemon.



10:42 pm
Followed the instructions, did a reboot and got the following error in mail.log:
imapd-ssl: couriertls: connect: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
11:22 pm
Switched back to IMAP 4.1.3 and Auth 0.59.3 and it works again.
8:11 pm
I’ve did some googling and testing myself, if you change the line TLS_PROTOCOL=SSL3 into TLS_PROTOCOL=SSL2 in the file /usr/local/etc/imapd-ssl and restart imapd-ssl it should work again.
I will try t find out why !
6:59 pm
Thanks for the fix. Now startup of authdaemond goes past creation of the lock file. But in the mail.log I see the following errors:
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: modules=”authuserdb authpwd authcustom authpipe”, daemons=5
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Installing libauthuserdb
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: dlopen(/opt/local/lib/courier-authlib/libauthuserdb.so, 9): Symbol not found: _auth_userdb
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Referenced from: /opt/local/lib/courier-authlib/libauthuserdb.so
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Expected in: flat namespace
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]:
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Installing libauthpwd
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: dlopen(/opt/local/lib/courier-authlib/libauthpwd.so, 9): Symbol not found: _auth_pwd
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Referenced from: /opt/local/lib/courier-authlib/libauthpwd.so
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Expected in: flat namespace
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]:
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Installing libauthcustom
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: dlopen(/opt/local/lib/courier-authlib/libauthcustom.so, 9): Symbol not found: _auth_custom
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Referenced from: /opt/local/lib/courier-authlib/libauthcustom.so
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Expected in: flat namespace
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]:
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Installing libauthpipe
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: dlopen(/opt/local/lib/courier-authlib/libauthpipe.so, 9): Symbol not found: _auth_pipe
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Referenced from: /opt/local/lib/courier-authlib/libauthpipe.so
Nov 13 09:57:17 Balaji-iMac authdaemond[34335]: Expected in: flat namespace
I thought this was fixed with the upgrade to courier-authlib 0.60
Any help would be appreciated.
8:10 pm
Maybe stupid question, but did you remove the other authdeamons from the configuration file ?
10:43 pm
Sorry what other authdaemons? I just did a simple make install..I had used darwinports to get the original 0.60 version. and then I used make install with the 0.60.2 version to get the latest version in.
10:52 pm
The ones defined in the configuration file ‘/usr/local/etc/authlib/authdaemonrc’, did you change the line:
authmodulelist=”authuserdb authldap authmysql authcustom authpipe”
into
authmodulelist=”authmysql”
As explained in http://diymacserver.com/installing-the-mailserver/the-basic-mailserver/configuring-courier-auth-to-use-mysql/
11:17 pm
I actually want to use authuserdb to do my authentication…
So if I remove everything other than authuserdb I get the following error
Nov 13 14:15:59 Balaji-iMac authdaemond[32971]: modules=”authuserdb”, daemons=5
Nov 13 14:15:59 Balaji-iMac authdaemond[32971]: Installing libauthuserdb
Nov 13 14:15:59 Balaji-iMac authdaemond[32971]: dlopen(/opt/local/lib/courier-authlib/libauthuserdb.0.so, 9): Symbol not found: _auth_userdb
Nov 13 14:15:59 Balaji-iMac authdaemond[32971]: Referenced from: /opt/local/lib/courier-authlib/libauthuserdb.0.so
Nov 13 14:15:59 Balaji-iMac authdaemond[32971]: Expected in: flat namespace
Nov 13 14:15:59 Balaji-iMac authdaemond[32971]:
If i try to put authmysql then it complains about
Nov 13 14:16:41 Balaji-iMac authdaemond[32988]: dlopen(libauthmysql.so, 9): image not found
I would rather not go down that route.
8:51 pm
I’m sorry, I can’t help you there. This is beyond me. Please try the Courier auth mailing list. They are extremely helpfull: http://lists.sourceforge.net/lists/listinfo/courier-users
8:09 pm
Hi Richard
Looks like the solution to this problem is same as whats outlined in
http://diymacserver.com/forum/topic/88
ie. set export MACOSX_DEPLOYMENT_TARGET=10.5
and then configure, make and make install.
Thanks for your help
Balaji