Steps for re-compiling imap.so 1. Download imap source $ cd ~/Downloads $ wget -c ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz $ rm -rf imap-2007f $ tar xvvfz imap-2007f.tar.gz $ cd imap-2007f $ nano Makefile 2. Find the text osx: and replace SSLINCLUDE=/usr/include/openssl to SSLINCLUDE=/usr/local/opt/openssl/include/openssl osx: osxok an $(TOUCH) ip6 $(BUILD) BUILDTYPE=$@ IP=$(IP6) EXTRAAUTHENTICATORS=”$(EXTRAAUTHENTICATORS) gss” \ SPECIALS=”SSLINCLUDE=/usr/local/opt/openssl/include/openssl SSLLIB=/usr/lib SSLCERTS=/System/Library/OpenSSL/certs SSLKEYS=/System/Library/OpenSSL/private…