Use one imap-login process for all logins

This commit is contained in:
Felix 2015-12-22 17:02:42 +01:00
parent bc79319864
commit 4155b5626d
1 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,14 @@ apt_install \
tools/editconf.py /etc/dovecot/conf.d/10-master.conf \ tools/editconf.py /etc/dovecot/conf.d/10-master.conf \
default_process_limit=$(echo "`nproc` * 250" | bc) default_process_limit=$(echo "`nproc` * 250" | bc)
# Configure dovecot to use one imap-login process that is always available
# for all logins to improve performance.
# This should have no security implications as we already use only one system
# user for all of our virtual mailboxes.
tools/editconf.py /etc/dovecot/conf.d/10-master.conf \
service_count=0 \
process_min_avail=1
# The inotify `max_user_instances` default is 128, which constrains # The inotify `max_user_instances` default is 128, which constrains
# the total number of watched (IMAP IDLE push) folders by open connections. # the total number of watched (IMAP IDLE push) folders by open connections.
# See http://www.dovecot.org/pipermail/dovecot/2013-March/088834.html. # See http://www.dovecot.org/pipermail/dovecot/2013-March/088834.html.