Easy Steps to Install Squirrelmail on Cent OS 7
Hi All,
Today we are going to see how to install SquirrelMail on Cent OS 7.
you will need to add EPEL repository into your system using the following command.
yum -y install epel-release
Now you can install Squirrelmail using the following command.
yum -y install squirrelmail
you can configure it by running the configuration script.
cd /usr/share/squirrelmail/config/
./conf.pl
You will see following output.
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. LanguagesD. Set pre-defined settings for specific IMAP serversC Turn color off
S Save data
Q Quit
Change the organisation name, logo and title according to your need. Once done, return to main menu using R
command. In main menu choose option 2 for Server settings.
Change your domain name by selecting option 1.
The domain name is the suffix at the end of all email addresses. If for example, your email address is jdoe@example.com, then your domain would be example.com.
[localhost]: yourdomain.com
Now save your setting by giving S
command and finally quit using Q
command.
Now you will need to install the Apache web server, so that we can access Squirrelmail using web interface. Run the following command to install Apache web server.
Run the following command to install Apache web server.
yum -y install httpd
Once Apache is installed, edit the configuration file to add a new virtual host.
nano /etc/httpd/conf/httpd.conf
Alias /webmail /usr/share/squirrelmailOptions Indexes FollowSymLinks
RewriteEngine On
AllowOverride All
DirectoryIndex index.php
Order allow,deny
Allow from all
Save the file and start and enable Apache web server using the following commands.
systemctl start httpd
systemctl enable httpd
Now create email users, run the following command to add a user.
useradd -m liptan -s /sbin/nologin
passwd liptan
Theabove command will add a new user liptan
and the attribute -s /sbin/nologin
will deny login using SSH. Last command will create a password for the new user.
Now you can browse Squirrelmail by going to following link into the browser.
http://domainn.com/webmail
Thanks for watching this tutorial 🙂