Advertisement
Guest User

Untitled

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