{"ok":true,"c":"## Dovecot configuration file\n\n# NOTICE FOR CPANEL SYSTEMS\n# On cPanel servers this file is generated by combining a\n# template at \/var\/cpanel\/templates\/dovecot2.3\/main.default\n# and a datastore at \/var\/cpanel\/conf\/dovecot\/main\n#\n# The template may be customized by making a copy of it at\n# \/var\/cpanel\/templates\/dovecot2.3\/main.local\n# similar to the way in which httpd.conf can be customized\n#\n# Direct edits of the rendered dovecot.conf file will not\n# be preserved when dovecot is updated. Use the\n# \"Mailserver Configuration\" interface in WebHostManager instead.\n\n\n# If you're in a hurry, see http:\/\/wiki2.dovecot.org\/QuickConfiguration\n\n# \"doveconf -n\" command gives a clean output of the changed settings. Use it\n# instead of copy&pasting files when posting to the Dovecot mailing list.\n\n# '#' character and everything after it is treated as comments. Extra spaces\n# and tabs are ignored. If you want to use either of these explicitly, put the\n# value inside quotes, eg.: key = \"# char and trailing whitespace \"\n\n# Most (but not all) settings can be overridden by different protocols and\/or\n# source\/destination IPs by placing the settings inside sections, for example:\n# protocol imap { }, local 127.0.0.1 { }, remote 10.0.0.0\/8 { }\n\n# Default values are shown for each setting, it's not required to uncomment\n# those. These are exceptions to this though: No sections (e.g. namespace {})\n# or plugin settings are added by default, they're listed only as examples.\n# Paths are also just examples with the real defaults being based on configure\n# options. The paths listed here are for configure --prefix=\/usr\n# --sysconfdir=\/etc --localstatedir=\/var\n\n# Base directory where to store runtime data.\n#base_dir = \/var\/run\/dovecot\n\n# Protocols we want to be serving: imap pop3\n# If you only want to use dovecot-auth, you can set this to \"none\".\nprotocols = lmtp imap pop3\n\n# A comma separated list of IPs or hosts where to listen in for connections.\n# \"*\" listens in all IPv4 interfaces, \"::\" listens in all IPv6 interfaces.\n# If you want to specify non-default ports or anything more complex,\n# edit conf.d\/master.conf.\n#listen = *, ::\n\n# Should all IMAP and POP3 processes be killed when Dovecot master process\n# shuts down. Setting this to \"no\" means that Dovecot can be upgraded without\n# forcing existing client connections to close (although that could also be\n# a problem if the upgrade is eg. because of a security fix). This however\n# means that after master process has died, the client processes can't write\n# to log files anymore.\n#shutdown_clients = yes\n\n\nverbose_proctitle = no\n\n\n\n# FTS support\n!include_try \/etc\/dovecot\/fts.conf\n\n\n# SSL DH parameters\n# Generate new params with `openssl dhparam -out \/etc\/dovecot\/dh.pem 4096`\n# Or migrate from old ssl-parameters.dat file with the command dovecot\n# gives on startup when ssl_dh is unset.\nssl_dh = <\/etc\/dovecot\/dh.pem\n\n# SSL & SNI hosts\n!include_try \/etc\/dovecot\/ssl.conf\n!include_try \/etc\/dovecot\/sni.conf\n\n##\n## Login processes\n##\n\n# Name of this instance. In multi-instance setup doveadm and other commands\n# can use -i to select which instance is used (an alternative\n# to -c ). The instance name is also added to Dovecot processes\n# in ps output.\n#instance_name = dovecot\n\n# Greeting message for clients.\n#login_greeting = Dovecot ready.\n\n# Space separated list of trusted network ranges. Connections from these\n# IPs are allowed to override their IP addresses and ports (for logging and\n# for authentication checks). disable_plaintext_auth is also ignored for\n# these networks. Typically you'd specify your IMAP proxy servers here.\n#login_trusted_networks =\n\n# Space separated list of login access check sockets (e.g. tcpwrap)\n#login_access_sockets =\n\n# With proxy_maybe=yes if proxy destination matches any of these IPs, don't do\n# proxying. This isn't necessary normally, but may be useful if the destination\n# IP is e.g. a load balancer's IP.\n#auth_proxy_self =\n\n##\n## Mailbox locations and namespaces\n##\n\n# Location for users' mailboxes. The default is empty, which means that Dovecot\n# tries to find the mailboxes automatically. This won't work if the user\n# doesn't yet have any mail, so you should explicitly tell Dovecot the full\n# location.\n#\n# If you're using mbox, giving a path to the INBOX file (eg. \/var\/mail\/%u)\n# isn't enough. You'll also need to tell Dovecot where the other mailboxes are\n# kept. This is called the \"root mail directory\", and it must be the first\n# path given in the mail_location setting.\n#\n# There are a few special variables you can use, eg.:\n#\n# %u - username\n# %n - user part in user@domain, same as %u if there's no domain\n# %d - domain part in user@domain, empty if there's no domain\n# %h - home directory\n#\n# See doc\/wiki\/Variables.txt for full list. Some examples:\n#\n# mail_location = maildir:~\/Maildir\n# mail_location = mbox:~\/mail:INBOX=\/var\/mail\/%u\n# mail_location = mbox:\/var\/mail\/%d\/%1n\/%n:INDEX=\/var\/indexes\/%d\/%1n\/%n\n#\n# \n#\n\n#mail_location =\n\nnamespace inbox {\n type = private\n\n # Hierarchy separator to use. You should use the same separator for all\n # namespaces or some clients get confused. '\/' is usually a good one.\n # The default however depends on the underlying mail storage format.\n separator = .\n\n # Prefix required to access this namespace. This needs to be different for\n # all namespaces. For example \"Public\/\".\n prefix = INBOX.\n\n # Physical location of the mailbox. This is in same format as\n # mail_location, which is also the default for it.\n #location =\n\n # There can be only one INBOX, and this setting defines which namespace\n # has it.\n inbox = yes\n\n # If namespace is hidden, it's not advertised to clients via NAMESPACE\n # extension. You'll most likely also want to set list=no. This is mostly\n # useful when converting from another server with different namespaces which\n # you want to deprecate but still keep working. For example you can create\n # hidden namespaces with prefixes \"~\/mail\/\", \"~%u\/mail\/\" and \"mail\/\".\n #hidden = yes\n\n # Show the mailboxes under this namespace with LIST command. This makes the\n # namespace visible for clients that don't support NAMESPACE extension.\n # \"children\" value lists child mailboxes, but hides the namespace prefix.\n #list = yes\n\n # Namespace handles its own subscriptions. If set to \"no\", the parent\n # namespace handles them (empty prefix should always have this as \"yes\")\n #subscriptions = yes\n #subscriptions = yes\n\n mailbox Drafts {\n special_use = \\Drafts\n auto = subscribe\n }\n\n mailbox spam {\n special_use = \\Junk\n auto = subscribe\n }\n\n mailbox Trash {\n special_use = \\Trash\n auto = subscribe\n }\n\n mailbox Sent {\n special_use = \\Sent\n auto = subscribe\n }\n\n mailbox \"Sent Messages\" {\n special_use = \\Sent\n auto = no\n }\n\n mailbox Archive {\n special_use = \\Archive\n auto = create\n }\n\n mailbox \"Archives\" {\n special_use = \\Archive\n auto = no\n }\n}\n\n# Example shared namespace configuration\n#namespace {\n #type = shared\n #separator = \/\n\n # Mailboxes are visible under \"shared\/user@domain\/\"\n # %%n, %%d and %%u are expanded to the destination user.\n #prefix = shared\/%%u\/\n\n # Mail location for other users' mailboxes. Note that %variables and ~\/\n # expands to the logged in user's data. %%n, %%d, %%u and %%h expand to the\n # destination user's data.\n #location = maildir:%%h\/Maildir:INDEX=~\/Maildir\/shared\/%%u\n\n # Use the default namespace for saving subscriptions.\n #subscriptions = no\n\n # List the shared\/ namespace only if there are visible shared mailboxes.\n #list = children\n#}\n# Should shared INBOX be visible as \"shared\/user\" or \"shared\/user\/INBOX\"?\n#mail_shared_explicit_inbox = no\n\n# System user and group used to access mails. If you use multiple, userdb\n# can override these by returning uid or gid fields. You can use either numbers\n# or names. \n#mail_uid =\n#mail_gid =\n\n# Group to enable temporarily for privileged operations. Currently this is\n# used only with INBOX when either its initial creation or dotlocking fails.\n# Typically this is set to \"mail\" to give access to \/var\/mail.\n#mail_privileged_group =\n\n# Grant access to these supplementary groups for mail processes. Typically\n# these are used to set up access to shared mailboxes. Note that it may be\n# dangerous to set these if users can create symlinks (e.g. if \"mail\" group is\n# set here, ln -s \/var\/mail ~\/mail\/var could allow a user to delete others'\n# mailboxes, or ln -s \/secret\/shared\/box ~\/mail\/mybox would allow reading it).\n#mail_access_groups =\n\n# Allow full filesystem access to clients. There's no access checks other than\n# what the operating system does for the active UID\/GID. It works with both\n# maildir and mboxes, allowing you to prefix mailboxes names with eg. \/path\/\n# or ~user\/.\n#mail_full_filesystem_access = no\n\n# Dictionary for key=value mailbox attributes. This is used for example by\n# URLAUTH and METADATA extensions.\n#mail_attribute_dict =\n\n# A comment or note that is associated with the server. This value is\n# accessible for authenticated users through the IMAP METADATA server\n# entry \"\/shared\/comment\".\n#mail_server_comment = \"\"\n\n# Indicates a method for contacting the server administrator. According to\n# RFC 5464, this value MUST be a URI (e.g., a mailto: or tel: URL), but that\n# is currently not enforced. Use for example mailto:admin@example.com. This\n# value is accessible for authenticated users through the IMAP METADATA server\n# entry \"\/shared\/admin\".\n#mail_server_admin =\n\n##\n## Mail processes\n##\n\n# Don't use mmap() at all. This is required if you store indexes to shared\n# filesystems (NFS or clustered filesystem).\n#mmap_disable = no\n\n# Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL\n# since version 3, so this should be safe to use nowadays by default.\n#dotlock_use_excl = yes\n\n# When to use fsync() or fdatasync() calls:\n# optimized (default): Whenever necessary to avoid losing important data\n# always: Useful with e.g. NFS when write()s are delayed\n# never: Never use it (best performance, but crashes can lose data)\n#mail_fsync = optimized\n\n# Mail storage exists in NFS. Set this to yes to make Dovecot flush NFS caches\n# whenever needed. If you're using only a single mail server this isn't needed.\n#mail_nfs_storage = no\n\n# Mail index files also exist in NFS. Setting this to yes requires\n# mmap_disable=yes and fsync_disable=no.\n#mail_nfs_index = no\n\n# Locking method for index files. Alternatives are fcntl, flock and dotlock.\n# Dotlocking uses some tricks which may create more disk I\/O than other locking\n# methods. NFS users: flock doesn't work, remember to change mmap_disable.\n#lock_method = fcntl\n\n# Show more verbose process titles (in ps). Currently shows user name and\n# IP address. Useful for seeing who are actually using the IMAP processes\n# (eg. shared mailboxes or if same uid is used for multiple accounts).\nverbose_proctitle = no\n\n# Directory where mails can be temporarily stored. Usually it's used only for\n# mails larger than >= 128 kB. It's used by various parts of Dovecot, for\n# example LDA\/LMTP while delivering large mails or zlib plugin for keeping\n# uncompressed mails.\n#mail_temp_dir = \/tmp\n\n# Valid UID range for users, defaults to 500 and above. This is mostly\n# to make sure that users can't log in as daemons or other system users.\n# Note that denying root logins is hardcoded to dovecot binary and can't\n# be done even if first_valid_uid is set to 0.\nfirst_valid_uid = 201\n#last_valid_uid = 0\n\n# Valid GID range for users, defaults to non-root\/wheel. Users having\n# non-valid GID as primary group ID aren't allowed to log in. If user\n# belongs to supplementary groups with non-valid GIDs, those groups are\n# not set.\n#first_valid_gid = 1\n#last_valid_gid = 0\n\n# Maximum allowed length for mail keyword name. It's only forced when trying\n# to create new keywords.\n#mail_max_keyword_length = 50\n\n# ':' separated list of directories under which chrooting is allowed for mail\n# processes (ie. \/var\/mail will allow chrooting to \/var\/mail\/foo\/bar too).\n# This setting doesn't affect login_chroot, mail_chroot or auth chroot\n# settings. If this setting is empty, \"\/.\/\" in home dirs are ignored.\n# WARNING: Never add directories here which local users can modify, that\n# may lead to root exploit. Usually this should be done only if you don't\n# allow shell access for users. \n#valid_chroot_dirs =\n\n# Default chroot directory for mail processes. This can be overridden for\n# specific users in user database by giving \/.\/ in user's home directory\n# (eg. \/home\/.\/user chroots into \/home). Note that usually there is no real\n# need to do chrooting, Dovecot doesn't allow users to access files outside\n# their mail directory anyway. If your home directories are prefixed with\n# the chroot directory, append \"\/.\" to mail_chroot. \n#mail_chroot =\n\n# UNIX socket path to master authentication server to find users.\n# This is used by imap (for shared users) and lda.\n#auth_socket_path = \/var\/run\/dovecot\/auth-userdb\n\n# Directory where to look up mail plugins.\n#mail_plugin_dir = \/usr\/lib\/dovecot\n\n# Space separated list of plugins to load for all services. Plugins specific to\n# IMAP, LDA, etc. are added to this list in their own .conf files.\n# Quota support must be enabled globally for the quota-status\n# service to work\nmail_plugins = quota quota_clone zlib fts fts_solr\n\n##\n## Mailbox handling optimizations\n##\n\n# Mailbox list indexes can be used to optimize IMAP STATUS commands. They are\n# also required for IMAP NOTIFY extension to be enabled.\nmailbox_list_index = yes\n\n# Trust mailbox list index to be up-to-date. This reduces disk I\/O at the cost\n# of potentially returning out-of-date results after e.g. server crashes.\n# The results will be automatically fixed once the folders are opened.\n#mailbox_list_index_very_dirty_syncs = yes\n\n# Should INBOX be kept up-to-date in the mailbox list index? By default it's\n# not, because most of the mailbox accesses will open INBOX anyway.\n#mailbox_list_index_include_inbox = no\n\n# The minimum number of mails in a mailbox before updates are done to cache\n# file. This allows optimizing Dovecot's behavior to do less disk writes at\n# the cost of more disk reads.\n#mail_cache_min_mail_count = 0\n\n# When IDLE command is running, mailbox is checked once in a while to see if\n# there are any new mails or other changes. This setting defines the minimum\n# time to wait between those checks. Dovecot can also use inotify and\n# kqueue to find out immediately when changes occur.\nmailbox_idle_check_interval = 30 secs\n\n# Save mails with CR+LF instead of plain LF. This makes sending those mails\n# take less CPU, especially with sendfile() syscall with Linux and FreeBSD.\n# But it also creates a bit more disk I\/O which may just make it slower.\n# Also note that if other software reads the mboxes\/maildirs, they may handle\n# the extra CRs wrong and cause problems.\n#mail_save_crlf = no\n\n# Max number of mails to keep open and prefetch to memory. This only works with\n# some mailbox formats and\/or operating systems.\nmail_prefetch_count = 20\n\n# How often to scan for stale temporary files and delete them (0 = never).\n# These should exist only after Dovecot dies in the middle of saving mails.\n#mail_temp_scan_interval = 1w\n\n# How many slow mail accesses sorting can perform before it returns failure.\n# With IMAP the reply is: NO [LIMIT] Requested sort would have taken too long.\n# The untagged SORT reply is still returned, but it's likely not correct.\n#mail_sort_max_read_count = 0\n\nprotocol !indexer-worker {\n # If folder vsize calculation requires opening more than this many mails from\n # disk (i.e. mail sizes aren't in cache already), return failure and finish\n # the calculation via indexer process. Disabled by default. This setting must\n # be 0 for indexer-worker processes.\n #mail_vsize_bg_after_count = 0\n}\n\n##\n## Maildir-specific settings\n##\n\n# By default LIST command returns all entries in maildir beginning with a dot.\n# Enabling this option makes Dovecot return only entries which are directories.\n# This is done by stat()ing each entry, so it causes more disk I\/O.\n# (For systems setting struct dirent->d_type, this check is free and it's\n# done always regardless of this setting)\n#maildir_stat_dirs = no\n\n# When copying a message, do it with hard links whenever possible. This makes\n# the performance much better, and it's unlikely to have any side effects.\nmaildir_copy_with_hardlinks = yes\n\n# Assume Dovecot is the only MUA accessing Maildir: Scan cur\/ directory only\n# when its mtime changes unexpectedly or when we can't find the mail otherwise.\nmaildir_very_dirty_syncs = yes\n\n# If enabled, Dovecot doesn't use the S= in the Maildir filenames for\n# getting the mail's physical size, except when recalculating Maildir++ quota.\n# This can be useful in systems where a lot of the Maildir filenames have a\n# broken size. The performance hit for enabling this is very small.\nmaildir_broken_filename_sizes = yes\n\n# Always move mails from new\/ directory to cur\/, even when the \\Recent flags\n# aren't being reset.\n#maildir_empty_new = no\n\n##\n## mdbox-specific settings\n##\n\n# Maximum dbox file size until it's rotated.\nmdbox_rotate_size = 2M\n\n# Maximum dbox file age until it's rotated. Typically in days. Day begins\n# from midnight, so 1d = today, 2d = yesterday, etc. 0 = check disabled.\n \n\n# When creating new mdbox files, immediately preallocate their size to\n# mdbox_rotate_size. This setting currently works only in Linux with some\n# filesystems (ext4, xfs).\n#mdbox_preallocate_space = no\n\n##\n## IMAP specific settings\n##\n\nprotocol imap {\n\n # If nothing happens for this long while client is IDLEing, move the connection\n # to imap-hibernate process and close the old imap process. This saves memory,\n # because connections use very little memory in imap-hibernate process. The\n # downside is that recreating the imap process back uses some resources.\n\n imap_hibernate_timeout = 40s\n\n\n # Maximum IMAP command line length in bytes. Some clients generate very long\n # command lines with huge mailboxes, so you may need to raise this if you get\n # \"Too long argument\" or \"IMAP command line too large\" errors often.\n #imap_max_line_length = 65536\n\n # Maximum number of IMAP connections allowed for a user from each IP address.\n # NOTE: The username is compared case-sensitively.\n mail_max_userip_connections = 25\n\n # Space separated list of plugins to load (default is global mail_plugins).\n mail_plugins = acl quota imap_quota\n\n mail_plugins = $mail_plugins expire\n\n mail_plugins = $mail_plugins zlib imap_zlib quota_clone virtual fts fts_solr\n #mail_plugin_dir = \/usr\/lib\/dovecot\/imap\n\n\n # IMAP logout format string:\n # %i - total number of bytes read from client\n # %o - total number of bytes sent to client\n # %{fetch_hdr_count} - Number of mails with mail header data sent to client\n # %{fetch_hdr_bytes} - Number of bytes with mail header data sent to client\n # %{fetch_body_count} - Number of mails with mail body data sent to client\n # %{fetch_body_bytes} - Number of bytes with mail body data sent to client\n # %{deleted} - Number of mails where client added \\Deleted flag\n # %{expunged} - Number of mails that client expunged, which does not\n # include automatically expunged mails\n # %{autoexpunged} - Number of mails that were automatically expunged after\n # client disconnected\n # %{trashed} - Number of mails that client copied\/moved to the\n # special_use=\\Trash mailbox.\n # %{appended} - Number of mails saved during the session\n imap_logout_format = in=%i, out=%o, bytes=%i\/%o\n\n # Override the IMAP CAPABILITY response. If the value begins with '+',\n # add the given capabilities on top of the defaults (e.g. +XFOO XBAR).\n imap_capability = +NAMESPACE\n\n # How many seconds to wait between \"OK Still here\" notifications when\n # client is IDLEing.\n imap_idle_notify_interval = 24 min\n\n # ID field names and values to send to clients. Using * as the value makes\n # Dovecot use the default value. The following fields have default values\n # currently: name, version, os, os-version, support-url, support-email.\n #imap_id_send =\n\n # ID fields sent by client to log. * means everything.\n #imap_id_log =\n\n # Workarounds for various client bugs:\n # delay-newmail:\n # Send EXISTS\/RECENT new mail notifications only when replying to NOOP\n # and CHECK commands. Some clients ignore them otherwise, for example OSX\n # Mail (