[Dovecot] Can`t get over 1024 processes on FreeBSD - possible bug?

Tomáš Randa tomas at blueboard.cz
Fri Sep 21 12:32:37 EEST 2012


Hello,

I still cannot get dovecot running with more then 1000 processes, but 
hard limit is 8192 per user in box. I tried everything, including 
modifying startup script of dovecot to set ulimit -u 8192. Could it be 
some dovecot bug or dovecot<>freebsd bug?
I also tried to set client_limit=2 in imap service to spawn more imap 
clients in one process, but still I am over 1000 processes with kernel 
message:

maxproc limit exceeded by uid 89


Could anybody help? Many thanks Tomas


My system have following settings:

FreeBSD 9.0 / AMD64
Dovecot 2.1.8
kern.maxproc: 12288
kern.maxfilesperproc: 36864
kern.maxprocperuid: 8192

no limit for uid 89:

# limit
cputime      unlimited
filesize     unlimited
datasize     33554432 kbytes
stacksize    524288 kbytes
coredumpsize unlimited
memoryuse    unlimited
vmemoryuse   unlimited
descriptors  36864
memorylocked unlimited
maxproc      8192
sbsize       unlimited
swapsize     unlimited


My dovecot.conf:

# 2.1.8: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 9.0-STABLE amd64
auth_mechanisms = plain login digest-md5 cram-md5
default_client_limit = 2048
default_process_limit = 2048
disable_plaintext_auth = no
first_valid_gid = 89
first_valid_uid = 89
info_log_path = /data/logfiles/dovecot/dovecot-info.log
last_valid_gid = 89
last_valid_uid = 89
listen = *
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_greeting = Mail Toaster (Dovecot) ready.
mail_location = maildir:~/Maildir
mail_plugins = " quota"
mail_privileged_group = mail
maildir_broken_filename_sizes = yes
passdb {
   driver = vpopmail
}
plugin {
   quota = maildir
   quota_rule = Trash:ignore
   sieve = ~/.sieve/dovecot.sieve
   sieve_dir = ~/.sieve
}
protocols = imap pop3 sieve
service anvil {
   client_limit = 6147
}
service auth {
   client_limit = 8192
   unix_listener auth-client {
     mode = 0660
   }
   unix_listener auth-master {
     mode = 0600
   }
}
service imap-login {
   process_limit = 2048
   service_count = 1
}
service imap {
   client_limit = 1
   process_limit = 2048
}
service managesieve {
   process_limit = 2048
}
service pop3-login {
   process_limit = 2048
   service_count = 1
}
service pop3 {
   client_limit = 1
   process_limit = 2048
}
shutdown_clients = no
ssl_cert = </var/qmail/control/servercert.pem
ssl_key = </var/qmail/control/servercert.pem
userdb {
   args = blocking=yes
   driver = passwd
}
userdb {
   driver = vpopmail
}
verbose_proctitle = yes
protocol imap {
   imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
   mail_max_userip_connections = 2048
   mail_plugins = quota imap_quota
}
protocol lda {
   mail_plugins = quota sieve
   sendmail_path = /var/qmail/bin/sendmail
}
protocol sieve {
   managesieve_implementation_string = dovecot
   managesieve_max_line_length = 65536

}




More information about the dovecot mailing list