25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
3.6KB

  1. {{ansible_managed|comment}}
  2. #default_process_limit = 100
  3. #default_client_limit = 1000
  4. # Default VSZ (virtual memory size) limit for service processes. This is mainly
  5. # intended to catch and kill processes that leak memory before they eat up
  6. # everything.
  7. #default_vsz_limit = 256M
  8. # Login user is internally used by login processes. This is the most untrusted
  9. # user in Dovecot system. It shouldn't have access to anything at all.
  10. #default_login_user = dovenull
  11. # Internal user is used by unprivileged processes. It should be separate from
  12. # login user, so that login processes can't disturb other processes.
  13. default_internal_user = dovecot
  14. service imap-login {
  15. inet_listener imap {
  16. #port = 143
  17. }
  18. inet_listener imaps {
  19. #port = 993
  20. #ssl = yes
  21. }
  22. # Number of connections to handle before starting a new process. Typically
  23. # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
  24. # is faster. <doc/wiki/LoginProcess.txt>
  25. #service_count = 1
  26. # Number of processes to always keep waiting for more connections.
  27. #process_min_avail = 0
  28. # If you set service_count=0, you probably need to grow this.
  29. #vsz_limit = $default_vsz_limit
  30. }
  31. service pop3-login {
  32. inet_listener pop3 {
  33. #port = 110
  34. }
  35. inet_listener pop3s {
  36. #port = 995
  37. #ssl = yes
  38. }
  39. }
  40. service lmtp {
  41. {% if dovecot_lmtp_inet_listener %}
  42. inet_listener lmtp {
  43. port = 24
  44. }
  45. {% endif %}
  46. unix_listener lmtp {
  47. #mode = 0666
  48. }
  49. {% if dovecot_unix_listeners_for_postfix %}
  50. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  51. group = postfix
  52. mode = 0600
  53. user = postfix
  54. }
  55. {% endif %}
  56. }
  57. service imap {
  58. # Most of the memory goes to mmap()ing files. You may need to increase this
  59. # limit if you have huge mailboxes.
  60. #vsz_limit = $default_vsz_limit
  61. # Max. number of IMAP processes (connections)
  62. #process_limit = 1024
  63. }
  64. service pop3 {
  65. # Max. number of POP3 processes (connections)
  66. #process_limit = 1024
  67. }
  68. service auth {
  69. # auth_socket_path points to this userdb socket by default. It's typically
  70. # used by dovecot-lda, doveadm, possibly imap process, etc. Users that have
  71. # full permissions to this socket are able to get a list of all usernames and
  72. # get the results of everyone's userdb lookups.
  73. #
  74. # The default 0666 mode allows anyone to connect to the socket, but the
  75. # userdb lookups will succeed only if the userdb returns an "uid" field that
  76. # matches the caller process's UID. Also if caller's uid or gid matches the
  77. # socket's uid or gid the lookup succeeds. Anything else causes a failure.
  78. #
  79. # To give the caller full permissions to lookup all users, set the mode to
  80. # something else than 0666 and Dovecot lets the kernel enforce the
  81. # permissions (e.g. 0777 allows everyone full permissions).
  82. unix_listener auth-userdb {
  83. #mode = 0666
  84. #user =
  85. #group =
  86. }
  87. {% if dovecot_unix_listeners_for_postfix %}
  88. # Postfix smtp-auth
  89. unix_listener /var/spool/postfix/private/auth {
  90. mode = 0666
  91. user = postfix
  92. group = postfix
  93. }
  94. {% endif %}
  95. {% if dovecot_auth_inet_listener %}
  96. inet_listener {
  97. port = 3659
  98. }
  99. {% endif %}
  100. # Auth process is run as this user.
  101. user = $default_internal_user
  102. }
  103. service auth-worker {
  104. # Auth worker process is run as root by default, so that it can access
  105. # /etc/shadow. If this isn't necessary, the user should be changed to
  106. # $default_internal_user.
  107. user = $default_internal_user
  108. }
  109. service dict {
  110. # If dict proxy is used, mail processes should have access to its socket.
  111. # For example: mode=0660, group=vmail and global mail_access_groups=vmail
  112. unix_listener dict {
  113. #mode = 0600
  114. #user =
  115. #group =
  116. }
  117. }