Discussion:
Cyrus again. Cyradm: cannot connect to server
Jaroslav Vrbicky
2005-07-18 08:29:32 UTC
Permalink
Hi list,

On my TSL 3.0 (also TSL 2.2) server I cannot log into cyradm at all!
When I run

# cyradm -u cyrus localhost

the answer is:

cyradm: cannot connect to server

This is pretty strange, because there is no sign of any error in logs.
Saslauthd is running, so I've tried to test it with testsaslauthd (is
missing in TSL 2.2 ?) and authentication is OK. In my previous post
(before swup --upgrade:):

http://lists.trustix.org/pipermail/tsl-discuss/2005-July/014910.html

this error did not appear, so I tried to reinstall server, but I didn't
succeed. I repeated installation in the same way as for the first time
but I forgot to start saslauthd prior to log in, so the error was same
as mentioned above. Then I started saslauthd service but when I tried to
log in, the error message did not change!

I realize that this strange behavior also includes TSL 2.2. Last time I
found it working was about 27th of June. Then after couple of upgrades
(don't know exactly which one) I can't log into cyradm at all now.

I don't know what else can I do about it. I can't manage my mailboxes at
all. Any help appreciated.

Thanks,

--
Jaroslav Vrbicky
Ajith Vargese Thampi
2005-07-18 08:53:48 UTC
Permalink
Post by Jaroslav Vrbicky
Hi list,
On my TSL 3.0 (also TSL 2.2) server I cannot log into cyradm at all!
When I run
# cyradm -u cyrus localhost
cyradm: cannot connect to server
Is service /etc/init.d/cyrus started ?
I don't see anything wrong with connecting.
And as per your saying, saslauthd has already been started, right? Check
if they are running.

-- Aristo
Jaroslav Vrbicky
2005-07-18 10:12:06 UTC
Permalink
Hi,
Post by Ajith Vargese Thampi
Is service /etc/init.d/cyrus started ?
I started it with service cyrus start, but here is screen dump of
netstat: # netstat -pevan |grep cyrus
---
tcp 0 0 0.0.0.0:995 0.0.0.0:*
LISTEN 0 286002 11674/cyrus-master
tcp 0 0 0.0.0.0:2000 0.0.0.0:*
LISTEN 0 286004 11674/cyrus-master
unix 2 [ ACC ] STREAM LISTENING 286006
11674/cyrus-master /var/spool/cyrus-imap/socket/lmtp
unix 2 [ ACC ] STREAM LISTENING 285713 11554/master
private/old-cyrus
unix 2 [ ACC ] STREAM LISTENING 285717 11554/master
private/cyrus
unix 2 [ ] DGRAM 285990 11674/cyrus-master
---
Post by Ajith Vargese Thampi
I don't see anything wrong with connecting.
And as per your saying, saslauthd has already been started, right? Check
if they are running.
And here is screen dump for sasl: # netstat -pevan |grep sasl
---
unix 2 [ ACC ] STREAM LISTENING 285539 11495/saslauthd
/var/run/saslauthd/mux
unix 2 [ ] DGRAM 285538 11495/saslauthd
---

And here is the rest: # cyradm -u cyrus localhost
cyradm: cannot connect to server

But then I tried to uncomment other service lines in my cyrus.conf
and restarted cyrus.
---
tcp 0 0 0.0.0.0:993 0.0.0.0:*
LISTEN 0 287695 11744/cyrus-master
tcp 0 0 0.0.0.0:995 0.0.0.0:*
LISTEN 0 287699 11744/cyrus-master
tcp 0 0 0.0.0.0:110 0.0.0.0:*
LISTEN 0 287697 11744/cyrus-master
tcp 0 0 0.0.0.0:143 0.0.0.0:*
LISTEN 0 287693 11744/cyrus-master
tcp 0 0 0.0.0.0:2000 0.0.0.0:*
LISTEN 0 287701 11744/cyrus-master
unix 2 [ ACC ] STREAM LISTENING 287703
11744/cyrus-master /var/spool/cyrus-imap/socket/lmtp
unix 2 [ ACC ] STREAM LISTENING 285713 11554/master
private/old-cyrus
unix 2 [ ACC ] STREAM LISTENING 285717 11554/master
private/cyrus
unix 2 [ ] DGRAM 287681 11744/cyrus-master
---
And now, it is working! I did not realize that the imap service is
essential for log into cyradm...

Thanks for your point.

--
Jaroslav Vrbicky

Loading...