In this tutorial we will cover the steps needed to install the SquirrelMail webmail client on your CentOS 6.4, Debian or Ubuntu platform.

Requirements

  • CentOS 6.4, Debian or Ubuntu installed on your computer/server
  • SSH access (Command line access to the server)
  • root privileges
  • Basic skills for working on a Linux environment
  • LAMP installed on the server
  • IMAP/POP3 server installed on the server

Install SquirrelMail

CentOS 6.4:

Due to the fact that some of the required packages might not be available by default you will need first to add the EPEL repository to your Linux platform. This can be done with the following command:

After that we can install SquirrelMail using the yum default package manager:

Debian/Ubuntu:

We can use the aptitude package manager to install the SquirrelMail client:

You will be prompted to accept the installation and additional package dependencies will be displayed.

Configure SquirrelMail

After the installation we need to configure the Squirrelmail client:

CentOS 6.4:

Debian/Ubuntu:

The command prompt should change and the SquirrelMail configuration menu should be displayed:

The IMAP/SMTP configuration can be made from the menu as well as additional tweaks such as folder, theme and plugin options.

CentOS 6.4:

After the installation a SquirrelMail virtual host file should have been added automatically inside the Apache virtual host folder:

Debian/Ubuntu:

After the SquirrelMail installation we should link the SquirrelMail client manually to the Apache web server. We can do that by creating a symbolic link to the sample SquirrelMail virtual host file:

Restart the Apache service in order for the changes to take effect::

CentOS 6.4:

Debian/Ubuntu:

Test the functionality of the service

We can now try to access the SquirrelMail login page using the default alias:

where X.X.X.X is your server's IP address.

An easy way to find your server's IP address is to execute the following command:

You should be able to access the webmail interface using a valid email address which was already created on the server.