The DigitalPimp
Ben Pfountz |
Note: courier-imap is an imap interface, which allows reading email while it is left on the server. Works with your standard readers, such as outlook-express and netscape/thunderbird.
Note: At the time of this (original) writing, the port for courier-imap was broken, so I have always just installed from the source.
Note: this port uses expect, install expect from the ports first for added functionality:
Install expect from ports: cd /usr/ports/lang/expect make install WITHOUT_X11=yes make clean
Install from the source code: Download the tar.gz, unzip, and cd into the source folder As a normal user, run the following commands: ./configure \ --without-ipv6 \ --without-module-authuserdb \ --without-module-authcram \ --without-module-authvchkpw \ --without-module-authldap \ --without-module-authmysql \ --without-module-authpgsql \ --without-module-authcustom gmake gmake check su to root, and run the following commands gmake install gmake install-configure
Define Plugable Authentication Module (PAM) for imapd in /etc/pam.conf:
Note: You dont need the pop3 lines if you dont want to run pop3 server. Note: You should have to remark out some current imap and pop3 lines.
Check the startup script: cp /usr/lib/courier-imap/libexec/imapd.rc /usr/local/etc/rc.d/imapd.sh cp /usr/lib/courier-imap/libexec/imapd-ssl.rc /usr/local/etc/rc.d/imapd-ssl.sh
Check the config files: cd /usr/lib/courier-imap/etc move *.dist to backup folder
Configuration files and changes to make:
Note: Use the LAN IP address for your imap server, and 0 for the imap-ssl server.
Now you need to generate the ssl certificate: cd /usr/lib/courier-imap/share ./mkimapdcert
NOTE: You may have extra authdaemond daemons running, check /usr/lib/courier-imap/libexec/authlib and 'chmod a-x' the ones you dont need. |
|