Monday, December 9, 2013

How to Configure SQUIRREL Mail (Webmail) in Debian Squeeze:

1.apt-get install apache2
 
  apt-get install php5

2.Now we will download squirrel mail tar.gz file
    #wget http://sourceforge.net/projects/squirrelmail/files/stable/1.4.21/squirrelmail-1.4.21.tar.gz
    it will download the squirrelmail file in postfix directory. Lets check with ls command.


3.copy the downloaded file to /var/www directory....
    # cp squirrelmail-1.4.21.tar.gz /var/www
4. Now Change directory to /var/www
    # cd /var/www


5.Now we will extract the downloaded tar.gz file
    # tar -zxvf squirrelmail-1.4.21.tar.gz
6.Rename squirrelmail-1.4.21 folder to webmail
    # mv squirrelmail-1.4.21 webmail
7.Now change directory to webmail
    # cd webmail
8.Oh! ho....we will now configure webmail....
    #./configure
---------------------------------------------------------------------------------------------------------
****Note: If you download squirrelmail by apt-get install method it may occur some difficulties later on.
But the way is:

    # apt-get install squirrelmail     (To download & install)
    # squirrelmail-configure     (To configure)
---------------------------------------------------------------------------------------------------------

Here the Config begins:
    Command>> 1     [for organization preference]
    again Command >> 1    [enter organization name suppose Mehedi Group]
    command >> 2 [for organization Logo] press S for save and R for return to main menu.

Now from Main Menu....
    Command >> 1 [enter Domain name mehedi.com]
    Please save the changes and return to main menu.

Now from Main Menu....
    Command >> 4    [it will enter General options]
    Command >> 1    [to change the Data Directory to /var/www/webmail/data/  ]
    Command >> 2    [to change the attachment   Directory to /var/www/webmail/attach/ ]
   
    ******* Don't forget to create a folder named attach in webmail directory.
        # cd /var/www/webmail
        # makdir attach

Save the changes and return to the main menu and then exit from webmail configuration.....


Finally....
9. # cd.. [for go to previous directory... now we will be at /var/www/ directory...]
10.# chown -R www-data:www-data webmail/
11.# /etc/init.d/apache2 restart
   # /etc/init.d/postfix restart
   # /etc/init.d/dovecot restart

No comments:

Post a Comment