Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Email Quick Start


A quick and easy installation will have you up and running with a Maildir-based mail system, supplemented with IMAP access, and a web-based email client.

Configure https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=exim4exim4 to deliver email to a user's Maildir folder in their home directory. This requires reconfiguring the https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=exim4-configexim4-config package which will take care of writing the correct configuration files (e.g. /etc/exim4/update-exim4.conf.conf). The aim is to set:

  LOCAL_DELIVERY=maildir_home

https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=Exim4Exim4 creates the approriate Maildir folder and structure under the user's accounts as required. See Section 23.2.1 for more details on using https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=eximexim.

Next, install https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=courier-imapcourier-imap. This will then set up a server (on port 143) to deliver IMAP and any user in the password file can connect. Using mutt the server is imap://localhost/. For a secure IMAP server install https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=courier-imap-sslcourier-imap-ssl (which then uses port 993) and to access from mutt use imaps://localhost:993/inbox. If the IMAP server is only being used on a small local network (like at home) with access to it provided through a web mail tool (like https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=squirrelmailsquirrelmail) through a secure web server (using https, such as https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=apache-sslapache-ssl), then https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=courier-imap-sslcourier-imap-ssl is probably not required (since you would access the https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=squirrelmailsquirrelmail server through https, not your imap server)!

Now install https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=squirrelmailsquirrelmail and you can then log in to your IMAP server from any web browser (https://localhost/squirrelmail). Be sure that your apache-ssl server has index.php on it's list of DirectoryIndex files in /etc/apache-ssl/httpd.conf. You may also need to have some PHP packages installed, in particular https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=php4-cgiphp4-cgi. If the INBOX link of the SuirrelMail page is not active, edit /etc/squirrelmail/config.php to set:

  $oldway = true;

Copyright © 1995-2019 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.