Tuesday, August 12, 2008

Squirrelmail Web Client Installatin and Configuration on Debian

Following things are involved.
  1.  MAIL SERVER 'Exim4'
  2.  INSTALLATION OF PACKAGES
  3.  CONFIGURATION
  4.  FURTHER DOCUMENTATION
MAIL SERVER:
We are already running EXIM4, as our mail mail server on a different machine and network with folloing IMAP and SMTP

Imap.domain.com
Smtp.domain.com

No need to install it from scracth.

INSTALLATION OF PACKAGES:
A) Web server Apache with ssl support
Install apache2: apt-get install apach2
install ssl certificate: apt-get install ssl-cert
generate certificate: openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem

country name: NO
state name: Oslo
locality name: Oslo
organizaion name: yourcompany
organizatinal unit: IT
common name: webmail
email addres: youremail@yourdomain.com

B) PHP4 (php5 has some problems)
PHP4 Installation: apt-get install php4

C) UW IMAP
Installation of uw-imapd: apt-get install uw-imapd

D) Squirrelmail
Squirrelmail Installation: apt-get install squirelmail
you can also download from this location and install,
http://www.squirrelmail.org/download.php

CONFIGURATION:

Apache WebServer

chmod 600 /etc/apache2/apache.pem
Enabling SSL Support
a2enmod ssl
Module ssl installed; run /etc/init.d/apache2 force-reload to enable.
Configuring SSL support
Edit /etc/apache2/ports.conf
Listen 443

Edit /etc/apache2/sites-available/default.conf
NameVirtualHost *:443
ServerAdmin webmaster@owera.com
ServerName webmail.owera.com
SSLEngine on
SSLCertificateFile /etc/apache2/apache.pem
DocumentRoot /var/squirrelmail/www/

.
.
Restart apache2
/etc/init.d/apache2 restart

Squirrelmail configuration
After downloading, create directory and unpack
mkdir /var/squirrelmail
cd /var/squirrelmail
mkdir data attachment www
chown -R www-data.www-data /ver/squirrelmail/
chgrp www-data data attachment
chmod 0730 data attachment
tar --bzip2 -xvf /usr/local/src/downloads/squirrelmail-1.4.5.tar.bz2
mv squirrelmail-1.4.5 www
cd www/config
cp -p config_default.php config.php

Edit config.php
Change this to your organization's name.
$org_name = 'YOUR_ORGANIZATION';
Change this to the title you would like shown on the SquirrelMail web page.
$org_title = 'YOUR_TITLE $version';
Change this to the mail domain that is being served by SquirrelMail.
$domain = 'YOUR_MAIL_DOMAIN.com';
Define your SMTP server. This is the name of the server running the Postfix MTA for your mail domain. If Postfix is running on the same server as SquirrelMail then this would be 'localhost'. If it is another server then enter 'SERVERNAME.com'.
$smtpServerAddress = 'localhost';
Define your IMAP server. We always have SquirrelMail running on the same server as IMAP so this will always be 'localhost'.
$imapServerAddress = 'localhost';
Define the IMAP server type. The IMAP package in EnGarde Secure Community 3.0 is 'Washington University' so use 'wu' here.
$imap_server_type = 'wu';
.
.
DOCUMENTATION:

http://www.squirrelmail.org/docs/admin/admin-3.html#ss3.1
http://www.flatmtn.com/computer/Linux-Squirrelmail.html
http://www.engardelinux.org/doc/howtos/install-squirrelmail/install-squirrelmail/config-edit.shtml
http://www.flatmtn.com/computer/Linux-EmailServer.html

No comments: