cyradmin cannot connect (was: Shared IMAP Folder)

Brock, Anthony - NET Anthony.Brock at oregonstate.edu
Tue Jul 11 15:15:45 UTC 2006


You then need to make sure the server is running. The error message "cyradm: cannot connect to server" can indicate that you don't have the imap service running. You should be able to see something similar to:

# lsof -i | egrep 'PID|imap' | egrep 'PID|LIST'
COMMAND     PID    USER   FD   TYPE DEVICE SIZE NODE NAME
master    26691   cyrus    5u  IPv4 172199       TCP localhost:imap (LISTEN)
master    26691   cyrus   10u  IPv6 172202       TCP localhost:imap (LISTEN)
master    26691   cyrus   13u  IPv6 172206       TCP *:imaps (LISTEN)
master    26691   cyrus   16u  IPv4 172209       TCP *:imaps (LISTEN)
imapd     26782   cyrus    4u  IPv6 172206       TCP *:imaps (LISTEN)
imapd     26791   cyrus    4u  IPv6 172206       TCP *:imaps (LISTEN)
imapd     26792   cyrus    4u  IPv6 172206       TCP *:imaps (LISTEN)
imapd     26833   cyrus    4u  IPv4 172209       TCP *:imaps (LISTEN)
imapd     26836   cyrus    4u  IPv4 172209       TCP *:imaps (LISTEN)
imapd     27712   cyrus    4u  IPv4 172209       TCP *:imaps (LISTEN)
imapd     27789   cyrus    4u  IPv4 172209       TCP *:imaps (LISTEN)
imapd     27842   cyrus    4u  IPv4 172209       TCP *:imaps (LISTEN)
imapd     28451   cyrus    4u  IPv4 172209       TCP *:imaps (LISTEN)
imapd     28452   cyrus    4u  IPv4 172209       TCP *:imaps (LISTEN)
imapd     28460   cyrus    4u  IPv4 172209       TCP *:imaps (LISTEN)

If you don't see the "master" process listening to 143/tcp, then cyradm will never work (it connects to this process to manage the server). Also, at least with the version I'm running, cyradm does NOT support unencrypted connections. So I have imap listening to 143/tcp on localhost with the following in my '/etc/cyrus.conf' file:

  imap          cmd="imapd" listen="localhost:imap" prefork=0

Good luck!

Tony


> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org 
> [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Nagy László
> Sent: Tuesday, July 11, 2006 2:22 AM
> To: freebsd-questions at freebsd.org
> Subject: cyradmin cannot connect (was: Shared IMAP Folder)
> 
> 
>   Hello,
> 
> I'm trying to install sasl2 + cyrus-imapd, using this article:
> 
> http://www.onlamp.com/pub/a/onlamp/2005/10/06/cyrus_imap.html?page=2
> 
> I found the article very helpful. I could do everything until 
> the point 
> where I need to create a user in cyrus. There I have an error message:
> 
> #cyradm --user admin 127.0.0.1
> cyradm: cannot connect to server
> 
> I see no messages in /var/log/messages. The program immediately 
> terminates with this error message. What can be the problem?
> 
> Thanks,
> 
>    Laszlo
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
> 


More information about the freebsd-questions mailing list