First, install and configure the postfix server (which is in the article published on 19 May 2020). Then download SquirrelMail by going to http://rpmfind.net and search for squirrel mail rpm packages. Alternatively, go to my GitHub link and download the rpm plus the dependencies (using git).
Method 1 (for download)


[root@mailserver ~]# dnf install wget http://rpmfind.net/linux/fedora/linux/releases/32/Everything/x86_64/os/Packages/s/squirrelmail-1.4.23-3.fc32.20190710.noarch.rpm

Method 2 (for download)
You can also download squirrelmail with it’s dependencies by using following Github link:
https://github.com/ade9alwis/squirrelMail.git
- Check that the http service is enabled and running.

- Add the following configuration to end of the “/etc/httpd/conf/httpd.conf” file.
#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>

- Verify the configuration as following.

- Squirrelmail configuration
Change the directory as follows and run the script “conf.pl”.

Then, you will see the configurations menu. Be sure to search through the different options and familiarise with them.

Now let’s configuration the organization name. Select Option 1 and enter the name: “example.com”.

Then press S to save and R to return to the main menu.

Let’s configure the Server Settings. Go to option 2, and then under that, option 1. Change option 1 from localhost to blank and Save(S) and return(R).

To configure the Server Settings, go to option 2 and under that, option 2 again – SMTP protocol rather than Sendmail, and then Save(s) and Quit(Q).

Restart the sever to activate the SELinux configuration and check that all of the below services are up and running.
- Postfix

- Dovecot

- Httpd

Finally, we can access webmail by entering its IP address or domain name (Adjust the host file) as below.
http://10.111.125.110/webmail or http://example.com/webmail

Now let’s send mail from Tom to Jerry.




