20-imap.conf revision 263e4212e599da3e9aa8f6090112de889f81c021
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen## IMAP specific settings
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# If nothing happens for this long while client is IDLEing, move the connection
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# to imap-hibernate process and close the old imap process. This saves memory,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# because connections use very little memory in imap-hibernate process. The
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# downside is that recreating the imap process back uses some resources.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#imap_hibernate_timeout = 0
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Maximum IMAP command line length. Some clients generate very long command
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# lines with huge mailboxes, so you may need to raise this if you get
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# "Too long argument" or "IMAP command line too large" errors often.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#imap_max_line_length = 64k
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# IMAP logout format string:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# %i - total number of bytes read from client
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainen# %o - total number of bytes sent to client
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainen# %{fetch_hdr_count} - Number of mails with mail header data sent to client
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# %{fetch_hdr_bytes} - Number of bytes with mail header data sent to client
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainen# %{fetch_body_count} - Number of mails with mail body data sent to client
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# %{fetch_body_bytes} - Number of bytes with mail body data sent to client
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# %{deleted} - Number of mails where client added \Deleted flag
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# %{expunged} - Number of mails that client expunged
2f2823ad8928654ed405467c6c1f4fd4c6f5cf7cTimo Sirainen# %{trashed} - Number of mails that client copied/moved to the
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainen# special_use=\Trash mailbox.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#imap_logout_format = in=%i out=%o del=%{deleted} expunged=%{expunged} \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# trashed=%{trashed} hdr_count=%{fetch_hdr_count} \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# hdr_bytes=%{fetch_hdr_bytes} body_count=%{fetch_body_count} \
2f2823ad8928654ed405467c6c1f4fd4c6f5cf7cTimo Sirainen# body_bytes=%{fetch_body_bytes}
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Override the IMAP CAPABILITY response. If the value begins with '+',
2f2823ad8928654ed405467c6c1f4fd4c6f5cf7cTimo Sirainen# add the given capabilities on top of the defaults (e.g. +XFOO XBAR).
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#imap_capability =
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# How long to wait between "OK Still here" notifications when client is
2f2823ad8928654ed405467c6c1f4fd4c6f5cf7cTimo Sirainen#imap_idle_notify_interval = 2 mins
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# ID field names and values to send to clients. Using * as the value makes
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Dovecot use the default value. The following fields have default values
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# currently: name, version, os, os-version, support-url, support-email.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#imap_id_send =
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# ID fields sent by client to log. * means everything.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#imap_id_log =
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Workarounds for various client bugs:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# delay-newmail:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Send EXISTS/RECENT new mail notifications only when replying to NOOP
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# and CHECK commands. Some clients ignore them otherwise, for example OSX
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Mail (<v2.1). Outlook Express breaks more badly though, without this it
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# may show user "Message no longer in server" errors. Note that OE6 still
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# breaks even with this workaround if synchronization is set to
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# "Headers Only".
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# tb-extra-mailbox-sep:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Thunderbird gets somehow confused with LAYOUT=fs (mbox and dbox) and
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# adds extra '/' suffixes to mailbox names. This option causes Dovecot to
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# ignore the extra '/' instead of treating it as invalid mailbox name.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# tb-lsub-flags:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Show \Noselect flags for LSUB replies with LAYOUT=fs (e.g. mbox).
d8b77aef97e89f1ccc5cbdaef77be9052279e35fTimo Sirainen# This makes Thunderbird realize they aren't selectable and show them
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# greyed out, instead of only later giving "not selectable" popup error.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# The list is space-separated.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#imap_client_workarounds =
d8b77aef97e89f1ccc5cbdaef77be9052279e35fTimo Sirainen# Host allowed in URLAUTH URLs sent by client. "*" allows all.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#imap_urlauth_host =
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Enable IMAP LITERAL- extension (replaces LITERAL+)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#imap_literal_minus = no
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# What happens when FETCH fails due to some internal error:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# disconnect-immediately:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# The FETCH is aborted immediately and the IMAP client is disconnected.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# disconnect-after:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# The FETCH runs for all the requested mails returning as much data as
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# possible. The client is finally disconnected without a tagged reply.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Same as disconnect-after, but tagged NO reply is sent instead of
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# disconnecting the client. If the client attempts to FETCH the same failed
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# mail more than once, the client is disconnected. This is to avoid clients
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# from going into infinite loops trying to FETCH a broken mail.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#imap_fetch_failure = disconnect-immediately
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen # Space separated list of plugins to load (default is global mail_plugins).
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen # Maximum number of IMAP connections allowed for a user from each IP address.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen # NOTE: The username is compared case-sensitively.