summaryrefslogtreecommitdiffstats
path: root/roles/IMAP/files
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-07-04 17:48:17 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:52:27 +0200
commitc03c331b84b22f3322db1ad61b5dcd7fbaa020d3 (patch)
tree95cf47985efb5a51939648b5c03469721169185d /roles/IMAP/files
parentffce99c00193b83183be465f89e31fdd92c14da0 (diff)
Performance tuning in Dovecot's configuration.
Diffstat (limited to 'roles/IMAP/files')
-rw-r--r--roles/IMAP/files/etc/dovecot/conf.d/10-master.conf12
-rw-r--r--roles/IMAP/files/etc/dovecot/conf.d/20-imap.conf2
2 files changed, 11 insertions, 3 deletions
diff --git a/roles/IMAP/files/etc/dovecot/conf.d/10-master.conf b/roles/IMAP/files/etc/dovecot/conf.d/10-master.conf
index 30a6f8b..30e9fb6 100644
--- a/roles/IMAP/files/etc/dovecot/conf.d/10-master.conf
+++ b/roles/IMAP/files/etc/dovecot/conf.d/10-master.conf
@@ -15,6 +15,9 @@ default_login_user = dovenull
default_internal_user = dovecot
service imap-login {
+ inet_listener imap {
+ port = 0
+ }
inet_listener imaps {
port = 993
ssl = yes
@@ -25,8 +28,11 @@ service imap-login {
# is faster. <doc/wiki/LoginProcess.txt>
service_count = 1
+ # Max. number of IMAP processes (logins)
+ process_limit = 256
+
# Number of processes to always keep waiting for more connections.
- #process_min_avail = 0
+ process_min_avail = 4
# If you set service_count=0, you probably need to grow this.
#vsz_limit = $default_vsz_limit
@@ -46,7 +52,6 @@ service pop3-login {
service lmtp {
user = vmail
- process_min_avail = 3
unix_listener /var/spool/postfix-mda/private/dovecot-lmtpd {
group = postfix
@@ -60,6 +65,9 @@ service lmtp {
#address =
#port =
#}
+
+ # Number of processes to always keep waiting for more connections.
+ process_min_avail = 4
}
service imap {
diff --git a/roles/IMAP/files/etc/dovecot/conf.d/20-imap.conf b/roles/IMAP/files/etc/dovecot/conf.d/20-imap.conf
index 6771cc7..fa127c6 100644
--- a/roles/IMAP/files/etc/dovecot/conf.d/20-imap.conf
+++ b/roles/IMAP/files/etc/dovecot/conf.d/20-imap.conf
@@ -10,7 +10,7 @@ protocol imap {
# Maximum number of IMAP connections allowed for a user from each IP address.
# NOTE: The username is compared case-sensitively.
- #mail_max_userip_connections = 10
+ mail_max_userip_connections = 16
# Space separated list of plugins to load (default is global mail_plugins).
#mail_plugins = $mail_plugins antispam