You are on page 1of 2

Installing Squirrelmail

#Installation using yum


yum install squirrelmail
rpm -e --nodeps exim-4.63-5.fc6
yum remove postgresql-libs

# Squirrelmail will be installed at /usr/share/squirrelmail/

# Add the requisite entries in the httpd.conf file.Here is the sample virtual host
entry.Plese cusomise it as per your needs.DO NOT COPY PASTE

<VirtualHost *:80>
ServerAdmin postmaster@yourdomain.com
DocumentRoot /usr/share/squirrelmail
ServerName yourdomain.com
ErrorLog /etc/httpd/logs/yourdomain.com_error_log
CustomLog /etc/httpd/logs/yourdomain.com_access_log common
ScriptAlias /cgi-bin/ /usr/share/squirrelmail/cgi-bin/
<Directory "/usr/share/squirrelmail/cgi-bin/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
# Block access: SLAC addition
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
# End block access rule
</VirtualHost>

# Copy the relevant qmailadmin files to squirellmail directory


cp -a /var/www/html/images/qmailadmin/ /usr/share/squirrelmail/images/
cp -a /var/www/webmail/cgi-bin /usr/share/squirrelmail/

#Test Your installation by visiting this url


http://mail.yourdomain.com/src/configtest.php

# Manual installation :Incomplete.Please read the references for installation


details
#References:http://qmailrocks.org/
http://www.squirrelmail.org/
yum install php
yum install php-mysql

vi /etc/php.ini

#Here's the line you will want to check/edit:

file_uploads = On

wget http://kent.dl.sourceforge.net/sourceforge/squirrelmail/squirrelmail-
1.4.8.tar.gz

tar -zxvf squirrelmail-1.4.8.tar.gz


mv squirrelmail-1.4.8 webmail

mkdir /var/sqattachements

chown -R apache:apache /var/sqattachements

cd webmail

chown -R apache:apache data

cd config

You might also like