Hi sarvanan ,
Look i will give u a small littel advice.
Procure a copy of RedHat Linux 7.x. Do FULL installation to ensure that popd ( if u need tcp wrapper based pop) is installed.
Now start pop service from /etc/xinetd/pop3 file.
Until now u should not have any problem. Now configure DNS on your machine for mail.mydomain.com. later configure sendmail for the same purpose. Restart appropriate service ( inetd, sendmail) etc.
so the important thing to know is that ur DNS should be configured properly .... specially MX records. For test purpose edit the /etc/hosts and /etc/host.conf ,/etc/resolv.conf, etc/nsswitch.conf appropriately and then try telnetting to ur pop server.... if done properly it will work .... so u can later or do name lookup thru BIND and not thru hosts file.
/etc/hosts ---- > will map host names to ip address.
/etc/nsswitch.conf ---> will set the if BIND should be consulted or hosts file for name resolution.... set it so that hosts file should be consulted first.
/etc/resolv.conf ---> set ur name server ie; ur own machine is the DNS server . u can put in a line like
nameserver 192.168.1.1
here iam assumin the ip address of ur linux box to be 192.168.....
/etc/host.conf --->This file specifies how names are resolved. similar to nsswitch.conf. u can put in a line here like
order hosts,bind
if ur not comfortable with setting up DNS then i suggest u read the DNS howto at
www.linuxdoc.org ..... its the best.
NOTE : If i can suggest i would suggest u take a look at webmail and squirrelmail software ..... both provide the same functionality as that ur trying to achive. squirellmail is based on php or phython i guess. there are lots of other web based email as well.
try searching with keyword "webmail" on
www.freshmeat.net .
hope this helps out for u.
regards,
Xanthium.
