Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
communication
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
communication
Commits
094a235d
Commit
094a235d
authored
7 years ago
by
Hinrikus Wolf
Browse files
Options
Downloads
Patches
Plain Diff
enhance idle connections
parent
666f64d0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dovecot/tasks/main.yml
+1
-0
1 addition, 0 deletions
dovecot/tasks/main.yml
dovecot/templates/conf.d/20-imap.conf.j2
+77
-0
77 additions, 0 deletions
dovecot/templates/conf.d/20-imap.conf.j2
with
78 additions
and
0 deletions
dovecot/tasks/main.yml
+
1
−
0
View file @
094a235d
...
...
@@ -21,6 +21,7 @@
-
{
src
:
'
templates/conf.d/10-master.conf.j2'
,
dest
:
'
/etc/dovecot/conf.d/10-master.conf'
}
-
{
src
:
'
templates/conf.d/10-ssl.conf.j2'
,
dest
:
'
/etc/dovecot/conf.d/10-ssl.conf'
}
-
{
src
:
'
templates/conf.d/20-managesieve.conf.j2'
,
dest
:
'
/etc/dovecot/conf.d/20-managesieve.conf'
}
-
{
src
:
'
templates/conf.d/20-imap.conf.j2'
,
dest
:
'
/etc/dovecot/conf.d/20-imap.conf'
}
-
{
src
:
'
templates/conf.d/20-lmtp.conf.j2'
,
dest
:
'
/etc/dovecot/conf.d/20-lmtp.conf'
}
-
{
src
:
'
templates/conf.d/90-sieve.conf.j2'
,
dest
:
'
/etc/dovecot/conf.d/90-sieve.conf'
}
-
{
src
:
'
templates/conf.d/auth-passwdfile.conf.ext.j2'
,
dest
:
'
/etc/dovecot/conf.d/auth-passwdfile.conf.ext'
}
...
...
This diff is collapsed.
Click to expand it.
dovecot/templates/conf.d/20-imap.conf.j2
0 → 100644
+
77
−
0
View file @
094a235d
##
## IMAP specific settings
##
# If nothing happens for this long while client is IDLEing, move the connection
# to imap-hibernate process and close the old imap process. This saves memory,
# because connections use very little memory in imap-hibernate process. The
# downside is that recreating the imap process back uses some resources.
#imap_hibernate_timeout = 0
# Maximum IMAP command line length. Some clients generate very long command
# lines with huge mailboxes, so you may need to raise this if you get
# "Too long argument" or "IMAP command line too large" errors often.
#imap_max_line_length = 64k
# IMAP logout format string:
# %i - total number of bytes read from client
# %o - total number of bytes sent to client
# %{fetch_hdr_count} - Number of mails with mail header data sent to client
# %{fetch_hdr_bytes} - Number of bytes with mail header data sent to client
# %{fetch_body_count} - Number of mails with mail body data sent to client
# %{fetch_body_bytes} - Number of bytes with mail body data sent to client
# %{deleted} - Number of mails where client added \Deleted flag
# %{expunged} - Number of mails that client expunged
# %{trashed} - Number of mails that client copied/moved to the
# special_use=\Trash mailbox.
#imap_logout_format = in=%i out=%o
# Override the IMAP CAPABILITY response. If the value begins with '+',
# add the given capabilities on top of the defaults (e.g. +XFOO XBAR).
#imap_capability =
# How long to wait between "OK Still here" notifications when client is
# IDLEing.
#imap_idle_notify_interval = 2 mins
imap_idle_notify_interval = 29 mins
# 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
# currently: name, version, os, os-version, support-url, support-email.
#imap_id_send =
# ID fields sent by client to log. * means everything.
#imap_id_log =
# Workarounds for various client bugs:
# delay-newmail:
# Send EXISTS/RECENT new mail notifications only when replying to NOOP
# and CHECK commands. Some clients ignore them otherwise, for example OSX
# Mail (<v2.1). Outlook Express breaks more badly though, without this it
# may show user "Message no longer in server" errors. Note that OE6 still
# breaks even with this workaround if synchronization is set to
# "Headers Only".
# tb-extra-mailbox-sep:
# Thunderbird gets somehow confused with LAYOUT=fs (mbox and dbox) and
# adds extra '/' suffixes to mailbox names. This option causes Dovecot to
# ignore the extra '/' instead of treating it as invalid mailbox name.
# tb-lsub-flags:
# Show \Noselect flags for LSUB replies with LAYOUT=fs (e.g. mbox).
# This makes Thunderbird realize they aren't selectable and show them
# greyed out, instead of only later giving "not selectable" popup error.
#
# The list is space-separated.
#imap_client_workarounds =
# Host allowed in URLAUTH URLs sent by client. "*" allows all.
#imap_urlauth_host =
protocol imap {
# Space separated list of plugins to load (default is global mail_plugins).
#mail_plugins = $mail_plugins
# 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 = 40
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment