dovecot.conf 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153
  1. ## Dovecot configuration file
  2. # If you're in a hurry, see http://wiki.dovecot.org/QuickConfiguration
  3. # "dovecot -n" command gives a clean output of the changed settings. Use it
  4. # instead of copy&pasting this file when posting to the Dovecot mailing list.
  5. # '#' character and everything after it is treated as comments. Extra spaces
  6. # and tabs are ignored. If you want to use either of these explicitly, put the
  7. # value inside quotes, eg.: key = "# char and trailing whitespace "
  8. # Default values are shown for each setting, it's not required to uncomment
  9. # any of the lines. Exception to this are paths, they're just examples with
  10. # the real defaults being based on configure options. The paths listed here
  11. # are for configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  12. # --with-ssldir=/etc/ssl
  13. # Base directory where to store runtime data.
  14. #base_dir = /var/run/dovecot/
  15. # Protocols we want to be serving: imap imaps pop3 pop3s
  16. # If you only want to use dovecot-auth, you can set this to "none".
  17. protocols = imap imaps
  18. # A space separated list of IP or host addresses where to listen in for
  19. # connections. "*" listens in all IPv4 interfaces. "[::]" listens in all IPv6
  20. # interfaces. Use "*, [::]" for listening both IPv4 and IPv6.
  21. #
  22. # If you want to specify ports for each service, you will need to configure
  23. # these settings inside the protocol imap/pop3 { ... } section, so you can
  24. # specify different ports for IMAP/POP3. For example:
  25. # protocol imap {
  26. # listen = *:10143
  27. # ssl_listen = *:10943
  28. # ..
  29. # }
  30. # protocol pop3 {
  31. # listen = *:10100
  32. # ..
  33. # }
  34. #listen = *
  35. # Disable LOGIN command and all other plaintext authentications unless
  36. # SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
  37. # matches the local IP (ie. you're connecting from the same computer), the
  38. # connection is considered secure and plaintext authentication is allowed.
  39. #disable_plaintext_auth = yes
  40. # Should all IMAP and POP3 processes be killed when Dovecot master process
  41. # shuts down. Setting this to "no" means that Dovecot can be upgraded without
  42. # forcing existing client connections to close (although that could also be
  43. # a problem if the upgrade is eg. because of a security fix). This however
  44. # means that after master process has died, the client processes can't write
  45. # to log files anymore.
  46. #shutdown_clients = yes
  47. ##
  48. ## Logging
  49. ##
  50. # Log file to use for error messages, instead of sending them to syslog.
  51. # /dev/stderr can be used to log into stderr.
  52. #log_path =
  53. # Log file to use for informational and debug messages.
  54. # Default is the same as log_path.
  55. #info_log_path =
  56. # Prefix for each line written to log file. % codes are in strftime(3)
  57. # format.
  58. #log_timestamp = "%b %d %H:%M:%S "
  59. # Syslog facility to use if you're logging to syslog. Usually if you don't
  60. # want to use "mail", you'll use local0..local7. Also other standard
  61. # facilities are supported.
  62. #syslog_facility = mail
  63. ##
  64. ## SSL settings
  65. ##
  66. # IP or host address where to listen in for SSL connections. Defaults
  67. # to above if not specified.
  68. #ssl_listen =
  69. # Disable SSL/TLS support.
  70. #ssl_disable = no
  71. # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
  72. # dropping root privileges, so keep the key file unreadable by anyone but
  73. # root. Included doc/mkcert.sh can be used to easily generate self-signed
  74. # certificate, just make sure to update the domains in dovecot-openssl.cnf
  75. #ssl_cert_file = /etc/ssl/certs/dovecot.pem
  76. #ssl_key_file = /etc/ssl/private/dovecot.pem
  77. # If key file is password protected, give the password here. Alternatively
  78. # give it when starting dovecot with -p parameter. Since this file is often
  79. # world-readable, you may want to place this setting instead to a different
  80. # root owned 0600 file by using !include_try <path>.
  81. #ssl_key_password =
  82. # File containing trusted SSL certificate authorities. Set this only if you
  83. # intend to use ssl_verify_client_cert=yes. The CAfile should contain the
  84. # CA-certificate(s) followed by the matching CRL(s).
  85. #ssl_ca_file =
  86. # Request client to send a certificate. If you also want to require it, set
  87. # ssl_require_client_cert=yes in auth section.
  88. #ssl_verify_client_cert = no
  89. # Which field from certificate to use for username. commonName and
  90. # x500UniqueIdentifier are the usual choices. You'll also need to set
  91. # ssl_username_from_cert=yes.
  92. #ssl_cert_username_field = commonName
  93. # How often to regenerate the SSL parameters file. Generation is quite CPU
  94. # intensive operation. The value is in hours, 0 disables regeneration
  95. # entirely.
  96. #ssl_parameters_regenerate = 168
  97. # SSL ciphers to use
  98. #ssl_cipher_list = ALL:!LOW:!SSLv2
  99. # Show protocol level SSL errors.
  100. #verbose_ssl = no
  101. ##
  102. ## Login processes
  103. ##
  104. # <doc/wiki/LoginProcess.txt>
  105. # Directory where authentication process places authentication UNIX sockets
  106. # which login needs to be able to connect to. The sockets are created when
  107. # running as root, so you don't have to worry about permissions. Note that
  108. # everything in this directory is deleted when Dovecot is started.
  109. #login_dir = /var/run/dovecot/login
  110. # chroot login process to the login_dir. Only reason not to do this is if you
  111. # wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt>
  112. #login_chroot = yes
  113. # User to use for the login process. Create a completely new user for this,
  114. # and don't use it anywhere else. The user must also belong to a group where
  115. # only it has access, it's used to control access for authentication process.
  116. # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt>
  117. #login_user = dovecot
  118. # Set max. process size in megabytes. If you don't use
  119. # login_process_per_connection you might need to grow this.
  120. #login_process_size = 64
  121. # Should each login be processed in it's own process (yes), or should one
  122. # login process be allowed to process multiple connections (no)? Yes is more
  123. # secure, espcially with SSL/TLS enabled. No is faster since there's no need
  124. # to create processes all the time.
  125. #login_process_per_connection = yes
  126. # Number of login processes to keep for listening new connections.
  127. #login_processes_count = 3
  128. # Maximum number of login processes to create. The listening process count
  129. # usually stays at login_processes_count, but when multiple users start logging
  130. # in at the same time more extra processes are created. To prevent fork-bombing
  131. # we check only once in a second if new processes should be created - if all
  132. # of them are used at the time, we double their amount until the limit set by
  133. # this setting is reached.
  134. #login_max_processes_count = 128
  135. # Maximum number of connections allowed per each login process. This setting
  136. # is used only if login_process_per_connection=no. Once the limit is reached,
  137. # the process notifies master so that it can create a new login process.
  138. #login_max_connections = 256
  139. # Greeting message for clients.
  140. #login_greeting = Dovecot ready.
  141. # Space-separated list of elements we want to log. The elements which have
  142. # a non-empty variable value are joined together to form a comma-separated
  143. # string.
  144. #login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
  145. # Login log format. %$ contains login_log_format_elements string, %s contains
  146. # the data we want to log.
  147. #login_log_format = %$: %s
  148. ##
  149. ## Mailbox locations and namespaces
  150. ##
  151. # Location for users' mailboxes. This is the same as the old default_mail_env
  152. # setting. The default is empty, which means that Dovecot tries to find the
  153. # mailboxes automatically. This won't work if the user doesn't have any mail
  154. # yet, so you should explicitly tell Dovecot the full location.
  155. #
  156. # If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u)
  157. # isn't enough. You'll also need to tell Dovecot where the other mailboxes are
  158. # kept. This is called the "root mail directory", and it must be the first
  159. # path given in the mail_location setting.
  160. #
  161. # There are a few special variables you can use, eg.:
  162. #
  163. # %u - username
  164. # %n - user part in user@domain, same as %u if there's no domain
  165. # %d - domain part in user@domain, empty if there's no domain
  166. # %h - home directory
  167. #
  168. # See doc/wiki/Variables.txt for full list. Some examples:
  169. #
  170. # mail_location = maildir:~/Maildir
  171. # mail_location = mbox:~/mail:INBOX=/var/mail/%u
  172. # mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
  173. #
  174. # <doc/wiki/MailLocation.txt>
  175. #
  176. #mail_location =
  177. # If you need to set multiple mailbox locations or want to change default
  178. # namespace settings, you can do it by defining namespace sections.
  179. # NOTE: Namespaces currently work ONLY with IMAP! POP3 and LDA currently ignore
  180. # namespaces completely, they use only the mail_location setting.
  181. #
  182. # You can have private, shared and public namespaces. The only difference
  183. # between them is how Dovecot announces them to client via NAMESPACE
  184. # extension. Shared namespaces are meant for user-owned mailboxes which are
  185. # shared to other users, while public namespaces are for more globally
  186. # accessible mailboxes.
  187. #
  188. # REMEMBER: If you add any namespaces, the default namespace must be added
  189. # explicitly, ie. mail_location does nothing unless you have a namespace
  190. # without a location setting. Default namespace is simply done by having a
  191. # namespace with empty prefix.
  192. #namespace private {
  193. # Hierarchy separator to use. You should use the same separator for all
  194. # namespaces or some clients get confused. '/' is usually a good one.
  195. # The default however depends on the underlying mail storage format.
  196. #separator =
  197. # Prefix required to access this namespace. This needs to be different for
  198. # all namespaces. For example "Public/".
  199. #prefix =
  200. # Physical location of the mailbox. This is in same format as
  201. # mail_location, which is also the default for it.
  202. #location =
  203. # There can be only one INBOX, and this setting defines which namespace
  204. # has it.
  205. #inbox = no
  206. # If namespace is hidden, it's not advertised to clients via NAMESPACE
  207. # extension. You'll most likely also want to set list=no. This is mostly
  208. # useful when converting from another server with different namespaces which
  209. # you want to deprecate but still keep working. For example you can create
  210. # hidden namespaces with prefixes "~/mail/", "~%u/mail/" and "mail/".
  211. #hidden = yes
  212. # Show the mailboxes under this namespace with LIST command. This makes the
  213. # namespace visible for clients that don't support NAMESPACE extension.
  214. #list = yes
  215. # Namespace handles its own subscriptions. If set to "no", the parent
  216. # namespace handles them (empty prefix should always have this as "yes")
  217. #subscriptions = yes
  218. #}
  219. # System user and group used to access mails. If you use multiple, userdb
  220. # can override these by returning uid or gid fields. You can use either numbers
  221. # or names. <doc/wiki/UserIds>
  222. #mail_uid =
  223. #mail_gid =
  224. # Group to enable temporarily for privileged operations. Currently this is
  225. # used only with INBOX when either its initial creation or dotlocking fails.
  226. # Typically this is set to "mail" to give access to /var/mail.
  227. #mail_privileged_group =
  228. # Grant access to these supplementary groups for mail processes. Typically
  229. # these are used to set up access to shared mailboxes. Note that it may be
  230. # dangerous to set these if users can create symlinks (e.g. if "mail" group is
  231. # set here, ln -s /var/mail ~/mail/var could allow a user to delete others'
  232. # mailboxes, or ln -s /secret/shared/box ~/mail/mybox would allow reading it).
  233. #mail_access_groups =
  234. # Allow full filesystem access to clients. There's no access checks other than
  235. # what the operating system does for the active UID/GID. It works with both
  236. # maildir and mboxes, allowing you to prefix mailboxes names with eg. /path/
  237. # or ~user/.
  238. #mail_full_filesystem_access = no
  239. ##
  240. ## Mail processes
  241. ##
  242. # Enable mail process debugging. This can help you figure out why Dovecot
  243. # isn't finding your mails.
  244. #mail_debug = no
  245. # Log prefix for mail processes. See doc/wiki/Variables.txt for list of
  246. # possible variables you can use.
  247. #mail_log_prefix = "%Us(%u): "
  248. # Max. number of lines a mail process is allowed to log per second before it's
  249. # throttled. 0 means unlimited. Typically there's no need to change this
  250. # unless you're using mail_log plugin, which may log a lot. This setting is
  251. # ignored while mail_debug=yes to avoid pointless throttling.
  252. #mail_log_max_lines_per_sec = 10
  253. # Don't use mmap() at all. This is required if you store indexes to shared
  254. # filesystems (NFS or clustered filesystem).
  255. #mmap_disable = no
  256. # Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
  257. # since version 3, so this should be safe to use nowadays by default.
  258. #dotlock_use_excl = yes
  259. # Don't use fsync() or fdatasync() calls. This makes the performance better
  260. # at the cost of potential data loss if the server (or the file server)
  261. # goes down.
  262. #fsync_disable = no
  263. # Mail storage exists in NFS. Set this to yes to make Dovecot flush NFS caches
  264. # whenever needed. If you're using only a single mail server this isn't needed.
  265. #mail_nfs_storage = no
  266. # Mail index files also exist in NFS. Setting this to yes requires
  267. # mmap_disable=yes and fsync_disable=no.
  268. #mail_nfs_index = no
  269. # Locking method for index files. Alternatives are fcntl, flock and dotlock.
  270. # Dotlocking uses some tricks which may create more disk I/O than other locking
  271. # methods. NFS users: flock doesn't work, remember to change mmap_disable.
  272. #lock_method = fcntl
  273. # Drop all privileges before exec()ing the mail process. This is mostly
  274. # meant for debugging, otherwise you don't get core dumps. It could be a small
  275. # security risk if you use single UID for multiple users, as the users could
  276. # ptrace() each others processes then.
  277. #mail_drop_priv_before_exec = no
  278. # Show more verbose process titles (in ps). Currently shows user name and
  279. # IP address. Useful for seeing who are actually using the IMAP processes
  280. # (eg. shared mailboxes or if same uid is used for multiple accounts).
  281. #verbose_proctitle = no
  282. # Valid UID range for users, defaults to 500 and above. This is mostly
  283. # to make sure that users can't log in as daemons or other system users.
  284. # Note that denying root logins is hardcoded to dovecot binary and can't
  285. # be done even if first_valid_uid is set to 0.
  286. #first_valid_uid = 500
  287. #last_valid_uid = 0
  288. # Valid GID range for users, defaults to non-root/wheel. Users having
  289. # non-valid GID as primary group ID aren't allowed to log in. If user
  290. # belongs to supplementary groups with non-valid GIDs, those groups are
  291. # not set.
  292. #first_valid_gid = 1
  293. #last_valid_gid = 0
  294. # Maximum number of running mail processes. When this limit is reached,
  295. # new users aren't allowed to log in.
  296. #max_mail_processes = 512
  297. # Set max. process size in megabytes. Most of the memory goes to mmap()ing
  298. # files, so it shouldn't harm much even if this limit is set pretty high.
  299. #mail_process_size = 256
  300. # Maximum allowed length for mail keyword name. It's only forced when trying
  301. # to create new keywords.
  302. #mail_max_keyword_length = 50
  303. # ':' separated list of directories under which chrooting is allowed for mail
  304. # processes (ie. /var/mail will allow chrooting to /var/mail/foo/bar too).
  305. # This setting doesn't affect login_chroot, mail_chroot or auth chroot
  306. # settings.
  307. # WARNING: Never add directories here which local users can modify, that
  308. # may lead to root exploit. Usually this should be done only if you don't
  309. # allow shell access for users. <doc/wiki/Chrooting.txt>
  310. #valid_chroot_dirs =
  311. # Default chroot directory for mail processes. This can be overridden for
  312. # specific users in user database by giving /./ in user's home directory
  313. # (eg. /home/./user chroots into /home). Note that usually there is no real
  314. # need to do chrooting, Dovecot doesn't allow users to access files outside
  315. # their mail directory anyway. If your home directories are prefixed with
  316. # the chroot directory, append "/." to mail_chroot. <doc/wiki/Chrooting.txt>
  317. #mail_chroot =
  318. ##
  319. ## Mailbox handling optimizations
  320. ##
  321. # The minimum number of mails in a mailbox before updates are done to cache
  322. # file. This allows optimizing Dovecot's behavior to do less disk writes at
  323. # the cost of more disk reads.
  324. #mail_cache_min_mail_count = 0
  325. # When IDLE command is running, mailbox is checked once in a while to see if
  326. # there are any new mails or other changes. This setting defines the minimum
  327. # time in seconds to wait between those checks. Dovecot can also use dnotify,
  328. # inotify and kqueue to find out immediately when changes occur.
  329. #mailbox_idle_check_interval = 30
  330. # Save mails with CR+LF instead of plain LF. This makes sending those mails
  331. # take less CPU, especially with sendfile() syscall with Linux and FreeBSD.
  332. # But it also creates a bit more disk I/O which may just make it slower.
  333. # Also note that if other software reads the mboxes/maildirs, they may handle
  334. # the extra CRs wrong and cause problems.
  335. #mail_save_crlf = no
  336. ##
  337. ## Maildir-specific settings
  338. ##
  339. # By default LIST command returns all entries in maildir beginning with a dot.
  340. # Enabling this option makes Dovecot return only entries which are directories.
  341. # This is done by stat()ing each entry, so it causes more disk I/O.
  342. # (For systems setting struct dirent->d_type, this check is free and it's
  343. # done always regardless of this setting)
  344. #maildir_stat_dirs = no
  345. # When copying a message, do it with hard links whenever possible. This makes
  346. # the performance much better, and it's unlikely to have any side effects.
  347. #maildir_copy_with_hardlinks = yes
  348. # When copying a message, try to preserve the base filename. Only if the
  349. # destination mailbox already contains the same name (ie. the mail is being
  350. # copied there twice), a new name is given. The destination filename check is
  351. # done only by looking at dovecot-uidlist file, so if something outside
  352. # Dovecot does similar filename preserving copies, you may run into problems.
  353. # NOTE: This setting requires maildir_copy_with_hardlinks = yes to work.
  354. #maildir_copy_preserve_filename = no
  355. ##
  356. ## mbox-specific settings
  357. ##
  358. # Which locking methods to use for locking mbox. There are four available:
  359. # dotlock: Create <mailbox>.lock file. This is the oldest and most NFS-safe
  360. # solution. If you want to use /var/mail/ like directory, the users
  361. # will need write access to that directory.
  362. # dotlock_try: Same as dotlock, but if it fails because of permissions or
  363. # because there isn't enough disk space, just skip it.
  364. # fcntl : Use this if possible. Works with NFS too if lockd is used.
  365. # flock : May not exist in all systems. Doesn't work with NFS.
  366. # lockf : May not exist in all systems. Doesn't work with NFS.
  367. #
  368. # You can use multiple locking methods; if you do the order they're declared
  369. # in is important to avoid deadlocks if other MTAs/MUAs are using multiple
  370. # locking methods as well. Some operating systems don't allow using some of
  371. # them simultaneously.
  372. #mbox_read_locks = fcntl
  373. #mbox_write_locks = dotlock fcntl
  374. # Maximum time in seconds to wait for lock (all of them) before aborting.
  375. #mbox_lock_timeout = 300
  376. # If dotlock exists but the mailbox isn't modified in any way, override the
  377. # lock file after this many seconds.
  378. #mbox_dotlock_change_timeout = 120
  379. # When mbox changes unexpectedly we have to fully read it to find out what
  380. # changed. If the mbox is large this can take a long time. Since the change
  381. # is usually just a newly appended mail, it'd be faster to simply read the
  382. # new mails. If this setting is enabled, Dovecot does this but still safely
  383. # fallbacks to re-reading the whole mbox file whenever something in mbox isn't
  384. # how it's expected to be. The only real downside to this setting is that if
  385. # some other MUA changes message flags, Dovecot doesn't notice it immediately.
  386. # Note that a full sync is done with SELECT, EXAMINE, EXPUNGE and CHECK
  387. # commands.
  388. #mbox_dirty_syncs = yes
  389. # Like mbox_dirty_syncs, but don't do full syncs even with SELECT, EXAMINE,
  390. # EXPUNGE or CHECK commands. If this is set, mbox_dirty_syncs is ignored.
  391. #mbox_very_dirty_syncs = no
  392. # Delay writing mbox headers until doing a full write sync (EXPUNGE and CHECK
  393. # commands and when closing the mailbox). This is especially useful for POP3
  394. # where clients often delete all mails. The downside is that our changes
  395. # aren't immediately visible to other MUAs.
  396. #mbox_lazy_writes = yes
  397. # If mbox size is smaller than this (in kilobytes), don't write index files.
  398. # If an index file already exists it's still read, just not updated.
  399. #mbox_min_index_size = 0
  400. ##
  401. ## dbox-specific settings
  402. ##
  403. # Maximum dbox file size in kilobytes until it's rotated.
  404. #dbox_rotate_size = 2048
  405. # Minimum dbox file size in kilobytes before it's rotated
  406. # (overrides dbox_rotate_days)
  407. #dbox_rotate_min_size = 16
  408. # Maximum dbox file age in days until it's rotated. Day always begins from
  409. # midnight, so 1 = today, 2 = yesterday, etc. 0 = check disabled.
  410. #dbox_rotate_days = 0
  411. ##
  412. ## IMAP specific settings
  413. ##
  414. protocol imap {
  415. # Login executable location.
  416. #login_executable = /usr/libexec/dovecot/imap-login
  417. # IMAP executable location. Changing this allows you to execute other
  418. # binaries before the imap process is executed.
  419. #
  420. # This would write rawlogs into ~/dovecot.rawlog/ directory:
  421. # mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
  422. #
  423. # This would attach gdb into the imap process and write backtraces into
  424. # /tmp/gdbhelper.* files:
  425. # mail_executable = /usr/libexec/dovecot/gdbhelper /usr/libexec/dovecot/imap
  426. #
  427. #mail_executable = /usr/libexec/dovecot/imap
  428. # Maximum IMAP command line length in bytes. Some clients generate very long
  429. # command lines with huge mailboxes, so you may need to raise this if you get
  430. # "Too long argument" or "IMAP command line too large" errors often.
  431. #imap_max_line_length = 65536
  432. # Maximum number of IMAP connections allowed for a user from each IP address.
  433. # NOTE: The username is compared case-sensitively.
  434. #mail_max_userip_connections = 10
  435. # Support for dynamically loadable plugins. mail_plugins is a space separated
  436. # list of plugins to load.
  437. #mail_plugins =
  438. #mail_plugin_dir = /usr/lib/dovecot/imap
  439. # Send IMAP capabilities in greeting message. This makes it unnecessary for
  440. # clients to request it with CAPABILITY command, so it saves one round-trip.
  441. # Many clients however don't understand it and ask the CAPABILITY anyway.
  442. #login_greeting_capability = no
  443. # IMAP logout format string:
  444. # %i - total number of bytes read from client
  445. # %o - total number of bytes sent to client
  446. #imap_logout_format = bytes=%i/%o
  447. # Override the IMAP CAPABILITY response.
  448. #imap_capability =
  449. # Workarounds for various client bugs:
  450. # delay-newmail:
  451. # Send EXISTS/RECENT new mail notifications only when replying to NOOP
  452. # and CHECK commands. Some clients ignore them otherwise, for example OSX
  453. # Mail (<v2.1). Outlook Express breaks more badly though, without this it
  454. # may show user "Message no longer in server" errors. Note that OE6 still
  455. # breaks even with this workaround if synchronization is set to
  456. # "Headers Only".
  457. # netscape-eoh:
  458. # Netscape 4.x breaks if message headers don't end with the empty "end of
  459. # headers" line. Normally all messages have this, but setting this
  460. # workaround makes sure that Netscape never breaks by adding the line if
  461. # it doesn't exist. This is done only for FETCH BODY[HEADER.FIELDS..]
  462. # commands. Note that RFC says this shouldn't be done.
  463. # tb-extra-mailbox-sep:
  464. # With mbox storage a mailbox can contain either mails or submailboxes,
  465. # but not both. Thunderbird separates these two by forcing server to
  466. # accept '/' suffix in mailbox names in subscriptions list.
  467. # The list is space-separated.
  468. #imap_client_workarounds =
  469. }
  470. ##
  471. ## POP3 specific settings
  472. ##
  473. protocol pop3 {
  474. # Login executable location.
  475. #login_executable = /usr/libexec/dovecot/pop3-login
  476. # POP3 executable location. See IMAP's mail_executable above for examples
  477. # how this could be changed.
  478. #mail_executable = /usr/libexec/dovecot/pop3
  479. # Don't try to set mails non-recent or seen with POP3 sessions. This is
  480. # mostly intended to reduce disk I/O. With maildir it doesn't move files
  481. # from new/ to cur/, with mbox it doesn't write Status-header.
  482. #pop3_no_flag_updates = no
  483. # Support LAST command which exists in old POP3 specs, but has been removed
  484. # from new ones. Some clients still wish to use this though. Enabling this
  485. # makes RSET command clear all \Seen flags from messages.
  486. #pop3_enable_last = no
  487. # If mail has X-UIDL header, use it as the mail's UIDL.
  488. #pop3_reuse_xuidl = no
  489. # Keep the mailbox locked for the entire POP3 session.
  490. #pop3_lock_session = no
  491. # POP3 UIDL (unique mail identifier) format to use. You can use following
  492. # variables, along with the variable modifiers described in
  493. # doc/wiki/Variables.txt (e.g. %Uf for the filename in uppercase)
  494. #
  495. # %v - Mailbox's IMAP UIDVALIDITY
  496. # %u - Mail's IMAP UID
  497. # %m - MD5 sum of the mailbox headers in hex (mbox only)
  498. # %f - filename (maildir only)
  499. #
  500. # If you want UIDL compatibility with other POP3 servers, use:
  501. # UW's ipop3d : %08Xv%08Xu
  502. # Courier : %f or %v-%u (both might be used simultaneosly)
  503. # Cyrus (<= 2.1.3) : %u
  504. # Cyrus (>= 2.1.4) : %v.%u
  505. # Dovecot v0.99.x : %v.%u
  506. # tpop3d : %Mf
  507. #
  508. # Note that Outlook 2003 seems to have problems with %v.%u format which was
  509. # Dovecot's default, so if you're building a new server it would be a good
  510. # idea to change this. %08Xu%08Xv should be pretty fail-safe.
  511. #
  512. #pop3_uidl_format = %08Xu%08Xv
  513. # POP3 logout format string:
  514. # %i - total number of bytes read from client
  515. # %o - total number of bytes sent to client
  516. # %t - number of TOP commands
  517. # %p - number of bytes sent to client as a result of TOP command
  518. # %r - number of RETR commands
  519. # %b - number of bytes sent to client as a result of RETR command
  520. # %d - number of deleted messages
  521. # %m - number of messages (before deletion)
  522. # %s - mailbox size in bytes (before deletion)
  523. #pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
  524. # Maximum number of POP3 connections allowed for a user from each IP address.
  525. # NOTE: The username is compared case-sensitively.
  526. #mail_max_userip_connections = 3
  527. # Support for dynamically loadable plugins. mail_plugins is a space separated
  528. # list of plugins to load.
  529. #mail_plugins =
  530. #mail_plugin_dir = /usr/lib/dovecot/pop3
  531. # Workarounds for various client bugs:
  532. # outlook-no-nuls:
  533. # Outlook and Outlook Express hang if mails contain NUL characters.
  534. # This setting replaces them with 0x80 character.
  535. # oe-ns-eoh:
  536. # Outlook Express and Netscape Mail breaks if end of headers-line is
  537. # missing. This option simply sends it if it's missing.
  538. # The list is space-separated.
  539. #pop3_client_workarounds =
  540. }
  541. ##
  542. ## LDA specific settings
  543. ##
  544. protocol lda {
  545. # Address to use when sending rejection mails.
  546. postmaster_address = postmaster@example.com
  547. # Hostname to use in various parts of sent mails, eg. in Message-Id.
  548. # Default is the system's real hostname.
  549. #hostname =
  550. # Support for dynamically loadable plugins. mail_plugins is a space separated
  551. # list of plugins to load.
  552. #mail_plugins =
  553. #mail_plugin_dir = /usr/lib/dovecot/lda
  554. # If user is over quota, return with temporary failure instead of
  555. # bouncing the mail.
  556. #quota_full_tempfail = no
  557. # Format to use for logging mail deliveries. You can use variables:
  558. # %$ - Delivery status message (e.g. "saved to INBOX")
  559. # %m - Message-ID
  560. # %s - Subject
  561. # %f - From address
  562. #deliver_log_format = msgid=%m: %$
  563. # Binary to use for sending mails.
  564. #sendmail_path = /usr/lib/sendmail
  565. # Human readable error message for rejection mails. Use can use variables:
  566. # %n = CRLF, %r = reason, %s = subject, %t = recipient
  567. #rejection_reason = Your message to <%t> was automatically rejected:%n%r
  568. # UNIX socket path to master authentication server to find users.
  569. #auth_socket_path = /var/run/dovecot/auth-master
  570. }
  571. ##
  572. ## Authentication processes
  573. ##
  574. # Executable location
  575. #auth_executable = /usr/libexec/dovecot/dovecot-auth
  576. # Set max. process size in megabytes.
  577. #auth_process_size = 256
  578. # Authentication cache size in kilobytes. 0 means it's disabled.
  579. # Note that bsdauth, PAM and vpopmail require cache_key to be set for caching
  580. # to be used.
  581. #auth_cache_size = 0
  582. # Time to live in seconds for cached data. After this many seconds the cached
  583. # record is no longer used, *except* if the main database lookup returns
  584. # internal failure. We also try to handle password changes automatically: If
  585. # user's previous authentication was successful, but this one wasn't, the
  586. # cache isn't used. For now this works only with plaintext authentication.
  587. #auth_cache_ttl = 3600
  588. # TTL for negative hits (user not found). 0 disables caching them completely.
  589. #auth_cache_negative_ttl = 3600
  590. # Space separated list of realms for SASL authentication mechanisms that need
  591. # them. You can leave it empty if you don't want to support multiple realms.
  592. # Many clients simply use the first one listed here, so keep the default realm
  593. # first.
  594. #auth_realms =
  595. # Default realm/domain to use if none was specified. This is used for both
  596. # SASL realms and appending @domain to username in plaintext logins.
  597. #auth_default_realm =
  598. # List of allowed characters in username. If the user-given username contains
  599. # a character not listed in here, the login automatically fails. This is just
  600. # an extra check to make sure user can't exploit any potential quote escaping
  601. # vulnerabilities with SQL/LDAP databases. If you want to allow all characters,
  602. # set this value to empty.
  603. #auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
  604. # Username character translations before it's looked up from databases. The
  605. # value contains series of from -> to characters. For example "#@/@" means
  606. # that '#' and '/' characters are translated to '@'.
  607. #auth_username_translation =
  608. # Username formatting before it's looked up from databases. You can use
  609. # the standard variables here, eg. %Lu would lowercase the username, %n would
  610. # drop away the domain if it was given, or "%n-AT-%d" would change the '@' into
  611. # "-AT-". This translation is done after auth_username_translation changes.
  612. #auth_username_format =
  613. # If you want to allow master users to log in by specifying the master
  614. # username within the normal username string (ie. not using SASL mechanism's
  615. # support for it), you can specify the separator character here. The format
  616. # is then <username><separator><master username>. UW-IMAP uses "*" as the
  617. # separator, so that could be a good choice.
  618. #auth_master_user_separator =
  619. # Username to use for users logging in with ANONYMOUS SASL mechanism
  620. #auth_anonymous_username = anonymous
  621. # More verbose logging. Useful for figuring out why authentication isn't
  622. # working.
  623. #auth_verbose = no
  624. # Even more verbose logging for debugging purposes. Shows for example SQL
  625. # queries.
  626. #auth_debug = no
  627. # In case of password mismatches, log the passwords and used scheme so the
  628. # problem can be debugged. Enabling this also enables auth_debug.
  629. #auth_debug_passwords = no
  630. # Maximum number of dovecot-auth worker processes. They're used to execute
  631. # blocking passdb and userdb queries (eg. MySQL and PAM). They're
  632. # automatically created and destroyed as needed.
  633. #auth_worker_max_count = 30
  634. # Number of auth requests to handle before destroying the process. This may
  635. # be useful if PAM plugins leak memory.
  636. #auth_worker_max_request_count = 0
  637. # Host name to use in GSSAPI principal names. The default is to use the
  638. # name returned by gethostname().
  639. #auth_gssapi_hostname =
  640. # Kerberos keytab to use for the GSSAPI mechanism. Will use the system
  641. # default (usually /etc/krb5.keytab) if not specified.
  642. #auth_krb5_keytab =
  643. # Do NTLM authentication using Samba's winbind daemon and ntlm_auth helper.
  644. # <doc/wiki/Authentication/Mechanisms/Winbind.txt>
  645. #auth_ntlm_use_winbind = no
  646. # Path for Samba's ntlm_auth helper binary.
  647. #auth_winbind_helper_path = /usr/bin/ntlm_auth
  648. # Number of seconds to delay before replying to failed authentications.
  649. #auth_failure_delay = 2
  650. auth default {
  651. # Space separated list of wanted authentication mechanisms:
  652. # plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi otp skey
  653. # gss-spnego
  654. # NOTE: See also disable_plaintext_auth setting.
  655. mechanisms = plain
  656. #
  657. # Password database is used to verify user's password (and nothing more).
  658. # You can have multiple passdbs and userdbs. This is useful if you want to
  659. # allow both system users (/etc/passwd) and virtual users to login without
  660. # duplicating the system users into virtual database.
  661. #
  662. # <doc/wiki/PasswordDatabase.txt>
  663. #
  664. # By adding master=yes setting inside a passdb you make the passdb a list
  665. # of "master users", who can log in as anyone else. Unless you're using PAM,
  666. # you probably still want the destination user to be looked up from passdb
  667. # that it really exists. This can be done by adding pass=yes setting to the
  668. # master passdb. <doc/wiki/Authentication.MasterUsers.txt>
  669. # Users can be temporarily disabled by adding a passdb with deny=yes.
  670. # If the user is found from that database, authentication will fail.
  671. # The deny passdb should always be specified before others, so it gets
  672. # checked first. Here's an example:
  673. #passdb passwd-file {
  674. # File contains a list of usernames, one per line
  675. #args = /etc/dovecot.deny
  676. #deny = yes
  677. #}
  678. # PAM authentication. Preferred nowadays by most systems.
  679. # Note that PAM can only be used to verify if user's password is correct,
  680. # so it can't be used as userdb. If you don't want to use a separate user
  681. # database (passwd usually), you can use static userdb.
  682. # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
  683. # authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
  684. #passdb pam {
  685. # [session=yes] [setcred=yes] [failure_show_msg=yes]
  686. # [cache_key=<key>] [<service name>]
  687. #
  688. # session=yes makes Dovecot open and immediately close PAM session. Some
  689. # PAM plugins need this to work, such as pam_mkhomedir.
  690. #
  691. # setcred=yes makes Dovecot establish PAM credentials if some PAM plugins
  692. # need that. They aren't ever deleted though, so this isn't enabled by
  693. # default.
  694. #
  695. # cache_key can be used to enable authentication caching for PAM
  696. # (auth_cache_size also needs to be set). It isn't enabled by default
  697. # because PAM modules can do all kinds of checks besides checking password,
  698. # such as checking IP address. Dovecot can't know about these checks
  699. # without some help. cache_key is simply a list of variables (see
  700. # doc/wiki/Variables.txt) which must match for the cached data to be used.
  701. # Here are some examples:
  702. # %u - Username must match. Probably sufficient for most uses.
  703. # %u%r - Username and remote IP address must match.
  704. # %u%s - Username and service (ie. IMAP, POP3) must match.
  705. #
  706. # The service name can contain variables, for example %Ls expands to
  707. # pop3 or imap.
  708. #
  709. # Some examples:
  710. # args = session=yes %Ls
  711. # args = cache_key=%u dovecot
  712. #args = dovecot
  713. #}
  714. # System users (NSS, /etc/passwd, or similiar)
  715. # In many systems nowadays this uses Name Service Switch, which is
  716. # configured in /etc/nsswitch.conf. <doc/wiki/AuthDatabase.Passwd.txt>
  717. passdb passwd {
  718. # [blocking=yes] - See userdb passwd for explanation
  719. #args =
  720. }
  721. # Shadow passwords for system users (NSS, /etc/shadow or similiar).
  722. # Deprecated by PAM nowadays.
  723. # <doc/wiki/PasswordDatabase.Shadow.txt>
  724. #passdb shadow {
  725. # [blocking=yes] - See userdb passwd for explanation
  726. #args =
  727. #}
  728. # PAM-like authentication for OpenBSD.
  729. # <doc/wiki/PasswordDatabase.BSDAuth.txt>
  730. #passdb bsdauth {
  731. # [cache_key=<key>] - See cache_key in PAM for explanation.
  732. #args =
  733. #}
  734. # passwd-like file with specified location
  735. # <doc/wiki/AuthDatabase.PasswdFile.txt>
  736. #passdb passwd-file {
  737. # [scheme=<default password scheme>] [username_format=<format>]
  738. # <Path for passwd-file>
  739. #args =
  740. #}
  741. # checkpassword executable authentication
  742. # NOTE: You will probably want to use "userdb prefetch" with this.
  743. # <doc/wiki/PasswordDatabase.CheckPassword.txt>
  744. #passdb checkpassword {
  745. # Path for checkpassword binary
  746. #args =
  747. #}
  748. # SQL database <doc/wiki/AuthDatabase.SQL.txt>
  749. #passdb sql {
  750. # Path for SQL configuration file, see doc/dovecot-sql-example.conf
  751. #args =
  752. #}
  753. # LDAP database <doc/wiki/AuthDatabase.LDAP.txt>
  754. #passdb ldap {
  755. # Path for LDAP configuration file, see doc/dovecot-ldap-example.conf
  756. #args =
  757. #}
  758. # vpopmail authentication <doc/wiki/AuthDatabase.VPopMail.txt>
  759. #passdb vpopmail {
  760. # [cache_key=<key>] - See cache_key in PAM for explanation.
  761. # [quota_template=<template>] - %q expands to Maildir++ quota
  762. # (eg. quota_template=quota_rule=*:backend=%q)
  763. #args =
  764. #}
  765. #
  766. # User database specifies where mails are located and what user/group IDs
  767. # own them. For single-UID configuration use "static".
  768. #
  769. # <doc/wiki/UserDatabase.txt>
  770. #
  771. # System users (NSS, /etc/passwd, or similiar). In many systems nowadays this
  772. # uses Name Service Switch, which is configured in /etc/nsswitch.conf.
  773. # <doc/wiki/AuthDatabase.Passwd.txt>
  774. userdb passwd {
  775. # [blocking=yes] - By default the lookups are done in the main dovecot-auth
  776. # process. This setting causes the lookups to be done in auth worker
  777. # proceses. Useful with remote NSS lookups that may block.
  778. # NOTE: Be sure to use this setting with nss_ldap or users might get
  779. # logged in as each others!
  780. #args =
  781. }
  782. # passwd-like file with specified location
  783. # <doc/wiki/AuthDatabase.PasswdFile.txt>
  784. #userdb passwd-file {
  785. # [username_format=<format>] <Path for passwd-file>
  786. #args =
  787. #}
  788. # static settings generated from template <doc/wiki/UserDatabase.Static.txt>
  789. #userdb static {
  790. # Template for the fields. Can return anything a userdb could normally
  791. # return. For example:
  792. #
  793. # args = uid=500 gid=500 home=/var/mail/%u
  794. #
  795. # If you use deliver, it needs to look up users only from the userdb. This
  796. # of course doesn't work with static because there is no list of users.
  797. # Normally static userdb handles this by doing a passdb lookup. This works
  798. # with most passdbs, with PAM being the most notable exception. If you do
  799. # the user verification another way, you can add allow_all_users=yes to
  800. # the args in which case the passdb lookup is skipped.
  801. #
  802. #args =
  803. #}
  804. # SQL database <doc/wiki/AuthDatabase.SQL.txt>
  805. #userdb sql {
  806. # Path for SQL configuration file, see doc/dovecot-sql-example.conf
  807. #args =
  808. #}
  809. # LDAP database <doc/wiki/AuthDatabase.LDAP.txt>
  810. #userdb ldap {
  811. # Path for LDAP configuration file, see doc/dovecot-ldap-example.conf
  812. #args =
  813. #}
  814. # vpopmail <doc/wiki/AuthDatabase.VPopMail.txt>
  815. #userdb vpopmail {
  816. #}
  817. # "prefetch" user database means that the passdb already provided the
  818. # needed information and there's no need to do a separate userdb lookup.
  819. # This can be made to work with SQL and LDAP databases, see their example
  820. # configuration files for more information how to do it.
  821. # <doc/wiki/UserDatabase.Prefetch.txt>
  822. #userdb prefetch {
  823. #}
  824. # User to use for the process. This user needs access to only user and
  825. # password databases, nothing else. Only shadow and pam authentication
  826. # requires roots, so use something else if possible. Note that passwd
  827. # authentication with BSDs internally accesses shadow files, which also
  828. # requires roots. Note that this user is NOT used to access mails.
  829. # That user is specified by userdb above.
  830. user = root
  831. # Directory where to chroot the process. Most authentication backends don't
  832. # work if this is set, and there's no point chrooting if auth_user is root.
  833. # Note that valid_chroot_dirs isn't needed to use this setting.
  834. #chroot =
  835. # Number of authentication processes to create
  836. #count = 1
  837. # Require a valid SSL client certificate or the authentication fails.
  838. #ssl_require_client_cert = no
  839. # Take the username from client's SSL certificate, using
  840. # X509_NAME_get_text_by_NID() which returns the subject's DN's
  841. # CommonName.
  842. #ssl_username_from_cert = no
  843. # It's possible to export the authentication interface to other programs:
  844. #socket listen {
  845. #master {
  846. # Master socket provides access to userdb information. It's typically
  847. # used to give Dovecot's local delivery agent access to userdb so it
  848. # can find mailbox locations.
  849. #path = /var/run/dovecot/auth-master
  850. #mode = 0600
  851. # Default user/group is the one who started dovecot-auth (root)
  852. #user =
  853. #group =
  854. #}
  855. #client {
  856. # The client socket is generally safe to export to everyone. Typical use
  857. # is to export it to your SMTP server so it can do SMTP AUTH lookups
  858. # using it.
  859. #path = /var/run/dovecot/auth-client
  860. #mode = 0660
  861. #}
  862. #}
  863. }
  864. # If you wish to use another authentication server than dovecot-auth, you can
  865. # use connect sockets. They are assumed to be already running, Dovecot's master
  866. # process only tries to connect to them. They don't need any other settings
  867. # than the path for the master socket, as the configuration is done elsewhere.
  868. # Note that the client sockets must exist in the login_dir.
  869. #auth external {
  870. # socket connect {
  871. # master {
  872. # path = /var/run/dovecot/auth-master
  873. # }
  874. # }
  875. #}
  876. ##
  877. ## Dictionary server settings
  878. ##
  879. # Dictionary can be used by some plugins to store key=value lists.
  880. # Currently this is only used by dict quota backend. The dictionary can be
  881. # used either directly or though a dictionary server. The following dict block
  882. # maps dictionary names to URIs when the server is used. These can then be
  883. # referenced using URIs in format "proxy::<name>".
  884. dict {
  885. #quota = mysql:/etc/dovecot-dict-quota.conf
  886. }
  887. # Path to Berkeley DB's configuration file. See doc/dovecot-db-example.conf
  888. #dict_db_config =
  889. ##
  890. ## Plugin settings
  891. ##
  892. plugin {
  893. # Here you can give some extra environment variables to mail processes.
  894. # This is mostly meant for passing parameters to plugins. %variable
  895. # expansion is done for all values.
  896. # Quota plugin. Multiple backends are supported:
  897. # dirsize: Find and sum all the files found from mail directory.
  898. # Extremely SLOW with Maildir. It'll eat your CPU and disk I/O.
  899. # dict: Keep quota stored in dictionary (eg. SQL)
  900. # maildir: Maildir++ quota
  901. # fs: Read-only support for filesystem quota
  902. #
  903. # Quota limits are set using "quota_rule" parameters, either in here or in
  904. # userdb. It's also possible to give mailbox-specific limits, for example:
  905. # quota_rule = *:storage=1048576
  906. # quota_rule2 = Trash:storage=102400
  907. # User has now 1GB quota, but when saving to Trash mailbox the user gets
  908. # additional 100MB.
  909. #
  910. # Multiple quota roots are also possible, for example:
  911. # quota = dict:user::proxy::quota
  912. # quota2 = dict:domain:%d:proxy::quota_domain
  913. # quota_rule = *:storage=102400
  914. # quota2_rule = *:storage=1048576
  915. # Gives each user their own 100MB quota and one shared 1GB quota within
  916. # the domain.
  917. #
  918. # You can execute a given command when user exceeds a specified quota limit.
  919. # Each quota root has separate limits. Only the command for the first
  920. # exceeded limit is excecuted, so put the highest limit first.
  921. # Note that % needs to be escaped as %%, otherwise "% " expands to empty.
  922. # quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95
  923. # quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80
  924. #quota = maildir
  925. # ACL plugin. vfile backend reads ACLs from "dovecot-acl" file from maildir
  926. # directory. You can also optionally give a global ACL directory path where
  927. # ACLs are applied to all users' mailboxes. The global ACL directory contains
  928. # one file for each mailbox, eg. INBOX or sub.mailbox. cache_secs parameter
  929. # specifies how many seconds to wait between stat()ing dovecot-acl file
  930. # to see if it changed.
  931. #acl = vfile:/etc/dovecot-acls:cache_secs=300
  932. # Convert plugin. If set, specifies the source storage path which is
  933. # converted to destination storage (mail_location) when the user logs in.
  934. # The existing mail directory is renamed to <dir>-converted.
  935. #convert_mail = mbox:%h/mail
  936. # Skip mailboxes which we can't open successfully instead of aborting.
  937. #convert_skip_broken_mailboxes = no
  938. # Skip directories beginning with '.'
  939. #convert_skip_dotdirs = no
  940. # If source storage has mailbox names with destination storage's hierarchy
  941. # separators, replace them with this character.
  942. #convert_alt_hierarchy_char = _
  943. # Trash plugin. When saving a message would make user go over quota, this
  944. # plugin automatically deletes the oldest mails from configured mailboxes
  945. # until the message can be saved within quota limits. The configuration file
  946. # is a text file where each line is in format: <priority> <mailbox name>
  947. # Mails are first deleted in lowest -> highest priority number order
  948. #trash = /etc/dovecot-trash.conf
  949. # Expire plugin. Mails are expunged from mailboxes after being there the
  950. # configurable time. The first expiration date for each mailbox is stored in
  951. # a dictionary so it can be quickly determined which mailboxes contain
  952. # expired mails. The actual expunging is done in a nightly cronjob, which
  953. # you must set up:
  954. # dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool
  955. #expire = Trash 7 Spam 30
  956. #expire_dict = db:/var/lib/dovecot/expire.db
  957. # Lazy expunge plugin. Currently works only with maildirs. When a user
  958. # expunges mails, the mails are moved to a mailbox in another namespace
  959. # (1st). When a mailbox is deleted, the mailbox is moved to another namespace
  960. # (2nd) as well. Also if the deleted mailbox had any expunged messages,
  961. # they're moved to a 3rd namespace. The mails won't be counted in quota,
  962. # and they're not deleted automatically (use a cronjob or something).
  963. #lazy_expunge = .EXPUNGED/ .DELETED/ .DELETED/.EXPUNGED/
  964. # Events to log. Default is all.
  965. #mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  966. # Group events within a transaction to one line.
  967. #mail_log_group_events =
  968. # Available fields: uid, box, msgid, size, vsize
  969. # size and vsize are available only for expunge and copy events.
  970. #mail_log_fields = uid box msgid size
  971. }