Sunday, 30 March 2014

Install and configure SquirrelMail

Install and conigure SquirrelMail

Installation of Squirrelmail
Install Squirrelmail with support via Apache
Download from squirrelmail.org - *.bz2
Confirm the MD5SUM
md5 squirrelmail-1.4.21.tar.bz2
tar -tjvf squirrelmail-1.4.21.tar.bz2

Step -1

#yum install php
#yum install php-imap
#rpm –ql php-imap
#rpm –ql php

Step -2

# mkdir /var/www/mail

--->>Extract Squirrelmail to: /var/www/mail

# cd /var/www/mail
#tar –xjvf /root/Desktop/squirrelmail-1.4.21.tar.bz2
#ln –s squirrelmail-1.4.21/ mail
# ls –l

Note -- Optionally, create symlink named 'mail' to point to Squirremail version

Step -3
--->> Create the Apache Virtual Host

# cd /etc/httpd/conf/httpd.conf

<VirtualHost 192.168.0.110:80>
ServerAdmin webmaster@mail.tiltec.com
ServerName mail.tiltec.com
DocumentRoot /var/www/mail
<Directory /var/www/mail>
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
CustomLog logs/mail.tiltec.com.access.log combined
ErrorLog logs/mail.tiltec.com.error.log
</VirtualHost>

# service httpd restart
#echo $
#httpd –S

Step -4

-- >>Create directory under /var/local/
Create 'attach' and 'data' directories for SquirrelMail: /var/local/squirrelmail/{data,attach}
Update permissions so SquirrelMail may write to 'data' and 'attach' directories:
Change ownership to apache user /var/local/squirrelmail

# cd /var/local

#mkdir squirrelmail

#mkdir squirrelmail/{data.attach}
#chown –R apache:apache /var/local/squirrelmail

Step- 5

-->> Configure SquirrelMail defaults: /var/www/mail/mail/config/conf.pl
#vim /var/www/mail/mail/config/
#./conf.pl
Step-1

Press 1—agian1—type company name—abc pvt. Ltd.

Step- 2

Press 2 ---press 1—type domain name --- abc.com
Press A – press 4 – type imap server ip address
Press B – press 4 – type smtp server ip address

Step - 6

Attempt to access SquirrelMail

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

Note: If SELinux is enabled, use 'setsebool...' to allow httpd to connect to IMAP and SMTP ports. Consult: /var/log/messages

#chcon –t httpd_sys_content_t /var/local/squirrelmail/data
#chcon –t httpd_sys_content_t /var/local/squirrelmail/attach


Configure /etc/hosts file. In this scenario /etc/hosts file should look like this:
192.168.0.2 pro www.textiles.com

No comments :

Post a Comment