Disclaimer: Although I believe the information in this document to be accurate, it is YOUR responsibility to verify any information written within this document. By reading this document you agree this information is provided on an as-is basis, and you agree to hold no one liable in anyway for any information contained in this document. Even negligence.

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

Back to the Main Index

SquirrelMail (Webmail)


Squirrelmail is a web based email client. Not much configuration is required for Squirrelmail.


  1. First, let's make sure squirrelmail is installed. Type yum install squirrelmail


  1. Now, let's make sure some services are running. (We'll configure these later to start automatically)

    1. Type /etc/init.d/postfix status.
      If postfix is not running, type /etc/init.d/postfix start

    2. Type /etc/init.d/dovecot status.
      If dovecot is not running, type /etc/init.d/dovecot start

    3. Type /etc/init.d/spamassassin status.
      If spamassassin is not running, type /etc/init.d/spamassassin start


  1. Now, we need to set the host name in the squirrelmail configuration file. Type cd /etc/squirrelmail/


  1. Type vi config.php (This will allow us to edit the config.php file in the vi editor)


  1. Type /domain to search for the domain entry.


  1. Tap “i” on your keyboard for Insert mode.


  1. Configure your domain as shown:




  1. Press esc on your keyboard for command mode.


  1. Type :wq (colon, w for write, and q to quit)



  1. 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.


  1. Type vi httpd.conf to edit the Apache Configuration file




  1. Tye /NameVirtualHost to locate our custom directives for Apache.


  1. 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>



  1. Your text should appear like this:




  1. Hit esc on your keyboard to go to command mode.


  1. Now type :wq (colon, then w to write, and q to quit)


  1. Restart apache: /etc/init.d/httpd restart



  1. 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!



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



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