Configure Squirrelmail Server


SquirrelMail is an Open Source project that provides both a web-based email application and an IMAP proxy server.


Install EPEL repository first. And install SquirrelMail package from EPEL repository.


# wget
# rpm -ivh epel-release-6-8.noarch.rpm 
# yum install squirrelmail
# service httpd start
Starting httpd:                                            [  OK  ]
# chkconfig httpd on

Configure Squirrelmail

Go to the squirrelmail config directory and use the command ./ to start configure as shown below.

# cd /usr/share/squirrelmail/config/
# ./ 
SquirrelMail Configuration : Read: config.php (1.4.0)
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages
D.  Set pre-defined settings for specific IMAP servers
C   Turn color off
S   Save data
Q   Quit
Command >>1 

 Select option 1 and set organization details. 

SquirrelMail Configuration : Read: config.php (1.4.0)
Organization Preferences
1.  Organization Name      : Ostechnix
2.  Organization Logo      : ../images/sm_logo.png
3.  Org. Logo Width/Height : (308/111)
4.  Organization Title     : Welcome to Ostechnix webmail
5.  Signout Page           : 
6.  Top Frame              : _top
7.  Provider link          :
8.  Provider name          : Ostechnix
R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit
Command >>R 

 Press R to return main menu and select option 2. Enter your domain name and select dovecot in the Sendmail or SMTP parameter. 

SquirrelMail Configuration : Read: config.php (1.4.0)
Server Settings
1.  Domain                 :
2.  Invert Time            : false
3.  Sendmail or SMTP       : SMTP
A.  Update IMAP Settings   : localhost:143 (uw)
B.  Update SMTP Settings   : localhost:25
R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit
Command >> S

Once you done, press S to save datas and press Q to exit.

Add the following lines in the httpd.conf file at the end.

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

Restart the httpd service. 

# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

Create Users

# useradd user1
# useradd user2
# passwd user1
# passwd user2

Open the browser from any clients. Type the following in the address bar.




Now let us compose a mail from user1 to user2. Refer a below screenshot.

Then sign-out and sign-in back from user2. 

Thats it. We have got a mail from user1. If you have any issues in the configuration, post them in the comment section.

Have a good day.

Now Working………

Leave a Reply

Your email address will not be published. Required fields are marked *