I've uninstalled and reinstalled the imap server (default RH 8.0) and it is still doing the same problem when trying to telnet but I've manually launched the imapd service and this is the result:
[root@myhost xinetd.d]# /usr/sbin/imapd
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] myhost.mydomain.com IMAP4rev1 2001.315rh at Wed, 5 Jan 2005 16:02:50 +0800 (WST)
a login
myname@mydomain.com Mypassword
a NO LOGIN failed
a logout
* BYE myhost.mydomain.com IMAP4rev1 server terminating connection
a OK LOGOUT completed
[root@myhost xinetd.d]#
maillog entries:
Jan 5 16:03:22 mail imapd[2796]: Logout user=myname@mydomain.com host=UNKNOWN
imapd is accepting connections but I could not authenticate neither using the root account or my personal login account (same results with both credentials).
This is the output of "netstat -pant":
[root@myhost xinetd.d]# netstat -pant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN 655/rpc.statd
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 2646/xinetd
tcp 0 0 127.0.0.1:32774 0.0.0.0:* LISTEN 2646/xinetd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 919/mysqld-max
tcp 0 0 0.0.0.0:109 0.0.0.0:* LISTEN 2646/xinetd
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 2646/xinetd
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 2646/xinetd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 636/portmap
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 1084/X
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 868/httpd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2646/xinetd
tcp 0 0 10.0.0.2:53 0.0.0.0:* LISTEN 773/named
tcp 0 0 192.168.1.2:53 0.0.0.0:* LISTEN 773/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 773/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 791/sshd
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 925/(squid)
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 838/sendmail: accep
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 773/named
tcp 0 248 192.168.1.2:22 x.x.x.x:2614 ESTABLISHED 2556/sshd
tcp 0 0 192.168.1.2:22 x.x.x.x:2168 ESTABLISHED 2426/sshd