/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:
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/")
Edit Directory and add the following
**************
<Directory "/usr/share/squirrelmail">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
*************
save n quit
/usr/local/apache/bin/
/usr/local/apache/bin/
/etc/init.d/httpd start
In browser------http://IP/sqmail/
Apache
www.lamphowto.com
-wget linl location
/etc/init.d/httpd status-if running stop it
cd /
unzip
tar -xvf
cd apache version
./configure --help
./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-module=so --enable-suexec-safepath=/usr/local/bin --enable-module=cgi
make
make install
cd /
vim /usr/local/apache/conf/httpd.
->server root /usr/local/apache
->user nobody
->group nobody
->directory index index.html
->VirtualHost ip:80
{doc root /home/user
server name domain.com}
save quit
servive httpd stop
/usr/local/apache/bin/
cd document root
vim index.html
/usr/local/apache/bin/
If a 403 error comes in Directory change Deny from all to Allow from All.
dig abc.com
lynx http://domain.com
No comments:
Post a Comment