Advertisement
Guest User

Untitled

a guest
Mar 11th, 2015
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.79 KB | None | 0 0
  1. # 2.1.17: /etc/dovecot/dovecot.conf
  2. # OS: Linux 2.6.32-20-pve x86_64 Debian 7.8
  3. auth_master_user_separator = *
  4. auth_mechanisms = PLAIN LOGIN
  5. dict {
  6. acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  7. quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
  8. }
  9. disable_plaintext_auth = no
  10. first_valid_uid = 2000
  11. last_valid_uid = 2000
  12. listen = * [::]
  13. log_path = /var/log/dovecot.log
  14. mail_gid = 2000
  15. mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
  16. mail_plugins = quota acl
  17. mail_uid = 2000
  18. managesieve_notify_capability = mailto
  19. managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
  20. namespace {
  21. inbox = yes
  22. location =
  23. prefix =
  24. separator = /
  25. type = private
  26. }
  27. namespace {
  28. list = children
  29. location = maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
  30. prefix = Shared/%%u/
  31. separator = /
  32. subscriptions = yes
  33. type = shared
  34. }
  35. passdb {
  36. args = /etc/dovecot/dovecot-mysql.conf
  37. driver = sql
  38. }
  39. passdb {
  40. args = /etc/dovecot/dovecot-master-users
  41. driver = passwd-file
  42. master = yes
  43. }
  44. plugin {
  45. acl = vfile
  46. acl_shared_dict = proxy::acl
  47. auth_socket_path = /var/run/dovecot/auth-master
  48. autocreate = INBOX
  49. autocreate2 = Sent
  50. autocreate3 = Trash
  51. autocreate4 = Drafts
  52. autocreate5 = Junk
  53. autosubscribe = INBOX
  54. autosubscribe2 = Sent
  55. autosubscribe3 = Trash
  56. autosubscribe4 = Drafts
  57. autosubscribe5 = Junk
  58. quota = dict:user::proxy::quotadict
  59. quota_rule = *:storage=1G
  60. quota_warning = storage=85%% quota-warning 85 %u
  61. quota_warning2 = storage=90%% quota-warning 90 %u
  62. quota_warning3 = storage=95%% quota-warning 95 %u
  63. sieve = /%Lh/sieve/dovecot.sieve
  64. sieve_before = /var/vmail/sieve/dovecot.sieve
  65. sieve_dir = /%Lh/sieve
  66. sieve_global_dir = /var/vmail/sieve
  67. }
  68. protocols = pop3 imap sieve lmtp
  69. service auth {
  70. unix_listener /var/spool/postfix/private/dovecot-auth {
  71. group = postfix
  72. mode = 0666
  73. user = postfix
  74. }
  75. unix_listener auth-master {
  76. group = vmail
  77. mode = 0666
  78. user = vmail
  79. }
  80. unix_listener auth-userdb {
  81. group = vmail
  82. mode = 0660
  83. user = vmail
  84. }
  85. }
  86. service dict {
  87. unix_listener dict {
  88. group = vmail
  89. mode = 0660
  90. user = vmail
  91. }
  92. }
  93. service imap-login {
  94. process_limit = 500
  95. service_count = 1
  96. }
  97. service lmtp {
  98. executable = lmtp -L
  99. inet_listener lmtp {
  100. port = 24
  101. }
  102. process_min_avail = 5
  103. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  104. group = postfix
  105. mode = 0600
  106. user = postfix
  107. }
  108. user = vmail
  109. }
  110. service pop3-login {
  111. service_count = 1
  112. }
  113. service quota-warning {
  114. executable = script /usr/local/bin/dovecot-quota-warning.sh
  115. unix_listener quota-warning {
  116. group = vmail
  117. mode = 0660
  118. user = vmail
  119. }
  120. }
  121. ssl_cert = </etc/ssl/certs/iRedMail.crt
  122. ssl_key = </etc/ssl/private/iRedMail.key
  123. ssl_protocols = !SSLv2 !SSLv3
  124. userdb {
  125. args = /etc/dovecot/dovecot-mysql.conf
  126. driver = sql
  127. }
  128. protocol lda {
  129. auth_socket_path = /var/run/dovecot/auth-master
  130. lda_mailbox_autocreate = yes
  131. log_path = /var/log/dovecot-sieve.log
  132. mail_plugins = quota acl sieve autocreate
  133. postmaster_address = root
  134. }
  135. protocol lmtp {
  136. info_log_path = /var/log/dovecot-lmtp.log
  137. lmtp_save_to_detail_mailbox = yes
  138. mail_plugins = quota sieve
  139. postmaster_address = postmaster
  140. recipient_delimiter = +
  141. }
  142. protocol imap {
  143. imap_client_workarounds = tb-extra-mailbox-sep
  144. mail_max_userip_connections = 20
  145. mail_plugins = quota acl imap_quota autocreate imap_acl
  146. }
  147. protocol pop3 {
  148. mail_max_userip_connections = 20
  149. mail_plugins = quota acl
  150. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  151. pop3_uidl_format = %08Xu%08Xv
  152. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement