RE: imapd unavailable when a lot of connections are started from inetd

2002-03-04 Thread Enric Ramos


Darren,

I had the same behavior some weeks ago.
When the server had 500 imapd processes it hanged and it didn't response until the 
cyrus server was restarted...
my problem was related to the number of open files that the system was treating.

I don't know if this is the same problem, but try to increase this...

in my case, I have /proc/sys/fs/file-max setted to 100.
Try to do: echo 100  /proc/sys/fs/file-max and cross your fingers :-)

P.D: I use 100 due to the server we are using has a huge utilization... perhaps 
you will need to increase /proc/sys/fs/file-max to a lower number.

In this way I'm able to have, without further problems, 1500-2000 imapd processes and 
the server responds perfectly.

I hope this solves your issue.

Regards.

Enric

 -Mensaje original-
 De: Darren Nickerson [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 05 de marzo de 2002 1:53
 Para: Alain Tesio
 CC: cyrus
 Asunto: Re: imapd unavailable when a lot of connections are 
 started from
 inetd
 
 
 
  On Tue, 5 Mar 2002, Alain == Alain Tesio wrote:
 
   Alain Hello,
 
   Alain When I make a lot of connections with cyradm in a 
 row, the connection
   Alain fails after processing some of them, I don't know 
 where this limit
   Alain comes from, the problem is that the imap server is 
 definitely not
   Alain available, see details below.
 
   Alain Is it a known behaviour when imapd is started from 
 inetd, do you
   Alain consider this as a vulnerability to a DOS attack ?
 
 From the inetd man page:
 
  The optional ``max'' suffix (separated from ``wait'' or 
 ``nowait'' by
  a dot) specifies the maximum number of server instances 
 that may be
  spawned from inetd within an interval of 60 seconds. 
 When omitted, ``max''
  defaults to 40.
 
 -d
 
 
 



RE: Cyrus-Imapd-2.0.16 doesn´t work with aliases or virtusertable??

2002-03-04 Thread Enric Ramos


Hi Marcelo:

I have the same scenario than you...
And it works fine.

Try to put in virtusertable user1@domain instead of user1 only. It works for me.
(I mean: [EMAIL PROTECTED][EMAIL PROTECTED])
And don't forget to makemap the virtusertable file !!

Hope this helps.

Regards-

Enric

 -Mensaje original-
 De: Marcelo Maraboli [mailto:[EMAIL PROTECTED]]
 Enviado el: lunes, 04 de marzo de 2002 21:19
 Para: cyrus
 Asunto: Cyrus-Imapd-2.0.16 doesn´t work with aliases or 
 virtusertable??
 
 
 Hello folks.
 
 I have Cyrus-Imapd-2.0.16 working with sendmail-8.12.2 with one
 problem
 
 - I send an email to the server and it does not recognize the 
 /etc/mail/aliases entries unless the user has a valid cyrus account!!!
 
 Then how am I supposed to re-direct email to another domain for a 
 specific user..??
 
 i.e. in /etc/mail/aliases
 user1 [EMAIL PROTECTED]
 
 the same thing happens in /etc/mail/virtusertable...etc.
 
 any clues?
 -- 
 Marcelo Maraboli Rosselott
 Ingeniero Civil ElectronicoJefe Area de Redes
 (Electronic Civil Engineer)  (Head Network  Systems Admin)
 
Direccion Central de Servicios Computacionales (DCSC)
  Universidad Tecnica Federico Santa Maria, Chile.
 mailto:[EMAIL PROTECTED] http://elqui.dcsc.utfsm.cl/
 --/
 



character in mailbox name

2002-02-13 Thread Enric Ramos


Hi:

I need to create some mailboxes using '' character...
(For instance user.userco)

When I try to do this, cyradm show the following error:

cyrus cm user.userco
syntax error: cannot deal with `' here

Is there any limitation in using this character ?
If yes: someone knows what characters else souldn't be used ?

Regards...

Enric



RE: character in mailbox name

2002-02-12 Thread Enric Ramos


Cartsen:

I had tried this, but cyrus doesn't accept it

cyrus2 cm user.user-co  
syntax error: cannot deal with `' here

Thanks, and regards...

 -Mensaje original-
 De: Carsten Hoeger [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 12 de febrero de 2002 15:05
 Para: [EMAIL PROTECTED]
 Asunto: Re:  character in mailbox name
 
 
 On Tue, Feb 12, Enric Ramos wrote:
 
  I need to create some mailboxes using '' character...
  (For instance user.userco)
  
  When I try to do this, cyradm show the following error:
  
  cyrus cm user.userco
  syntax error: cannot deal with `' here
  
  Is there any limitation in using this character ?
  If yes: someone knows what characters else souldn't be used ?
 
  and - have special meanings and are used to mark utf7 encoded
 characters in folder names. If you want to use , you have to write
 -, e.g. user.user-co
 
 -- 
 With best regards,
 
 Carsten Hoeger
 
 SuSE, The Linux Experts, http://www.suse.com
 
 Key fingerprint = E3B6 7FDB 4800 0F22 DC09  EB2B 7988 B6A8 6691 C94A
 



imapd hungs

2002-01-30 Thread Enric Ramos


Hi:

I'm testing cyrus 2.0.15 (apllying it a mail stress tool) and imapd
process hungs...
It hangs always when the server has between 145 and 155 imapd
processes...
When I say hungs I mean that, for instance, if I make a connection to
port 143, the imapd process doesn't responds properly...

[root@cyrus2 bin]# telnet localhost 143
Trying 127.0.0.1...
Connected to cyrus2.
Escape character is '^]'

In this situation the server has a lot of memory available, has no
uptime and it seems that is doing nothing...
If the stress is not very hihgh... the cyrus works perfectly...

I have configured the imapd process in order to server until 500 childs
with the maxchild directive..

cyrus.conf looks like this:

# standard standalone server implementation

START {
  # do not delete these entries!
  mboxlist  cmd=ctl_mboxlist -r
  deliver   cmd=ctl_deliver -r

  # this is only necessary if using idled for IMAP IDLE
#  idledcmd=idled
}

# UNIX sockets start with a slash and are put into /var/imap/sockets
SERVICES {
  # add or remove based on preferences
  imap  cmd=imapd listen=imap prefork=20 maxchild=500 
  # imaps   cmd=imapd -s listen=imaps prefork=1
  pop3  cmd=pop3d listen=pop3 prefork=10 maxchild=50
  # pop3s   cmd=pop3d -s listen=pop3s prefork=1
  sieve cmd=timsieved listen=sieve prefork=0

  # at least one LMTP is required for delivery
#  lmtp cmd=lmtpd listen=lmtp prefork=0
  lmtpunix  cmd=lmtpd listen=/var/imap/socket/lmtp prefork=5
}

EVENTS {
  # this is required
  checkpointcmd=ctl_mboxlist -c period=30

  # this is only necessary if using duplicate delivery suppression
  delprune  cmd=ctl_deliver -E 3 period=1440
}

Any iadea ?

Regards...

Enric




RE: dothack and cyrus 2.0.16

2002-01-29 Thread Enric Ramos


Thanks Simon.
This is tha patch I tested yesterday...

...

But I have the same problem mentioned before...
When I apply this patch, it includes references to namespace.h and
this file doesn't exists in cyrus distribution...

Ken:

Thanks for you suggestion.


Enric Ramos
Network  System Specialyst
Atlas Internet Solutions
[EMAIL PROTECTED]


 -Mensaje original-
 De: simon [mailto:[EMAIL PROTECTED]]
 Enviado el: lunes, 28 de enero de 2002 23:28
 Para: [EMAIL PROTECTED]
 Asunto: Re: dothack and cyrus 2.0.16
 
 
 On Mon, 2002-01-28 at 21:38, Ken Murchison wrote:
  
  
  Joe Rhett wrote:
   
   Any chance one of you could do this so that the branch is 
 validated and up
   to date, please?   
 
 Briref note I have a patch for this (taken from the cvs ) at:-
 
 http://www.surf.org.uk/downloads/HIERSEP-r2.patch
 
 -- 
 Simon Loader
 
 



RE: dothack and cyrus 2.0.16

2002-01-28 Thread Enric Ramos


Hi.

Firstofall thanks for your help...
I've found the HIERSEP-r2.patch for cyrus-imapd-2.0.15..

Unfortunately, after apply this patch it includes references into
imapd.c,master.c etc... to namespace.h file... 
I havn't got this file anywhere, and obviosly, afetr applying this patch
cyrus doesn't compile...

Do you know where could I find this file (namespace.h) ??

I have search in 2.0.16,2.1.1,2.0.15... but this file doesn't exists...

Thsnks !

Enric

 -Mensaje original-
 De: Jeremy Howard [mailto:[EMAIL PROTECTED]]
 Enviado el: sábado, 26 de enero de 2002 8:22
 Para: Joe Rhett
 CC: Enric Ramos; [EMAIL PROTECTED]
 Asunto: Re: dothack and cyrus 2.0.16
 
 
We are locking for dothack patch in order to be able to create
 logins
with dots...
   
   The alternate separator patch is incorporated into 2.1, 
 which provides
 the
   same functionality.
 
  Yes, yes, but 2.1 requires the new SASL and all those 
 problems.  Since the
  'final answer' is stick with 2.0 until all the other 
 applications are
  updated then you need to keep supporting 2.0.
 
 Well then search for althier on google. There's a 2.0.15 
 patch floating
 around.
 
 



dothack and cyrus 2.0.16

2002-01-24 Thread Enric Ramos


Hi:

We are locking for dothack patch in order to be able to create logins
with dots...

i.e. enric.ramos.atlassolutions.net
so in cyradm ... we should do cm user_enric.ramos.atlassolutions.net
or something like this...

I know that in cyrus-imapd-2.0.12 this patch exists...
I have applied this patch into cyrus-imapd-2.0.16 but it doesn't work...

Could someone provide me this patch for this exact version ? (2.0.16)

It's urgent !!
I will really appreciate your help.

regards,

Enric Ramos
Atlas Internet Solutions
Telf: +34 934 452 461 - Fax: +34 934 452 462
e-mail: [EMAIL PROTECTED] -http://www.atlassolutions.net

*
La información transmitida en este mensaje es CONFIDENCIAL y está
dirigida únicamente al destinatario del mensaje arriba indicado. No
puede ser transmitida ni revelada a persona distinta del destinatario
sin autorización expresa del remitente.
La recepción de este mensaje, por cualquier causa, por persona distinta
al destinatario del mismo no le autoriza para hacer uso alguno de la
información. En este caso queda prohibida, y puede ser ilícita,
cualquier divulgación, copia, distribución y/o cualquier uso de la
información. Le rogamos borre inmediatamente el mensaje de su sistema y,
en su caso, todas las copias del mismo y lo notifique al remitente.
Gracias.