Author: Ricky Bryce (Montgomery County, Illinois)
| Click here to learn why Christ came to this Earth for us! | Get 10% off VPSLink! Enter REFERRAL code MJDCDJ |
SquirrelMail (Webmail)
Squirrelmail is a web based email client. Not much configuration is required for Squirrelmail.
First, let's make sure squirrelmail is installed. Type yum install squirrelmail
Now, let's make sure some services are running. (We'll configure these later to start automatically)
Type
/etc/init.d/postfix status.
If postfix is not running,
type /etc/init.d/postfix start
Type
/etc/init.d/dovecot status.
If dovecot is not running,
type /etc/init.d/dovecot start
Type
/etc/init.d/spamassassin status.
If spamassassin is not
running, type /etc/init.d/spamassassin start
Now, we need to set the host name in the squirrelmail configuration file. Type cd /etc/squirrelmail/
Type vi config.php (This will allow us to edit the config.php file in the vi editor)
Type /domain to search for the domain entry.
Tap “i” on your keyboard for Insert mode.
Configure your domain as shown:

Press esc on your keyboard for command mode.
Type :wq (colon, w for write, and q to quit)
Now, we'll configure the Apache web server to serve the webmail directory for Squirrelmail. Type cd /etc/httpd/conf/ to enter the Apache configuration directory.
Type vi httpd.conf to edit the Apache Configuration file
![]()
Tye /NameVirtualHost to locate our custom directives for Apache.
Tap “i” for insert mode. Type or paste the following text beneath the NameVirtualHost line
# This directory entry is required to make Squirrelmail work.
<Directory /usr/share/squirrelmail>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Your text should appear like this:

Hit esc on your keyboard to go to command mode.
Now type :wq (colon, then w to write, and q to quit)
Restart apache: /etc/init.d/httpd restart
Now bring up your web browser, and we'll test your work! Enter httpd://brycefamily.com/webmail into your address bar. (substitute your domain). You should get a log in screen for Squirrelmail!

Log into squirrelmail using a standard user name, and you should be able to check and send emails.

Note: With this configuration, all domains will be able to access the webmail folder.