dovecot.conf.erb 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. # Generated by Chef
  2. ## Dovecot configuration file
  3. # If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration
  4. # "doveconf -n" command gives a clean output of the changed settings. Use it
  5. # instead of copy&pasting files when posting to the Dovecot mailing list.
  6. # '#' character and everything after it is treated as comments. Extra spaces
  7. # and tabs are ignored. If you want to use either of these explicitly, put the
  8. # value inside quotes, eg.: key = "# char and trailing whitespace "
  9. # Default values are shown for each setting, it's not required to uncomment
  10. # those. These are exceptions to this though: No sections (e.g. namespace {})
  11. # or plugin settings are added by default, they're listed only as examples.
  12. # Paths are also just examples with the real defaults being based on configure
  13. # options. The paths listed here are for configure --prefix=/usr
  14. # --sysconfdir=/etc --localstatedir=/var
  15. # Protocols we want to be serving.
  16. <% unless @protocols.nil? -%>
  17. protocols = <%= Dovecot::Conf.protocols(@protocols) %>
  18. <% else -%>
  19. #protocols = imap pop3 lmtp
  20. <% end -%>
  21. # A comma separated list of IPs or hosts where to listen in for connections.
  22. # "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
  23. # If you want to specify non-default ports or anything more complex,
  24. # edit conf.d/master.conf.
  25. <%= Dovecot::Conf.attribute(@conf, 'listen', '*, ::') %>
  26. # Base directory where to store runtime data.
  27. <%= Dovecot::Conf.attribute(@conf, 'base_dir', '/var/run/dovecot/') %>
  28. # Name of this instance. Used to prefix all Dovecot processes in ps output.
  29. <%= Dovecot::Conf.attribute(@conf, 'instance_name', 'dovecot') %>
  30. # Greeting message for clients.
  31. <%= Dovecot::Conf.attribute(@conf, 'login_greeting', 'Dovecot ready.') %>
  32. # Space separated list of trusted network ranges. Connections from these
  33. # IPs are allowed to override their IP addresses and ports (for logging and
  34. # for authentication checks). disable_plaintext_auth is also ignored for
  35. # these networks. Typically you'd specify your IMAP proxy servers here.
  36. <%= Dovecot::Conf.attribute(@conf, 'login_trusted_networks') %>
  37. # Space separated list of login access check sockets (e.g. tcpwrap)
  38. <%= Dovecot::Conf.attribute(@conf, 'login_access_sockets') %>
  39. # Show more verbose process titles (in ps). Currently shows user name and
  40. # IP address. Useful for seeing who are actually using the IMAP processes
  41. # (eg. shared mailboxes or if same uid is used for multiple accounts).
  42. <%= Dovecot::Conf.attribute(@conf, 'verbose_proctitle', false) %>
  43. # Should all processes be killed when Dovecot master process shuts down.
  44. # Setting this to "no" means that Dovecot can be upgraded without
  45. # forcing existing client connections to close (although that could also be
  46. # a problem if the upgrade is e.g. because of a security fix).
  47. <%= Dovecot::Conf.attribute(@conf, 'shutdown_clients', true) %>
  48. # If non-zero, run mail commands via this many connections to doveadm server,
  49. # instead of running them directly in the same process.
  50. <%= Dovecot::Conf.attribute(@conf, 'doveadm_worker_count', 0) %>
  51. # UNIX socket or host:port used for connecting to doveadm server
  52. <%= Dovecot::Conf.attribute(@conf, 'doveadm_socket_path', 'doveadm-server') %>
  53. # Space separated list of environment variables that are preserved on Dovecot
  54. # startup and passed down to all of its child processes. You can also give
  55. # key=value pairs to always set specific settings.
  56. <%= Dovecot::Conf.attribute(@conf, 'import_environment', 'TZ') %>
  57. ##
  58. ## Dictionary server settings
  59. ##
  60. # Dictionary can be used to store key=value lists. This is used by several
  61. # plugins. The dictionary can be accessed either directly or though a
  62. # dictionary server. The following dict block maps dictionary names to URIs
  63. # when the server is used. These can then be referenced using URIs in format
  64. # "proxy::<name>".
  65. <% if @conf['dict'].kind_of?(Hash) -%>
  66. dict {
  67. <% @conf['dict'].sort.each do |key, value| -%>
  68. <%= key %> = <%= Dovecot::Conf.value(value) %>
  69. <% end -%>
  70. }
  71. <% else -%>
  72. dict {
  73. #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  74. #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
  75. }
  76. <% end -%>
  77. # Most of the actual configuration gets included below. The filenames are
  78. # first sorted by their ASCII value and parsed in that order. The 00-prefixes
  79. # in filenames are intended to make it easier to understand the ordering.
  80. !include conf.d/*.conf
  81. # A config file can also tried to be included without giving an error if
  82. # it's not found:
  83. !include_try local.conf