X-Git-Url: https://dehnerts.com/gitweb/?a=blobdiff_plain;f=conf.d%2F10-mail.conf;fp=conf.d%2F10-mail.conf;h=89ea4c6a9e48d6652fc3f78ddf7bc77e6fe10052;hb=6693b71c663930e35c2df3c6b368731694ee80ba;hp=d32dcd1c3c57c1d3a641fca0ef7d5327a35d6faa;hpb=6f0f037af5c3fabdb071839d0bc089f0aad20ec4;p=sysconfig%2Fdovecot.git diff --git a/conf.d/10-mail.conf b/conf.d/10-mail.conf index d32dcd1..89ea4c6 100644 --- a/conf.d/10-mail.conf +++ b/conf.d/10-mail.conf @@ -40,12 +40,7 @@ mail_location = maildir:~/.maildir # namespaces you'll typically want to enable ACL plugin also, otherwise all # users can access all the shared mailboxes, assuming they have permissions # on filesystem level to do so. -# -# REMEMBER: If you add any namespaces, the default namespace must be added -# explicitly, ie. mail_location does nothing unless you have a namespace -# without a location setting. Default namespace is simply done by having a -# namespace with empty prefix. -#namespace { +namespace inbox { # Namespace type: private, shared or public #type = private @@ -64,7 +59,7 @@ mail_location = maildir:~/.maildir # There can be only one INBOX, and this setting defines which namespace # has it. - #inbox = no + inbox = yes # If namespace is hidden, it's not advertised to clients via NAMESPACE # extension. You'll most likely also want to set list=no. This is mostly @@ -81,7 +76,7 @@ mail_location = maildir:~/.maildir # Namespace handles its own subscriptions. If set to "no", the parent # namespace handles them (empty prefix should always have this as "yes") #subscriptions = yes -#} +} # Example shared namespace configuration #namespace { @@ -103,6 +98,8 @@ mail_location = maildir:~/.maildir # List the shared/ namespace only if there are visible shared mailboxes. #list = children #} +# Should shared INBOX be visible as "shared/user" or "shared/user/INBOX"? +#mail_shared_explicit_inbox = no # System user and group used to access mails. If you use multiple, userdb # can override these by returning uid or gid fields. You can use either numbers @@ -131,6 +128,10 @@ mail_location = maildir:~/.maildir # or ~user/. #mail_full_filesystem_access = no +# Dictionary for key=value mailbox attributes. Currently used by URLAUTH, but +# soon intended to be used by METADATA as well. +#mail_attribute_dict = + ## ## Mail processes ## @@ -214,6 +215,10 @@ mail_location = maildir:~/.maildir ## Mailbox handling optimizations ## +# Mailbox list indexes can be used to optimize IMAP STATUS commands. They are +# also required for IMAP NOTIFY extension to be enabled. +#mailbox_list_index = no + # The minimum number of mails in a mailbox before updates are done to cache # file. This allows optimizing Dovecot's behavior to do less disk writes at # the cost of more disk reads. @@ -232,6 +237,14 @@ mail_location = maildir:~/.maildir # the extra CRs wrong and cause problems. #mail_save_crlf = no +# Max number of mails to keep open and prefetch to memory. This only works with +# some mailbox formats and/or operating systems. +#mail_prefetch_count = 0 + +# How often to scan for stale temporary files and delete them (0 = never). +# These should exist only after Dovecot dies in the middle of saving mails. +#mail_temp_scan_interval = 1w + ## ## Maildir-specific settings ## @@ -251,6 +264,12 @@ mail_location = maildir:~/.maildir # when its mtime changes unexpectedly or when we can't find the mail otherwise. #maildir_very_dirty_syncs = no +# If enabled, Dovecot doesn't use the S= in the Maildir filenames for +# getting the mail's physical size, except when recalculating Maildir++ quota. +# This can be useful in systems where a lot of the Maildir filenames have a +# broken size. The performance hit for enabling this is very small. +#maildir_broken_filename_sizes = no + ## ## mbox-specific settings ## @@ -269,8 +288,14 @@ mail_location = maildir:~/.maildir # in is important to avoid deadlocks if other MTAs/MUAs are using multiple # locking methods as well. Some operating systems don't allow using some of # them simultaneously. +# +# The Debian value for mbox_write_locks differs from upstream Dovecot. It is +# changed to be compliant with Debian Policy (section 11.6) for NFS safety. +# Dovecot: mbox_write_locks = dotlock fcntl +# Debian: mbox_write_locks = fcntl dotlock +# #mbox_read_locks = fcntl -#mbox_write_locks = dotlock fcntl +#mbox_write_locks = fcntl dotlock # Maximum time to wait for lock (all of them) before aborting. #mbox_lock_timeout = 5 mins @@ -304,6 +329,12 @@ mail_location = maildir:~/.maildir # If an index file already exists it's still read, just not updated. #mbox_min_index_size = 0 +# Mail header selection algorithm to use for MD5 POP3 UIDLs when +# pop3_uidl_format=%m. For backwards compatibility we use apop3d inspired +# algorithm, but it fails if the first Received: header isn't unique in all +# mails. An alternative algorithm is "all" that selects all headers. +#mbox_md5 = apop3d + ## ## mdbox-specific settings ## @@ -328,8 +359,6 @@ mail_location = maildir:~/.maildir # also allows single instance storage for them. Other backends don't support # this for now. -# WARNING: This feature hasn't been tested much yet. Use at your own risk. - # Directory root where to store mail attachments. Disabled, if empty. #mail_attachment_dir =