SquirrelMail is an open source standards-based webmail package written in PHP. When installed, SquirrelMail is ready out of the box. All it needs is an installed web server like Apache, SMTP server like Postfix, and IMAP server like Dovecot.
1. Install squirrelmail using the command below.
sudo apt-get install squirrelmail
2. Add SquirrelMail into Apache using the commands below.
sudo cp /etc/squirrelmail/apache.conf /etc/apache2/sites-available/squirrelmail
sudo a2ensite squirrelmail
sudo service apache2 restart
3. If you encounter an error regarding apache being not able to determine the server’s fully qualified domain name, then use the command below to fix it.
echo ServerName $HOSTNAME | sudo tee /etc/apache2/conf.d/servername
4. Launch the SquirrelMail Configuration
utility using the command below.
5. Type in D
and press Enter
to select the Set pre-defined settings for specific IMAP servers
menu. Type in dovecot
and press Enter
. Save your changes when you are done.
I recommend installing the Retrieve User Data plugin
so the user’s name will appear whenever he or she sends an email in SquirrelMail.
6. Launch your browser and type in http://mail.acme.local/squirrelmail
. Replace mail.acme.local
with your own server name. Type in a valid username and password and click Login
7. That’s it, it’s working.
If you encounter any problems, check the log file at /var/log/mail.log.
Visit the forum to ask for help or to give a comment.
Posted on 9/18/2011 and last updated on 9/18/2011
Filed under SquirrelMail , Ubuntu 10.04