How to install Squirrelmail on CentOS 6

Status: This OS is no longer supported

This article, “How to install Squirrelmail on CentOS 6,” covers a version of CentOS that reached end of life (EOL). It is no longer supported. As such, this guide is no longer maintained. Therefore, if you are currently operating a server running CentOS 6, we highly recommend contacting RoseHosting’s fully managed support. They can upgrade or migrate you to a supported version of AlmaLinux.

SquirrelmailSquirrelmail is a free and open-source web-based email application written in PHP. It is one of the most popular webmail services due to its speed and ease of use. With Squirrelmail, you can send, receive, and read your emails without an email client, just by using your web browser.

In this blog tutorial, we will cover the installation of Squirrelmail on a CentOS 6 VPS.

Installation Instructions

There are a few requirements for Squirrelmail:

  • A web server
  • PHP version 4.1.0 or newer
  • Access to an IMAP server

All requirements are included in our CentOS 6 full templates.

Log in to your server via SSH as the user root and ensure that all packages are up to date.

yum -y update

Download the latest stable version of Squirrelmail from their official website. As of this writing, it is version 1.4.22

wget http://downloads.sourceforge.net/project/squirrelmail/stable/1.4.22/squirrelmail-webmail-1.4.22.zip

Unpack the downloaded zip archive to the document root directory on your server

unzip squirrelmail-webmail-1.4.22.zip -d /var/www/html/

This will create a ‘squirrelmail-webmail-1.4.22’ directory. We will rename the directory to a simpler name.

mv /var/www/html/squirrelmail-webmail-1.4.22/ /var/www/html/squirrelmail

Set the correct permissions.

chown -R apache: /var/www/html/squirrelmail/
Squirrelmail does not create its configuration file by default, so you need to create it:

cd /var/www/html/squirrelmail/config 
cp -p config_default.php config.php
Finally, access the configuration file with a text editor and verify that the following settings are correctly configured.

$domain = 'YOURDOMAIN.TLD';
$data_dir = '/var/www/html/squirrelmail/data/';
$attachment_dir = '/var/www/html/squirrelmail/attach/';
$smtpServerAddress = 'localhost';
$imapServerAddress = 'localhost';
You can adjust multiple options in the configuration file to meet your specific needs, but you must include the following.
 

Open your favorite web browser and access Squirrelmail at http://YOURDOMAIN.TLD/squirrelmail. If you followed this tutorial, you should now be on the Squirrelmail login page, where users with a local email account can log in and access their emails.

Conclusion

Finally, if you are one of our Linux VPS Hosting customers, you don’t have to do any of this. In short, ask our admins, sit back, and relax. Our admins will set this up for you immediately. For more updates, you can read our post on How to Install SquirrelMail on CentOS 7.

PS. If you liked this post, please share it with your friends or leave a reply below. Thanks.

Leave a Comment