summaryrefslogtreecommitdiffstats
path: root/roles/IMAP/files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'roles/IMAP/files/etc')
-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