Ok guys the problem has been solved.
I asked my teacher.(the one who has taught me linux).
http://www.linkedin.com/in/sohaileo <-- This is him
He has sloved me this problem.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
############### This is his reply #####################
All emails are sent or received on a server is through port 25. Imap or POP is developed to retrieve emails from server to client. For example Server A and Server B should have port 25 to send and recieved email between them.
To retrieve email from Server A or Server B, let suppose you use webmail or outlook .... for that imap or pop should be running because it authenticates and retrieve emails for the particular user.
First do this
# netstat -antp
if sendmail is listening on only 127.0.0.1 then you need
to tell senmail to listen on your Ethernet ip aswell
by adding this line to /etc/mail/sendmail.mc
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.1.3,Name=MTA')dnl
where Addr equals to ip of your Enternet.
After this you'll be able to "telnet domain.com 25" if your router is not blocking access to port 25.
Once this is done. You're good to go. [and i was
]
else google.com for more knowledge.
#########################################################
So everyone this is for your knowledge if you come across
this same problem.
If you've any question to me then
http://kingkashif.com