"Connection refused" when setting up cyrus-imapd - SOLVED

Veritas veritas at cogeco.ca
Fri Sep 12 22:06:50 PDT 2003


On Fri, 12 Sep 2003 21:35:20 -0400
Brian Bobowski <bbobowski at cogeco.ca> wrote:

> On Thu, 11 Sep 2003 22:47:42 -0500
> "Micheal Patterson" <micheal at cancercare.net> wrote:
> > > However, when I run imtest and point it to my localhost, it immediately
> > gives me the following response:
> > >
> > > connect: Connection refused
> > > failure: Network initialization
> > >
> > Not being familiar with imap that well as my organizaiton prefers pop3, I'll
> > assume that it hooks into wrappers. If so, you'll need an entry in the
> > hosts.allow file to allow connections to the daemon. Check out your
> > /var/log/messages to see if there's any rejected connections.
> > 
> 
> Nothing relevant in /var/log/messages when I try using imtest. If I try connecting to the server with my mail client, I get no reply(positive nor negative; Sylpheed is uninformative that way). However, it seems like sendmail's trying to to its work:
> 
> Sep 12 21:02:59 myhostname sm-mta[22959]: h8CBWwMc020830: SYSERR(root): Could not connect to socket /var/imap/socket/lmtp: Connection refused by localhost
> 
> There was a defaulted setting in /etc/hosts.allow about not allowing other daemons to accept connections - I think - but I removed that. Still not much happening, and imtest still doesn't work, either. sm-mta(different PID each time) is still getting that error.
> 
> imapd.log is empty.
> 
> Is it not enough in this case to restart inetd? Is there a way for me to reload those settings without restarting the whole system?
> 
> -BB

Turns out the problem was in /usr/local/etc, where cyrus.conf was in the same format as imapd.conf. It wasn't being told which sockets to open. I copied cyrus.conf.dist over it, now I'm getting something else to work through. Hopefully I'll be able to progress on my own.


More information about the freebsd-questions mailing list