IDLE command and signalled to death by 14

2001-01-16 Thread John Holman

My posting yesterday described a bug in Cyrus 2.0.9 that causes loss of
messages in the source mailbox after the server aborts a copy command with
message "signalled to death by 14".

Here is some more information about the circumstances under which the copy
command is aborted in the first place.  I've discovered (on Solaris 7 at
least) that if the client has previously used the IDLE command, then a copy
command that does not complete within about 33 seconds is aborted with the
"signalled to death by 14" message and the IMAP connection closed by the
server. All is well if the client does not use the IDLE command.  Perhaps
any command not completing within about 30 seconds will meet a similar
fate - I haven't checked. This might point to a problem in the IDLE code.

--
 John Holman
 Queen Mary. University of London, UK






IDLE problem

2001-01-16 Thread John Holman

(Follow up to last message)

In fact the IDLE problem is quite general. If the client has used the IDLE
command, it seems that the imapd process will be killed and the connection
closed with "signalled to death by 14"
whenever more than about 50 seconds passes between commands sent by the
client. Unless I misunderstand something, this shouldn't be happening.

eg

...
4 IDLE
+ go ahead
done
4 OK Completed

wait 50 seconds

server closes imap connection and reports "signalled to death by 14"


Thanks, John..


--
John Holman
Queen Mary. Universitly of London, UK





Re: IDLE problem

2001-01-16 Thread Ken Murchison



John Holman wrote:
 
 (Follow up to last message)
 
 In fact the IDLE problem is quite general. If the client has used the IDLE
 command, it seems that the imapd process will be killed and the connection
 closed with "signalled to death by 14"
 whenever more than about 50 seconds passes between commands sent by the
 client. Unless I misunderstand something, this shouldn't be happening.
 
 eg
 
 ...
 4 IDLE
 + go ahead
 done
 4 OK Completed
 
 wait 50 seconds
 
 server closes imap connection and reports "signalled to death by 14"

John,

Forget about my last message, here is the fix.  This was stupid, I don't
know how I missed this.  I must have changed the signal disposition at
the last minute without testing it.  I apologize for any problems that
this caused.  This fix (and a similar one for idle_idled.c) is in CVS
and will be in the next release.

Ken

diff -c -r1.1 -r1.2
*** idle_poll.c 2000/12/14 19:26:48 1.1
--- idle_poll.c 2001/01/16 16:54:26 1.2
***
*** 88,92 
  void idle_done(struct mailbox *mailbox)
  {
  /* Remove the polling function */
! signal(SIGALRM, SIG_DFL);
  }
--- 88,92 
  void idle_done(struct mailbox *mailbox)
  {
  /* Remove the polling function */
! signal(SIGALRM, SIG_IGN);
  }

-- 
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp



Cyradm - can't locate Shell.pm

2001-01-16 Thread Karlheinz Blank

Hi,

I've successfully (partially) installed Cyrus 2.0.9 on SuSE 7.0. Imtest 
is working. But so far I've been unable to execute cyradm. 
The following error message appears: 

Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC contains: 
/usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503 
/usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005 .).
BEGIN failed--compilation aborted.

My path to perl is /usr/bin/perl. Could that be a potential problem. I really don't 
know where
to search for the error.

Do I have a chance to create mailboxes without cyradm? Maybe with a webfrontend??

Any help appreciated...

Karlheinz

btw. - Is it possible to store 5-10 imap mailboxes on a Pentium166/64mb (also running 
squid, apache, sendmail, samba with very low load)? How does it perform? 





Re: IDLE problem

2001-01-16 Thread Chris Blown

Cheers Ken,

Thanks for speedy patch.

Regs
Chris
Linux System Admin
Hinterlands Aust.

Ken Murchison wrote:

 John,

 Forget about my last message, here is the fix.  This was stupid, I don't
 know how I missed this.  I must have changed the signal disposition at
 the last minute without testing it.  I apologize for any problems that
 this caused.  This fix (and a similar one for idle_idled.c) is in CVS
 and will be in the next release.

 Ken

 diff -c -r1.1 -r1.2
 *** idle_poll.c 2000/12/14 19:26:48 1.1
 --- idle_poll.c 2001/01/16 16:54:26 1.2
 ***
 *** 88,92 
   void idle_done(struct mailbox *mailbox)
   {
   /* Remove the polling function */
 ! signal(SIGALRM, SIG_DFL);
   }
 --- 88,92 
   void idle_done(struct mailbox *mailbox)
   {
   /* Remove the polling function */
 ! signal(SIGALRM, SIG_IGN);
   }

 --
 Kenneth Murchison Oceana Matrix Ltd.
 Software Engineer 21 Princeton Place
 716-662-8973 x26  Orchard Park, NY 14127
 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp




Re: Cyradm - can't locate Shell.pm

2001-01-16 Thread Chris Blown

Karlheinz

I'm sure about the perl problem. My guess is a missing perl module ;-)

But you can create a user mail box using ( as the cyrus user) createmailbox 
user.freddy
you can then also use listmailbox user.freddy

The user authentication credentials must be set up for the user to login, how this is 
done depends
on your SASL method.

I think 5-10 mailboxes on that machine would be ok. I roughly gauge at about 1Mb of  
physical
memory for each connected user. Though it might get a little slow when the other 
services load up.

Regards
Chris Blown
Linux System Admin
Hinterlands Aust.


Karlheinz Blank wrote:

 Hi,

 I've successfully (partially) installed Cyrus 2.0.9 on SuSE 7.0. Imtest
 is working. But so far I've been unable to execute cyradm.
 The following error message appears:

 Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC contains: 
/usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503 
/usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005 .).
 BEGIN failed--compilation aborted.

 My path to perl is /usr/bin/perl. Could that be a potential problem. I really don't 
know where
 to search for the error.

 Do I have a chance to create mailboxes without cyradm? Maybe with a webfrontend??

 Any help appreciated...

 Karlheinz

 btw. - Is it possible to store 5-10 imap mailboxes on a Pentium166/64mb (also 
running squid, apache, sendmail, samba with very low load)? How does it perform?




Re: Cyradm - can't locate Shell.pm

2001-01-16 Thread Avi Schwartz

I had to go through the same issue.  This is what I had to do (if my notes 
are correct):

1. cd /usr/local/lib/perl5/site_perl/5.005/i586-linux
2. mv Cyrus /usr/lib/perl5/site_perl/5.005/i586-linux/
3. mv auto/* /usr/lib/perl5/site_perl/5.005/i586-linux/auto 


Avi

--On Tuesday, January 16, 2001 11:17:22 PM +0100 Karlheinz Blank 
[EMAIL PROTECTED] wrote:

 Hi,

 I've successfully (partially) installed Cyrus 2.0.9 on SuSE 7.0. Imtest
 is working. But so far I've been unable to execute cyradm.
 The following error message appears:

 Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC contains:
 /usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503
 /usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005
 .). BEGIN failed--compilation aborted.

 My path to perl is /usr/bin/perl. Could that be a potential problem. I
 really don't know where to search for the error.

 Do I have a chance to create mailboxes without cyradm? Maybe with a
 webfrontend??

 Any help appreciated...

 Karlheinz

 btw. - Is it possible to store 5-10 imap mailboxes on a Pentium166/64mb
 (also running squid, apache, sendmail, samba with very low load)? How
 does it perform?






-- 
Avi Schwartz   Get a Life,
[EMAIL PROTECTED]   Get Linux!



Authentication Cyrus/sasl

2001-01-16 Thread Juan Leon

I have tried about a million things.  I am going to rant a bit
hoping that something rings a bell and some advice miraculously
pours forth. This is with SASL 1.5.24, cyrus 1.6.24 and 2.0.9,
Linux 2.2.16 (RH 7.0).  I will be eternally grateful if you can
help.

 I am trying to install a cyrus that works with Mulberry and
Netscape.  I got both 2.0.9 and 1.6.24 working with Mulberry
with DIGEST-MD5, etc. But none gives me PLAIN for Netscape (or
Mulberry). SASL's sample-server reports that SASL is offering
everything except ANONYMOUS, so that would not appear to be the
problem.

 So I read in the docs for cyrus 1.5.something that PLAIN
won't show up but that it works as LOGIN.  I am not sure what
this means: does cyrus' LOGIN become SASL's PLAIN? Does Cyrus
LOGIN become SASL's LOGIN?  Neither?  Apparently the latter:
my /usr/lib/sasl/Cyrus.conf (and imap.conf and cyrus.conf for
good measure) has pwcheck_method: sasldb.  I check via ldd
and strace that, indeed, this is the right config directory.
Yet per the auth.log (which PAM, unlike SASL, is civilized
enough to use) cyrus insists on trying to authenticate
LOGIN through PAM, which fails because it is user cyrus requesting
the auth.

 OK, in the cyrus docs for version 2.0.9 I read that I need to
enable STARTTLS in order for PLAIN to show up (another approach).
I have enabled STARTTLS as far as I know, but Netscape is still
failing.  Does cyrus pretend to not grok TLS if there is no
certificate? I will put one in, but there are only so many
things I can try in a week.

 On a mostly unrelated note, sendmail is failing to authenticate via
DIGEST-MD5 or anything else (I have recompiled it with
GroupWriteUnsafeSASL or whatever).  This, and the above, makes
me want BAD to put a trace on SASL.  I have tried redefining the
VL macro to syslog, but this makes everything fail.  Is there
a way of finding out what SASL is doing?   It certainly doesn't
output anything to auth.log (or any other log) of its own will.
I will ask this in the sasl list, but I thought you might know.

 Thanks a lot for any help.  If I resolve this, I promise I will
write an answer to some of those future FAQs that are  pending.

Juan