yum install exim
/etc/init.d/exim start
netstat -plan | grep :25
telnet localhost 25 ------------------check whether ESMTP exim or sendmail exim,if sendmail stop it using
/etc/init.d/sendmail stop
vim /etc/exim/exim.conf
->1.domainlist local_domain=@ : localhost : localhost.localdomain: domain.com(specify the domain to which u hv to send msgs)
->2.check local_user
transport=local_delivery
->3. in local_delivery change the file
file=/home/$local_part/MBOX
->4.local_interfaces= 0.0.0.0
restart exim
useradd username
passwd password
New Terminal::::)
telnet IP 25
helo type a string
mail from:abc@gmail.com
rcpt to:username@domain.com
data (press enter)
type ur msg
.
quit
go back to previous terminal
cd /
cd /home/username
ls
cat MBOX
yum install dovecot
vim /etc/dovecot.conf
(we have to change only mail_location)
mail_location=mbox:~mail:INBOX=/home/%u/MBOX
TO START DOVECOT:
/etc/rc.d./init.d/dovecot start
netstat -plan | grep :110
New terminal
telnet IP 110
user username
pass password
list
retr 1(if there is 1 msg in inbox)
quit
INSTALL Squirrelmail
yum install squirrelmail
vim /etc/httpd/conf/httpd.conf
(add Alias /sqmail/ "/usr/share/squirrelmail/")
save n quit
/usr/local/apache/bin/apachectl restart
/usr/local/apache/bin/apachectl stop
/etc/init.d/httpd start
In browser------http://IP/sqmail/
No comments:
Post a Comment