How to configure Squirrelmail (Web mail server)

gasownerData Management

Jan 31, 2013 (4 years and 9 months ago)

135 views

How to configure Squirrelmail (Web mail server)


Squirremail is webmail


In order to success in configure webmail hosting we have to install
service like below:

1.

Apache2

a)

Apache2
-
example
-
page

b)

Apache2
-
prefork

c)

Apache2
-
client

d)

Apache2
-
mode
-
php

2.

Mysql

a)

Mysql

b)

Mysql
-
client

3.

Php

a)

Php5
-
gettext

b)

Php5
-
mbstring

c)

Php5
-
openssl

d)

Php5
-
msql

e)

Apache2
-
mode_php5

4.

Postgresql
-
lib

5.

qpopper


But first I would like to install DNS :

in order client can access webmail by using name we have to have
DNS so that let start install DNS

install bind


















Vi /etc/named.conf





























cd /var/lib/name and then copy

two file to /master
























cd master/

viphanny.com.zone















vi 192.168.1.zone




































Install Mysql














Install PHP













Install Postgresql
-
lib























Install qpopper


















After we have install all service that we need we need 3 tool to
configure our webmail


dovecot


c汵捥湥
-
co牥


squirrelmail

Configure
Postfix


So that we start upload these toto our webmail server

we use Winscp.exe to copy this file:















We go to see this file in /srv/






Now, run (
clucene and dovecot
)









To configure postfix in :/
etc/postfix/main.cf


































































We go to configure dovecote
































































































Go to configure qpopper

-

cd /etc/xinetd.d

-

vi

q
popper



















-

Go to extract file squirremail and hosting it in path
/srv/www/htdocs












-

Now we go to
/srv/www/htdocs














-

Now we rename this file to webmail

in order to write.















-

Now we go to webmail and then configure:




















-

type :
./configu
re
















-

And then we will see:















-

Now Enter number
1
:

-

















-

And then we will see some option:














So, now we want to change some option:

-

Enter
1

to change our organization mail name when we logon
:



































-

Result:

















-

Enter
s
to save data:

















-

Enter
r
to return to the main menu

-
















-

Enter

2

to changer server setting:




















-

Enter
a

to put IP




























-

Enter
4
to put IP




























-

Enter
b

and then enter
4
to put IP for SMTP






















-

Result :




















-

Enter
s
to save date :






























-

Enter
r

to return to main menu:

























-

Enter
1
to change domain name:






-

Result:




















-

Now enter
2
to change server setting again:






























-

Enter
a























-

Enter
8

to write the word
:

dovecot



























-

Show result and enter s
to save data and enter r to return



























-

Now enter
3
to configure in Folder Defaults






















-

Enter
3

to write the word :
Trash
























-

Enter
4
to write the word :
S
ent


























-

Enter
5

to write the word :
Drasft

























-

Enter
s

to save data and then
Ctrl + C

to finish:



























Now Try To Hosting Our Web Mail



We finished our mail server we start hosting our mail so we
have to create a virtual host

cd

/etc/apache2/vhosts.d/

cp vhosts.template webmail.conf


















Vi

webmail.conf


































Now

we have to create database for it follow step below:











Go to
:

cd

/var/lib/name/master:

Vi 192.168.1.1.zone















Vi Phanny.com.zone











Now I create a file script for restart all service


Vi restartservice.sh
























Restart:






















Now test on client:





















It’s success now.


The next I will create user to
try to login:



Be for we test login our mail we have to create user system in
linux first

All user have to have own home directory





I create two user system
: user:
yoyoyaya

and
yeye















Now try to login:

-

user: yoyoyaya


















































-

user: yeye


















































Now I try to send messages from user:

yoyoyaya

to
user:
yeye























Now go to user:
yeye


























Now I try to change Picture

-

First I upload file
Phanny.jpg to

/srv















-

Go to
/srv

































Rename Phanny.jpg to Phanny.png




























































































































Result:































In order to our webmail hosting

have high security we
must be

configure SSL

Now, I am configure Authentication:


Vi /etc/postfix/main.cf








No we go to:
/etc/postfix/sasl_senders
to write user in

it.

Example I have two u
ser in system: phanna and phanne

Note:

sasl
-
senders is file that we create by our self.



















Now, I log on to user:
phalla@phanny.com

and send
mail to user:
chavy@phanny.com






























Now successful for authentication .





So, now we configure SSL

SSL: mean that to encrypt password communication between E
-
mail client and E
-
mail server.

First, we go
to:










































./Phanny.nodes
-
newreq



















./Phanny.nodes

sign
















































Vi /etc/dovecot/dovecot.conf















Vi /etc/services








Vi /etc/postfix/master.cf
















Vi /etc/postfix/maic.cf


















Now test by configure accout


































































































































Now I send mail from
phanna@phanny.com

to
phanny@phanny.com














































To Put User Can Change Password by Themself

Copy 2 file to
/srv







And then extract:

and then move or copy it to
/srv/www/htdocs/webmail/plugins



































And then, cd
/srv/www/htdocs/webmail

and
type:
./configure



























Results:













And then save data by enter s.

Now test:














Now I can access:








Now start to change:





























Now I log on by use password: 123




























Now I log on by use password : 123456789

































The End!!!@@@@!!!!!