Hi,
For redhat, both the pop3 and imap servers are contained in the 'imap' rpm so you just need to install that then activate whichever you want (or both) under chkconfig. I assume you mean for redhat 7.1 due to prior posts and, if so, /etc/inetd.conf is irrelevant because redhat have been using xinetd as a functional replacment for inetd since probably around 6.x . There is a lot of granularity of control that can be exercised with xinetd (e.g. restrict by time of day, ip address ranges, etc) but, out of the box, you just turn the xinetd services on or off by doing as root :
/sbin/chkconfig imap on
/sbin/chkconfig ipop3 on
etc.
In the imap rpm you get three daemons - imapd, ipop2d, ipop3d and (ignoring pop2) there are services defined under xinetd as imap, imaps (for client with ssl support), ipop3, pop3s (ssl support) . Both the redhat pop3 and imap servers have pam support (/etc/pam.d/pop and /etc/pam.d/imap are the control files).
Basically, to get it working you really just need to install the imap rpm --> ftp://rpmfind.net/linux/redhat/updates/7.1/en/os/i386/imap-2000c-10.i386.rpm
.... and do the 'chkconfig' commands above.
Hope this helps
,