###***************** David Harris ********************** cd /usr/local/src/courier-imap-1.7.1 ## install courier-imap binaries ## -- ## we must compile as a user, but we also need to read the vpopmail ## libraires, so we use the vpopmail user. this is the reason for the ## chown, chmod and su commands. ## -- ## This installs into /usr/lib/courier-imap (the default location) chown -R vpopmail:vchkpw . chown -R root:vchkpw /var/spool/vpopmail/lib chmod -R 750 /var/spool/vpopmail/lib su vpopmail -c './configure \ --without-authdaemon --without-authcram --without-authldap \ --without-authmysql --without-authpgsql \ --without-authcustom --with-authvchkpw ' su vpopmail -c 'make' su vpopmail -c 'make check' make install make install-configure chown -R root:root . chown -R root:root /var/spool/vpopmail/lib chmod -R 700 /var/spool/vpopmail/lib ## create dummy certificates ( cd /usr/lib/courier-imap/share; ./mkimapdcert ) ## setup log directories mkdir /var/log/qmail/courier-imap chown qmaill:nofiles /var/log/qmail/courier-imap chmod 755 /var/log/qmail/courier-imap mkdir /var/log/qmail/courier-imap-ssl chown qmaill:nofiles /var/log/qmail/courier-imap-ssl chmod 755 /var/log/qmail/courier-imap-ssl cd .. cp -R courier-imap-service/courier-imap /service cp -R courier-imap-service/courier-imap-ssl /service ## modify qmailctl to take care of courier-imap patch /var/qmail/bin/qmailctl qmailctl-courierimap.patch # or something like: cp qmailctl-courierimap /var/qmail/bin/qmailctl ## install squirrelmail cd /var/www/vs/www.jim.net/cgi-bin tar xzf /usr/local/src/squirrelmail-1.2.11.tar.gz rm squirrelmail/config/config.php cp /usr/share/squirrelmail/config/config.php squirrelmail/config/config.php # to: /etc/httpd/conf/httpd.conf # add: Alias /squirrelmail /var/www/vs/www.jim.net/cgi-bin/squirrelmail cd squirrelmail/config ./conf.pl # Set the server settings to: # # Server Settings # 1. Domain : localhost # 2. IMAP Server : localhost # 3. IMAP Port : 143 # 4. Use Sendmail/SMTP : Sendmail # 5. Sendmail Path : /usr/sbin/sendmail # 10. Server : courier # 11. Invert Time : false # 12. Delimiter : detect # # Set the folder defaults to: # # Folder Defaults # 1. Default Folder Prefix : # 2. Show Folder Prefix Option : false # 3. Trash Folder : INBOX.Trash # 4. Sent Folder : INBOX.Sent # 5. Drafts Folder : INBOX.Drafts # 6. By default, move to trash : true # 7. By default, move to sent : true # 8. By default, save as draft : true # 9. List Special Folders First : true # 10. Show Special Folders Color : true # 11. Auto Expunge : true # 12. Default Sub. of INBOX : true # 13. Show 'Contain Sub.' Option : false # 14. Default Unseen Notify : 2 # 15. Default Unseen Type : 1 # 16. Auto Create Special Folders : true # 17. Don't move folders into Trash : false # 18. Enable /NoSelect folder fix : false # or copy an existing config.php from one squirrelmail/config directory to another cd /usr/local/src