Add POP3 support for GMail syncing
[sysconfig/dovecot.git] / 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, which does not
25 #                include automatically expunged mails
26 #  %{autoexpunged} - Number of mails that were automatically expunged after
27 #                    client disconnected
28 #  %{trashed} - Number of mails that client copied/moved to the
29 #               special_use=\Trash mailbox.
30 #  %{appended} - Number of mails saved during the session
31 #imap_logout_format = in=%i out=%o
32
33 # Override the IMAP CAPABILITY response. If the value begins with '+',
34 # add the given capabilities on top of the defaults (e.g. +XFOO XBAR).
35 #imap_capability = 
36
37 # How long to wait between "OK Still here" notifications when client is
38 # IDLEing.
39 #imap_idle_notify_interval = 2 mins
40
41 # ID field names and values to send to clients. Using * as the value makes
42 # Dovecot use the default value. The following fields have default values
43 # currently: name, version, os, os-version, support-url, support-email.
44 #imap_id_send = 
45
46 # ID fields sent by client to log. * means everything.
47 #imap_id_log =
48
49 # Workarounds for various client bugs:
50 #   delay-newmail:
51 #     Send EXISTS/RECENT new mail notifications only when replying to NOOP
52 #     and CHECK commands. Some clients ignore them otherwise, for example OSX
53 #     Mail (<v2.1). Outlook Express breaks more badly though, without this it
54 #     may show user "Message no longer in server" errors. Note that OE6 still
55 #     breaks even with this workaround if synchronization is set to
56 #     "Headers Only".
57 #   tb-extra-mailbox-sep:
58 #     Thunderbird gets somehow confused with LAYOUT=fs (mbox and dbox) and
59 #     adds extra '/' suffixes to mailbox names. This option causes Dovecot to
60 #     ignore the extra '/' instead of treating it as invalid mailbox name.
61 #   tb-lsub-flags:
62 #     Show \Noselect flags for LSUB replies with LAYOUT=fs (e.g. mbox).
63 #     This makes Thunderbird realize they aren't selectable and show them
64 #     greyed out, instead of only later giving "not selectable" popup error.
65 #
66 # The list is space-separated.
67 #imap_client_workarounds = 
68
69 # Host allowed in URLAUTH URLs sent by client. "*" allows all.
70 #imap_urlauth_host =
71
72 # What happens when FETCH fails due to some internal error:
73 #   disconnect-immediately:
74 #     The FETCH is aborted immediately and the IMAP client is disconnected.
75 #   disconnect-after:
76 #     The FETCH runs for all the requested mails returning as much data as
77 #     possible. The client is finally disconnected without a tagged reply.
78 #   no-after:
79 #     Same as disconnect-after, but tagged NO reply is sent instead of
80 #     disconnecting the client. If the client attempts to FETCH the same failed
81 #     mail more than once, the client is disconnected. This is to avoid clients
82 #     from going into infinite loops trying to FETCH a broken mail.
83 #imap_fetch_failure = disconnect-immediately
84
85 protocol imap {
86   # Space separated list of plugins to load (default is global mail_plugins).
87   #mail_plugins = $mail_plugins
88
89   # Maximum number of IMAP connections allowed for a user from each IP address.
90   # NOTE: The username is compared case-sensitively.
91   #mail_max_userip_connections = 10
92   mail_max_userip_connections = 50
93 }