IMAP Server 111 : Connection refused

BrianUK

Verified User
Joined
Feb 4, 2006
Messages
89
Having a problem with IMAP. Had a read through http://help.directadmin.com/item.php?id=18 but still no joy

earth:/# /usr/sbin/imapd
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN] earth.1net1.co.uk IMAP4rev1 2003.339 at Sat, 29 Dec 2007 09:55:06 +0000 (GMT)

earth:/# ps -ax | grep inetd | grep -v grep
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
21946 ? Ss 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive

earth:/# telnet localhost 143
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

Any ideas?

OS - Debian Sarge
 
Did you modify the /etc/xinetd.d/imap then restart xinetd or in your current case just doing a 'kill -HUP 21946' should tell it to rescan all config files. If you rebooted since the first post, then the number (pid) might be different.

To see if xinetd is listening to the imap port, you could issue the command 'netstat -a | grep imap', you may even have to change imap to 143 if you don't have imap in your /etc/services file.

If you are just starting now with imap, you may want to consider using Dovecot, I found that to be a much better imap server than the UW one. That one doesn't rely on the xinetd to handle connections.
 
issued kill comand and restarted

26255 ? Ss 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive

netstat -a | grep imap returns nothing

/etc/services shows

imap2 143/tcp imap # Interim Mail Access P 2 and 4
imap2 143/udp imap

/etc/xinetd.d/imap file doesn't exist
 
If there is no /etc/xinetd.d/imap file, then you need to create one like on the web site and restart xinetd, that is why it is not starting.
 
Not necessarily, toml. If imapd is running as a service it shouldn't be in imapd.

Jeff
 
Back
Top