This document outlines the process for configuring an Elemental Linux Server (ELS) system for web-based email using SquirrelMail.
These instructions assume that you have already configured a working email server and PHP-enabled web server. If you have not, please review the ELS Howto: Remote Mail and the ELS Howto: Apache PHP before beginning this document.
You will also need to install the perl package from the ELS CD-ROM's /extra directory. This is required to run the SquirrelMail configuration utility.
SquirrelMail is a PHP application, so there is nothing to be compiled. You simply unpack the latest version into your web server's root directory and create a couple of directories.
The following example shows how you might install SquirrelMail if your web server's document root is /home/httpd.
cd ~ wget http://prdownloads.sourceforge.net/squirrelmail/squirrelmail-1.4.20.tar.gz cd /home/httpd tar -zxf ~/squirrelmail-1.4.20.tar.gz ln -s squirrelmail-1.4.20 mail mkdir -p /var/opt/squirrelmail/data mkdir -p /var/opt/squirrelmail/attach chgrp daemon /var/opt/squirrelmail/data chgrp daemon /var/opt/squirrelmail/attach chmod 770 /var/opt/squirrelmail/data chmod 770 /var/opt/squirrelmail/attach
The following steps are for a very basic configuration. For more options, see the SquirrelMail documentation.
The following example shows how you might configure your SquirrelMail installation.
cd /home/httpd/squirrelmail-1.4.20 ./configure Main Menu Command >> 2 Server Settings Command >> 1 [example.com]: localnet.lan Server Settings Command >> 3 Your choice [1/2] [2]: 1 Server Settings Command >> a IMAP Settings Command >> 8 [other]:uw IMAP Settings Command >> r Main Menu Command >> 3 Folder Defaults Command >> 3 [INBOX.Trash]: Trash Folder Defaults Command >> 4 [INBOX.Sent]: Sent Folder Defaults Command >> 5 [INBOX.Trash]: Drafts Folder Defaults Command >> r Main Menu Command >> 4 General Options Command >> 1 [/var/local/squirrelmail/data/]: /var/opt/squirrelmail/data/ General Options Command >> 2 [/var/local/squirrelmail/attach/]: /var/opt/squirrelmail/attach/ General Options Command >> r Main Menu Command >> s Main Menu Command >> q
If you have follow all the steps above and things are not working out with the configuration test, try the following:
For additional help, consult the SquirrelMail documentation.
There are many plugins available to customize your installation of SquirrelMail. The official ones can be downloaded from http://squirrelmail.org/plugins.php. Message Flags & Icons is a particularly nice one that adds some simple graphics to the otherwise text-only interface.