Accessing a dovecot imap server using SquirrelMail

SQmail

Install an SMTP server and POP/IMAP server using the following link

Install http server and SquirrelMail

  • yum install httpd php

Download the latest stable version of application (squirrelmail-webmail-1.4.22) from the SquirrelMail site

copy it in the folder /var/www/html

Extract the tar file

    • tar -zxvf squirrelmail-webmail-1.4.22.tar.gz

 

  • mv squirrelmail-webmail-1.4.22 /var/www/html/webmail

Run the configuration script

  • /var/www/html/webmail/config/conf.pl

Go through the menus one by one, and remember change the following:

  • Organization Name
  • Domain
  • Sendmail or SMTP
  • Please select your IMAP server
  • You may want to select SSHA if you are using that for password encryptions

Edit the httpd configuration file:

  • vi /etc/httpd/conf/httpd.conf

Add the following lines at the end

  • Alias /squirrelmail /var/www/html/webmail
    <Directory /var/www/html/webmail>
    Options None
    AllowOverride None
    DirectoryIndex index.php
    Order Allow,Deny
    Allow from all
    </Directory>
    <Directory /var/www/html/webmail/*>
    Deny from all
    </Directory>
    <Directory /var/www/html/webmail/scripts>
    Allow from all
    </Directory>
    <Directory /var/www/html/webmail/images>
    Allow from all
    </Directory>
    <Directory /var/www/html/webmail/plugins>
    Allow from all
    </Directory>
    <Directory /var/www/html/webmail/src>
    Allow from all
    </Directory>
    <Directory /var/www/html/webmail/templates>
    Allow from all
    </Directory>
    <Directory /var/www/html/webmail/themes>
    Allow from all
    </Directory>
    <Directory /var/www/html/webmail/contrib>
    Order Deny,Allow
    Deny from All
    Allow from 127
    Allow from 10
    Allow from 192
    </Directory>
    <Directory /var/www/html/webmail/doc>
    Order Deny,Allow
    Deny from All
    Allow from 127
    Allow from 10
    Allow from 192
    </Directory>

Run the following commands:

    • mkdir -p /var/local/squirrelmail/data/

 

    • mkdir -p /var/local/squirrelmail/attach/

 

  • chown -R apache /var/local/squirrelmail

Restart apache

    • systemctl start httpd

 

  • systemctl enable httpd