start dovecot config; generate postfix transport_map; support multiple sender IPs...
[ansible.git] / roles / email / templates / dovecot / conf.d / 20-imap.conf
1 ##
2 ## IMAP specific settings
3 ##
4
5 # If nothing happens for this long while client is IDLEing, move the connection
6 # to imap-hibernate process and close the old imap process. This saves memory,
7 # because connections use very little memory in imap-hibernate process. The
8 # downside is that recreating the imap process back uses some resources.
9 #imap_hibernate_timeout = 0
10
11 # Maximum IMAP command line length. Some clients generate very long command
12 # lines with huge mailboxes, so you may need to raise this if you get
13 # "Too long argument" or "IMAP command line too large" errors often.
14 #imap_max_line_length = 64k
15
16 # IMAP logout format string:
17 #  %i - total number of bytes read from client
18 #  %o - total number of bytes sent to client
19 #  %{fetch_hdr_count} - Number of mails with mail header data sent to client
20 #  %{fetch_hdr_bytes} - Number of bytes with mail header data sent to client
21 #  %{fetch_body_count} - Number of mails with mail body data sent to client
22 #  %{fetch_body_bytes} - Number of bytes with mail body data sent to client
23 #  %{deleted} - Number of mails where client added \Deleted flag
24 #  %{expunged} - Number of mails that client expunged
25 #  %{trashed} - Number of mails that client copied/moved to the
26 #               special_use=\Trash mailbox.
27 #imap_logout_format = in=%i out=%o
28
29 # Override the IMAP CAPABILITY response. If the value begins with '+',
30 # add the given capabilities on top of the defaults (e.g. +XFOO XBAR).
31 #imap_capability =
32
33 # How long to wait between "OK Still here" notifications when client is
34 # IDLEing.
35 #imap_idle_notify_interval = 2 mins
36
37 # ID field names and values to send to clients. Using * as the value makes
38 # Dovecot use the default value. The following fields have default values
39 # currently: name, version, os, os-version, support-url, support-email.
40 #imap_id_send =
41
42 # ID fields sent by client to log. * means everything.
43 #imap_id_log =
44
45 # Workarounds for various client bugs:
46 #   delay-newmail:
47 #     Send EXISTS/RECENT new mail notifications only when replying to NOOP
48 #     and CHECK commands. Some clients ignore them otherwise, for example OSX
49 #     Mail (<v2.1). Outlook Express breaks more badly though, without this it
50 #     may show user "Message no longer in server" errors. Note that OE6 still
51 #     breaks even with this workaround if synchronization is set to
52 #     "Headers Only".
53 #   tb-extra-mailbox-sep:
54 #     Thunderbird gets somehow confused with LAYOUT=fs (mbox and dbox) and
55 #     adds extra '/' suffixes to mailbox names. This option causes Dovecot to
56 #     ignore the extra '/' instead of treating it as invalid mailbox name.
57 #   tb-lsub-flags:
58 #     Show \Noselect flags for LSUB replies with LAYOUT=fs (e.g. mbox).
59 #     This makes Thunderbird realize they aren't selectable and show them
60 #     greyed out, instead of only later giving "not selectable" popup error.
61 #
62 # The list is space-separated.
63 #imap_client_workarounds =
64
65 # Host allowed in URLAUTH URLs sent by client. "*" allows all.
66 #imap_urlauth_host =
67
68 protocol imap {
69   # Space separated list of plugins to load (default is global mail_plugins).
70   mail_plugins = $mail_plugins imap_quota
71
72   # Maximum number of IMAP connections allowed for a user from each IP address.
73   # NOTE: The username is compared case-sensitively.
74   mail_max_userip_connections = 32
75 }