[Dovecot] difference between client_limit and process_limit

Angel L. Mateo amateo at um.es
Wed Jun 13 15:15:30 EEST 2012


On 13/06/12 14:06, Timo Sirainen wrote:
> On Wed, 2012-06-13 at 13:15 +0200, Angel L. Mateo wrote:
>> 	In my test environment I have configured (this is extracted from
>> doveconf -n output):
>>
>> service imap-login {
>>     client_limit = 10740
>>     executable = imap-login director
>>     process_limit = 1
>>     process_min_avail = 1
>> }
>>
>> 	When I made the first connection, there's no problem, but if I try a
>> second while the first is still open, I get:
>>
>> Jun 13 13:09:12 myotis40 dovecot: master: Warning: service(imap-login):
>> client_limit (1) reached, client connections are being dropped
>>
>> 	Why is telling me that client_limit is reached? What client_limit is used?
>
> Dunno. What Dovecot version? Show the whole doveconf -n? You don't have
> multiple dovecot.confs, right?
>
>
	2.1.5. Whole doveconf is attached. As far as I could find, I don't have 
multiple.confs but, because I'm managing configuration with puppet, is 
easier for me to have a few "service imap-login" entries in the 
10-master.conf file. In previous checks I did, it seems to be mixed 
without problems, but I'm going to try to manually mixed them. What I 
have is:

service imap-login {
   inet_listener imap {
     #port = 143
   }
   inet_listener imaps {
     #port = 993
     #ssl = yes
   }

   # Number of connections to handle before starting a new process. 
Typically
   # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
   # is faster. <doc/wiki/LoginProcess.txt>
   #service_count = 1

   # Number of processes to always keep waiting for more connections.
   #process_min_avail = 0

   # If you set service_count=0, you probably need to grow this.
   #vsz_limit = $default_vsz_limit
}

...

service imap-login {
   executable = imap-login director
   client_limit = 10740
   process_limit = 1
   process_min_avail = 1
}



-- 
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información       _o)
y las Comunicaciones Aplicadas (ATICA)      / \\
http://www.um.es/atica                    _(___V
Tfo: 868887590
Fax: 868888337


-------------- next part --------------
# 2.1.5: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-4-amd64 x86_64 Ubuntu 10.04.4 LTS 
auth_cache_size = 20 M
auth_cache_ttl = 1 days
auth_debug = yes
auth_master_user_separator = *
auth_username_format = %n
auth_verbose = yes
default_process_limit = 1000
director_mail_servers = 155.54.211.161-155.54.211.164
director_servers = 155.54.211.187
disable_plaintext_auth = no
lmtp_proxy = yes
log_timestamp = %Y-%m-%d %H:%M:%S
mail_debug = yes
namespace {
  hidden = no
  inbox = yes
  list = yes
  location = 
  prefix = 
  separator = /
  subscriptions = yes
  type = private
}
namespace {
  hidden = yes
  inbox = no
  list = no
  location = maildir:~/Maildir/expunged:INDEX=/var/indexes/%n
  prefix = .EXPUNGED/
  separator = /
  subscriptions = no
  type = private
}
namespace {
  hidden = yes
  inbox = no
  list = no
  location = maildir:~/Maildir/deleted:INDEX=/var/indexes/%n
  prefix = .DELETED/
  separator = /
  subscriptions = no
  type = private
}
namespace {
  hidden = yes
  inbox = no
  list = no
  location = maildir:~/Maildir/deleted/expunged:INDEX=/var/indexes/%n
  prefix = .DELETED/.EXPUNGED/
  separator = /
  subscriptions = no
  type = private
}
namespace {
  inbox = yes
  location = 
  prefix = 
  separator = /
}
passdb {
  args = /etc/dovecot/master-users
  driver = passwd-file
  master = yes
  pass = yes
}
passdb {
  args = proxy=y nopassword=y
  driver = static
}
passdb {
  args = session=yes dovecot
  driver = pam
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_extensions = +imapflags
  sieve_max_redirects = 15
}
protocols = imap pop3 lmtp imap lmtp pop3
service anvil {
  client_limit = 2003
}
service auth {
  client_limit = 3000
  unix_listener auth-userdb {
    mode = 0666
  }
}
service director {
  fifo_listener login/proxy-notify {
    mode = 0666
  }
  inet_listener {
    port = 9090
  }
  unix_listener director-userdb {
    mode = 0600
  }
  unix_listener login/director {
    mode = 0666
  }
}
service imap-login {
  client_limit = 10740
  executable = imap-login director
  process_limit = 1
  process_min_avail = 1
}
service imap {
  process_limit = 5120
  process_min_avail = 1
}
service lmtp {
  inet_listener lmtp {
    port = 24
  }
  process_min_avail = 10
}
service pop3-login {
  client_limit = 2500
  executable = pop3-login director
  process_limit = 1
  process_min_avail = 1
}
service pop3 {
  process_min_avail = 1
}
ssl = no
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lmtp {
  auth_socket_path = director-userdb
}


More information about the dovecot mailing list