1)确保/usr/sbin/imapd存在且可执行。 你应该可以运行它并看到:
[root@user sbin]# /usr/sbin/imapd
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN]
server.hostname.com IMAP4rev1 2003.339 at Thu, 13 May 2004 12:34:14 -0600 (MDT)
2)确保xinetd正在运行(FreeBSD上的inetd)
[root@user sbin]# ps -ax | grep inetd | grep -v grep
On newer redhat/fedora/centos machines, you can install it with:
yum -y install xinetd
/sbin/service xinetd start
/sbin/chkconfig xinetd on
# default: on
# description: imapd
service imap
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/imapd
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}
FreeBSD:/etc/inetd.conf
imap4 stream tcp nowait root /usr/sbin/imapd imapd
[root@user]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN]
localhost IMAP4rev1 2003.339 at Thu, 13 May 2004 12:39:55 -0600 (MDT)
4)你也可以仔细检查imapd二进制文件是否是我们运行时包含的二进制文件:
rm -f /usr/sbin/imapd
cd /usr/local/directadmin/scripts
./imapd.sh
5)检查你的/ etc / hosts文件。 确保你有一行包含
127.0.0.1 localhost.localdomain localhost
6)如果您可以通过本地主机连接而不是从服务器外部连接,请检查您的防火墙设置以确保端口143处于打开状态。







