Advertisement
Guest User

Untitled

a guest
Oct 28th, 2011
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. cat /etc/dovecot/dovecot.conf
  2. # 2.0.9: dovecot.conf
  3. # OS: Linux 2.6.37-gen1 i686 Gentoo Base System release 2.0.1-r1 ext4
  4. auth_debug = no
  5. auth_debug_passwords = no
  6. auth_mechanisms = plain login cram-md5 digest-md5
  7. disable_plaintext_auth = yes
  8. auth_default_realm = DOMENA.COM
  9. default_internal_user = vpopmail
  10. default_login_user = vpopmail
  11. auth_verbose = no
  12. verbose_ssl = no
  13. base_dir = /var/run/dovecot/
  14. first_valid_uid = 1
  15. info_log_path = /var/log/dovecot/dovecot.log
  16. last_valid_uid = 89
  17. listen = *
  18. log_path = /var/log/dovecot/dovecot-mail.log
  19. login_log_format_elements = pl
  20. mail_debug = yes
  21. mail_location = maildir:/home/domains/%d/%n/.maildir
  22. mail_privileged_group = vpopmail
  23.  
  24. mail_uid = 89
  25. mail_gid = 89
  26.  
  27. first_valid_uid = 89
  28. last_valid_uid = 89
  29.  
  30. first_valid_gid = 89
  31. last_valid_gid = 89
  32.  
  33. passdb {
  34. args = /etc/dovecot/dovecot-sqlx.conf
  35. driver = sql
  36. }
  37. userdb {
  38. args = /etc/dovecot/dovecot-sqlx.conf
  39. driver = sql
  40. }
  41.  
  42. #passdb {
  43. # driver = vpopmail
  44. #}
  45.  
  46. #userdb {
  47. # driver = vpopmail
  48. # args = quota_template=quota_rule=*:backend=%q
  49. #}
  50.  
  51.  
  52. plugin {
  53. quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95
  54. quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80
  55. quota = maildir:User quota
  56.  
  57. # quota_rule = *:storage=268435456B
  58. # 10% of 1GB = 100MB
  59. quota_rule2 = Trash:storage=10%%
  60. # 20% of 1GB = 200MB
  61. quota_rule3 = Spam:storage=20%%
  62.  
  63. sieve = ~/.dovecot.sieve
  64. sieve_dir = ~/sieve
  65. sieve_global_dir = /etc/dovecot/sieve
  66. sieve_extensions = +spamtest +spamtestplus +relational +comparator-i;ascii-numeric
  67. sieve_before = /etc/dovecot/sieve
  68. sieve_after = /etc/dovecot/aftersieve
  69. autocreate = Sent
  70. autocreate2 = Drafts
  71. autocreate3 = Archive
  72. autocreate4 = Junk
  73. autocreate5 = Trash
  74. autocreate6 = Spam
  75. autosubscribe = Sent
  76. autosubscribe2 = Drafts
  77. autosubscribe3 = Archive
  78. autosubscribe4 = Junk
  79. autosubscribe5 = Trash
  80. autosubscribe6 = Spam
  81. }
  82.  
  83.  
  84. protocols = imap sieve pop3
  85. service auth {
  86. unix_listener auth-master {
  87. mode = 0666
  88. user = vpopmail # User running dovecot-lda
  89. group = vpopmail
  90. }
  91. unix_listener auth-userdb {
  92. mode = 0666
  93. user = vpopmail # User running dovecot-lda
  94. group = vpopmail
  95. }
  96. # unix_listener auth-client {
  97. # path = /var/spool/postfix/private/auth
  98. # mode = 0660
  99. # user = postfix
  100. # group = postfix
  101. # }
  102.  
  103. }
  104.  
  105. service auth-worker {
  106. user = vpopmail
  107. }
  108.  
  109. service imap-login {
  110. chroot = login
  111. client_limit = 32
  112. process_limit = 16
  113. process_min_avail = 2
  114. service_count = 1
  115. }
  116. service managesieve-login {
  117. chroot = login
  118. client_limit = 32
  119. process_limit = 16
  120. process_min_avail = 2
  121. service_count = 1
  122. }
  123. service pop3-login {
  124. chroot = login
  125. client_limit = 32
  126. process_limit = 16
  127. inet_listener pop3 {
  128. }
  129. process_limit = 24
  130. process_min_avail = 2
  131. service_count = 1
  132. }
  133. ssl_cert = </etc/ssl/dovecot/server.pem
  134. ssl_key = </etc/ssl/dovecot/server.key
  135.  
  136. protocol imap {
  137. imap_max_line_length = 16k
  138. mail_plugins = quota autocreate imap_quota
  139. imap_logout_format = bytes=%i/%o
  140. imap_idle_notify_interval = 10 mins
  141. imap_id_log = imapd
  142. }
  143.  
  144. protocol pop3 {
  145. pop3_uidl_format = %08Xu%08Xv
  146. pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
  147. mail_plugins = quota
  148. }
  149.  
  150. protocol sieve {
  151. managesieve_max_line_length = 65536
  152. mail_max_userip_connections = 10
  153. managesieve_logout_format = bytes=%i/%o
  154. }
  155.  
  156. protocol lda {
  157. postmaster_address = postmaster@DOMENA.COM
  158. hostname = DOMENA.COM
  159. quota_full_tempfail = yes
  160. sendmail_path = /var/qmail/bin/sendmail
  161. rejection_subject = Rejected: %s
  162. rejection_reason = Your message to <%t> was automatically rejected:%n%r
  163. lda_original_recipient_header =
  164. mail_plugins = sieve quota autocreate
  165. auth_socket_path = /var/run/dovecot/auth-userdb
  166. info_log_path = /var/log/dovecot/infolda-dovecot.log
  167. log_path = /var/log/dovecot/lda-dovecot.log
  168. lda_mailbox_autocreate = yes
  169. lda_mailbox_autosubscribe = yes
  170. }
  171.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement