What is SquirrelMail?

SquirrelMail is a standards-based webmail package written in PHP. It includes built-in pure PHP support for the IMAP and SMTP protocols,

 

#1 Add epel repo

wget http://epel.mirror.net.in/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5-4.noarch.rpm

#2 Install Squirrelmail

yum install squirrelmail -y

Navigate to /usr/share/squirrelmail/config/ directory and run the command conf.pl:

./config.pl

Enter choice “1” to set your organization details

Now enter “2” to setup mail Server settings such as domain name and mail agent etc

Now enter “S” followed by “Q” to save and exit Squirrelmail configuration.

Create a squirrelmail vhost entry in apache config file. Add the following lines at the end:

Alias /webmail /usr/share/squirrelmail
<Directory /usr/share/squirrelmail>
    Options Indexes FollowSymLinks
    RewriteEngine On
    AllowOverride All
    DirectoryIndex index.php
    Order allow,deny
    Allow from all
</Directory>

Restart apache

service httpd restart

Now browse  http://ip-address/webmail or http://domain-name/webmail from your browser. Login with username and password. Verify mail functionality by sending/receiving emails.

Leave a Reply