[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)
[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
}
imap4 stream tcp nowait root /usr/sbin/imapd imapd
Note that the /etc/inetd.conf will contain many other lines. Just make sure that this one exists somewhere.[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)
rm -f /usr/sbin/imapd
cd /usr/local/directadmin/scripts
./imapd.sh
127.0.0.1 localhost.localdomain localhost
6) If you can connect via localhost and not from outside the server, check your firewall settings to make sure port 143 is open.