Installing SquirrelMail with apt-get
SquirrelMail can be installed using apt-get on Debian or Ubuntu. To do so you must first install and configure Apache (version 1 or 2, not both) and an IMAP server. Both of these topics are beyond the scope of this document, but Google is your friend.
Once you have a web server and an IMAP server installed and running, you can install SquirrelMail with the following:
apt-get install squirrelmail squirrelmail-locales
If you only have English-speaking users, you can omit the squirrelmail-locales package. SquirrelMail configuration files will be in /etc/squirrelmail; the source tree will be in /usr/share/squirrelmail. After the installation, you must configure SquirrelMail:
This will help you configure SquirrelMail. Configure SquirrelMail to your liking.
Finally, you must configure Apache to tell it where SquirrelMail is located. To do this, you need to link /etc/squirrelmail/apache.conf into /etc/apache2/conf.d:
ln -s /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf
Note that the target directory for the link may vary depending on which version of Apache you installed. The above example assumes you installed Apache 2.
Restart Apache. At this point you should be able to view SquirrelMail by pointing your web browser to:
For more detailed instructions: