1) yum install exim
2)Check the mail server running
this can be done by natstat -plan|grep : 25
if sendmail(the default mail server )is running then stop it using the command:
/etc/init.d/sendmail stop
3)Start the exim by
/etc/init.d/exim start
4) From the exim.conf file (/etc/) add the domain
eg: localdomain: hari.com
5)Set the local delivery directory...
Search for local_delivery
set the file path =/home/$local_host/mbox
6) Set the local_interface in config file as 0.0.0.0 so that other user can gain access.
telnet 192.168.2.x 25
if error occur it means local_interface is not set to 0.0.0.0
7) Create a new user using the useradd command and set the password (frm the root)
8) Send a message to the newly created user
telnet 192.168.2.51 25
helo hel
mail from: test@test.com
rcpt to: hari@hari.com
data
Subject: test mail
hello this is a test mail...
.
quit
Configuring Dovecot
1)yum install dovecot -y
2)From the cconfig file search for the mail_location
set the mail_location as the path of the mbox(mail store)
mail_location=/home/%u/mbox
Configuring Squirrelmail
1) yum install squirrelmail
2)Stop apache installed by us and start the other
/usr/local/apache/bin/apachectl stop
/etc/init.d/httpd start
3) Search for alias in the config file of the apache
Alias /sqmail/ "/usr/share/squirrelmail/"
to access the mail type 192.168.2.x/sqmail/index.php
No comments:
Post a Comment