View Full Version : IMAP Server 111 : Connection refused
BrianUK
12-29-2007, 02:00 AM
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
BrianUK
12-31-2007, 04:39 AM
anyone? any help would be appriciated
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.
BrianUK
01-01-2008, 11:17 AM
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.
nobaloney
01-05-2008, 12:50 PM
Not necessarily, toml. If imapd is running as a service it shouldn't be in imapd.
Jeff
Yes, but he was trying to install it like the instructions on the Directadmin page http://help.directadmin.com/item.php?id=18 which shows having xinetd launch the process. If that is how he is going to launch it, then he certainly does need that file.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.