Guest User

dovecot.conf-New install

a guest
Jan 25th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. protocols = imap pop3 sieve
  2. log_timestamp = "%Y-%m-%d %H:%M:%S "
  3. mail_location = maildir:/home/vmail/%d/%n/Maildir
  4. #mail_location = mdbox:/home/vmail/%d/%n/Mdbox
  5.  
  6. ssl_cert = <cert.pem
  7. ssl_key = <key.pem
  8.  
  9. mail_plugins = zlib
  10.  
  11. mdbox_rotate_size = 2M
  12.  
  13. namespace inbox {
  14. type = private
  15. separator = .
  16. prefix = INBOX.
  17. inbox = yes
  18.  
  19. mailbox Drafts {
  20. special_use = \Drafts
  21. auto = subscribe
  22. }
  23.  
  24. mailbox Junk {
  25. special_use = \Junk
  26. auto = create
  27. }
  28.  
  29. mailbox "Junk Mail" {
  30. special_use = \Junk
  31. auto = no
  32. }
  33.  
  34. mailbox "Junk E-mail" {
  35. special_use = \Junk
  36. auto = no
  37. }
  38.  
  39. mailbox spam {
  40. special_use = \Junk
  41. auto = no
  42. }
  43.  
  44. mailbox Spam {
  45. special_use = \Junk
  46. auto = no
  47. }
  48.  
  49. mailbox Trash {
  50. special_use = \Trash
  51. auto = subscribe
  52. }
  53.  
  54. mailbox Sent {
  55. special_use = \Sent
  56. auto = subscribe
  57. }
  58.  
  59. mailbox "Sent Mail" {
  60. special_use = \Sent
  61. auto = no
  62. }
  63.  
  64. mailbox "Sent Messages" {
  65. special_use = \Sent
  66. auto = no
  67. }
  68.  
  69. mailbox Archive {
  70. special_use = \Archive
  71. auto = create
  72. }
  73.  
  74. mailbox "Archives" {
  75. special_use = \Archive
  76. auto = no
  77. }
  78. }
  79.  
  80. service auth {
  81. unix_listener auth-master {
  82. mode = 0600
  83. user = vmail
  84. }
  85.  
  86. unix_listener /var/spool/postfix/private/auth {
  87. mode = 0666
  88. user = postfix
  89. group = postfix
  90. }
  91.  
  92. user = root
  93. }
  94.  
  95. service auth-worker {
  96. user = root
  97. }
  98.  
  99. protocol lda {
  100. log_path = /home/vmail/dovecot-deliver.log
  101. auth_socket_path = /var/run/dovecot/auth-master
  102. postmaster_address = postmaster@example.com
  103.  
  104. mail_plugins = zlib
  105. }
  106.  
  107. protocol pop3 {
  108. pop3_uidl_format = %08Xu%08Xv
  109. mail_plugins = $mail_plugins zlib
  110. }
  111.  
  112. protocol imap {
  113. mail_plugins = $mail_plugins zlib imap_zlib
  114. }
  115.  
  116. passdb {
  117. driver = sql
  118. args = /etc/dovecot/dovecot-sql.conf.ext
  119. }
  120.  
  121. userdb {
  122. driver = sql
  123. args = /etc/dovecot/dovecot-sql.conf.ext
  124. }
  125.  
  126. plugin {
  127.  
  128. zlib_save = gz
  129. zlib_save_level = 6
  130.  
  131. }
  132. service managesieve-login {
  133. inet_listener sieve {
  134. port = 4190
  135. }
  136. }
  137. service managesieve {
  138. }
  139. protocol sieve {
  140. managesieve_max_line_length = 65536
  141. managesieve_implementation_string = dovecot
  142. log_path = /var/log/dovecot-sieve-errors.log
  143. info_log_path = /var/log/dovecot-sieve.log
  144. }
  145. plugin {
  146. sieve = /home/vmail/%d/%n/dovecot.sieve
  147. sieve_global_path = /etc/dovecot/sieve/default.sieve
  148. sieve_dir = /home/vmail/%d/%n/sieve
  149. sieve_global_dir = /etc/dovecot/sieve/global/
  150. }
  151. protocol lda {
  152. mail_plugins = $mail_plugins sieve quota
  153. postmaster_address = postmaster@example.com
  154. hostname = server.example.com
  155. auth_socket_path = /var/run/dovecot/auth-master
  156. log_path = /var/log/dovecot-lda-errors.log
  157. info_log_path = /var/log/dovecot-lda.log
  158. }
  159. protocol lmtp {
  160. mail_plugins = $mail_plugins sieve quota
  161. log_path = /var/log/dovecot-lmtp-errors.log
  162. info_log_path = /var/log/dovecot-lmtp.log
  163. }
  164. service stats {
  165. unix_listener stats-reader {
  166. user = vmail
  167. group = vmail
  168. mode = 0660
  169. }
  170.  
  171. unix_listener stats-writer {
  172. user = vmail
  173. group = vmail
  174. mode = 0660
  175. }
  176. }
Add Comment
Please, Sign In to add comment