10.3: Using WU-IMAP with SSL and xinetd revisited

Dec 09, '03 09:51:00AM

Contributed by: cilly

Changing the password authentication sheme in NetInfo as described in this hint is not a good solution, since it will only last till the next password change, and lower the security level of your system. So, I decided to post additional info related to another earlier hint: Using WU-IMAP with SSL and xinetd on 10.2.

In Mac OS X Panther, the security authentication sheme changed and PAM authentication was added. Since IMAP is, by default, compiled without password type PAM, we just need to change it to PAM in the source. It is done by editing the file Makefile in the source. Change the password type to PASSWDTYPE=pam before you type make osx. You need to create a symlink befor you type make osx, too:

 % cd /usr/include/
 % sudo ln -s pam security
Now you need to setup PAM authentication for IMAP; simply type:
 % sudo cp /etc/pam.d/ftpd /etc/pam.d/imap
And if you want to use POP3, too, do this:
 % sudo cp /etc/pam.d/ftpd /etc/pam.d/pop3
Now, you can type:
 % make osx SSLTYPE=unix SSLDIR=/usr SSLCERTS=/System/Library/OpenSSL/certs
and continue with the original hint's instructions.

Comments (11)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20031202115248100