Vous êtes sur la page 1sur 2

##### TO CONFIGURE THE MAIL SERVER #####

useradd u1 ( to create a user )


useradd u2
tail /etc/passwd ( to check the users )
passwd u1 ( To assign the password )
passwd u2
tail /etc/shadow ( to check the password )
#### Step 1 ### TO ASSIGN THE HOSTNAME ####
hostname mail.zoom.com
hostname ( To check )
ifconfig ( to check the ip )
vi /etc/hosts ( to provide the ip & hostname )
192.168.0.25 mail.zoom.com mail
:wq ( save & quit )
vi /etc/hostname ( to make permanent )
mail.zoom.com
:wq ( save & quit )
#### Step 2 ### TO INSTALL THE PACKAGE ####
yum install postfix php perl php-mbstring curl dovecot httpd
hunspell-en mod_ssl tmpwatch -y
#### Step 3 #### TO CONFIGURE THE M.C.F ####
vi /etc/postfix/main.cf
go to line 75 & remove the # then assign mail.zoom.com
go to line 83 & remove the # then assign zoom.com
:wq ( save & quit )
#### Step 4 ### TO START THE SERVICE ####
service postfix restart
#### Step 5 #### TO SEND & RECEVICE THE MAIL ####
mail jack ( to send the mail )
subject: test mail
this is mail from admin
. ( to save & quit )
su - jack ( to login as user )
mail ( to check the mail )
1 ( To read the mail )
quit ( to come out )
#### Step 6 #### TO CONFIGURE THE SQUIRRELMAIL ####
wget ftp://192.168.0.250/pub/squirrelmail* ( to download )
rpm -ivh squirrelmail* ( to install )
cp -rvp /usr/share/squirrelmail/* /var/www/html ( to copy the data )
#### Step 7 #### TO CONFIGURE THE M.C.F ####
vi /etc/dovecot/conf.d/10-auth.conf ( to open m.c.f)
go to line 10 & remove the # make yes to no
go to line 100 & assign the plain login
:wq ( save & quit )
vi /etc/dovecot/conf.d/10-mail.conf ( to open m.c.f )
go to line 25 & remove the # replace /var/mail/%u to
/var/spool/mail/%u
go to line 119 & remove the # then assign mail
:wq ( save & quit )
##### Step 8 #### TO START THE SERVICE ####
service postfix restart
service dovecot restart
service httpd restart
#### Step 9 #### TO CHECK THE GUI INTERFACE ###
open the browser
http://mail.zoom.com