LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > deep27ak
User Name
Password

Notices


Rate this Entry

configuration of squirrel mail in RHEL 5.2

Posted 12-23-2011 at 03:39 AM by deep27ak
Updated 08-18-2012 at 04:02 AM by deep27ak

For more Linux based tutorials My BLOG

To install squirrel mail you will need to download the tar file.
here is a link where you can find one

http://squirrelmail.org/download.php

make a directory inside /var/www/
Code:
#mkdir /var/www/mail
and unzip the file tar file inside this directory. You can use this command for that
Code:
#tar -tjvf squirrelmail.x.x.x.tar.bz2
you might also need php and php-imap to install PHP supports for Apache/IMAP.

Code:
#yum -y install php php-imap

#cd /var/www/mail
Now make one symlink for the squirrelmail.x.x.x
Code:
#ln -s squirrelmail.x.x.x/ mail
you can check the symlinks

Code:
#ls -l
Now just edit your apache configuration file with the virtual host entry

Code:
#vi /etc/httpd/conf/httpd.conf
(at the end of the file)

<virtualHost 192.x.x.x:80>
   ServerAdmin mail@server.example.com
   DocumentRoot /var/www/mail/
   <Directory /var/www/mail>
   Options FollowSymlinks
   Order allow,deny
   Allow from all
</Directory>
</VirtualHost>
Here server is the name of your machine and example.com is the domain name so change as per your namchine hostname and domain name.
IP used is your machine's IP.
Restart the apache server

Code:
#service httpd restart
Now configure the squirrel mail server
Code:
#cd /var/www/mail/mail/config/

#./config.pl
Now follow the instructions to edit your squirrelmail as per your requirements.

You also might need to Create 'attach' and 'data' directories for SquirrelMail:
Code:
/var/local/squirrelmail/{data,attach}
(if you go for default settings)
Change the ownership of both these files to apache

Code:
#chown -R apche:apache /var/local/squirrelmail/
Go to the browser and mention the ip of your machine
Code:
http://192.168.x.x/mail


you will get the login page

try logging with one of your self created user

*********************************************************************

If you are unable to send or receive mails

you will require to install dovecot for Imap server and smtp sendmail server
Posted in Uncategorized
Views 1404 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration