Skip to content
Snippets Groups Projects
Commit 6b97c423 authored by Lars Beckers's avatar Lars Beckers
Browse files

dovecot: add options to finetune imap resource usage

parent 1488eeab
Branches
No related tags found
1 merge request!16Minimal Viable FSMPI Deployment
This commit is part of merge request !16. Comments created here will be created in the context of that merge request.
...@@ -35,6 +35,10 @@ dovecot_sieve: 'file:~/sieve;active=~/.dovecot.sieve' ...@@ -35,6 +35,10 @@ dovecot_sieve: 'file:~/sieve;active=~/.dovecot.sieve'
# These variables were introduced for compatibility to a certain setup. # These variables were introduced for compatibility to a certain setup.
# They may disappear without prior notice and/or may not work as expected. # They may disappear without prior notice and/or may not work as expected.
dovecot_process_limit: 100
dovecot_client_limit: 1000
dovecot_imap_idle_interval: '29 mins'
dovecot_imap_max_userip_connections: 40
dovecot_lda_mailbox_autocreate: false dovecot_lda_mailbox_autocreate: false
dovecot_lda_mailbox_autosubscribe: false dovecot_lda_mailbox_autosubscribe: false
dovecot_auth_realms: [] dovecot_auth_realms: []
......
#default_process_limit = 100 default_process_limit = {{ dovecot_process_limit }}
#default_client_limit = 1000 default_client_limit = {{ dovecot_client_limit }}
# Default VSZ (virtual memory size) limit for service processes. This is mainly # Default VSZ (virtual memory size) limit for service processes. This is mainly
# intended to catch and kill processes that leak memory before they eat up # intended to catch and kill processes that leak memory before they eat up
...@@ -99,7 +99,15 @@ service auth { ...@@ -99,7 +99,15 @@ service auth {
# user = $default_internal_user # user = $default_internal_user
user = dovecot user = dovecot
group = dovecot group = dovecot
{% if dovecot_client_limit != 1000 %}
client_limit = {{ dovecot_client_limit * 2 }}
{% endif %}
} }
{% if dovecot_client_limit != 1000 %}
service anvil {
client_limit = {{ dovecot_client_limit + 500 }}
}
{% endif %}
service auth-worker { service auth-worker {
# Auth worker process is run as root by default, so that it can access # Auth worker process is run as root by default, so that it can access
......
...@@ -39,8 +39,7 @@ ...@@ -39,8 +39,7 @@
# How long to wait between "OK Still here" notifications when client is # How long to wait between "OK Still here" notifications when client is
# IDLEing. # IDLEing.
#imap_idle_notify_interval = 2 mins imap_idle_notify_interval = {{ dovecot_imap_idle_interval }}
imap_idle_notify_interval = 29 mins
# ID field names and values to send to clients. Using * as the value makes # ID field names and values to send to clients. Using * as the value makes
# Dovecot use the default value. The following fields have default values # Dovecot use the default value. The following fields have default values
...@@ -92,12 +91,11 @@ imap_idle_notify_interval = 29 mins ...@@ -92,12 +91,11 @@ imap_idle_notify_interval = 29 mins
protocol imap { protocol imap {
# Space separated list of plugins to load (default is global mail_plugins). # Space separated list of plugins to load (default is global mail_plugins).
#mail_plugins = $mail_plugins mail_plugins = $mail_plugins
# Maximum number of IMAP connections allowed for a user from each IP address. # Maximum number of IMAP connections allowed for a user from each IP address.
# NOTE: The username is compared case-sensitively. # NOTE: The username is compared case-sensitively.
#mail_max_userip_connections = 10 mail_max_userip_connections = {{ dovecot_imap_max_userip_connections }}
mail_max_userip_connections = 40
} }
{% if dovecot_content_filter %} {% if dovecot_content_filter %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment