You inetd.conf is empty??? That is stange... you should have a bunch of serveces (unless you are running something strange) listed in the file. For instance IMAP listing is
(At least for me)
imap2 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/imapd
Check and make sure that you have an IMAP server running. Also check and make sure that you have imap.so in your php extensions directory. (Do a nice apt-get install imap imap-php if you have debian 🙂 )
The fact that you cant telnet into the server means either you dont have one, its not running (check your daemon log for errors), or you inetd.conf file is screwed up so it doesnt know what to do if someone trys to telnet into the server.
Hope that Helps!