Advertisement
Guest User

Untitled

a guest
Sep 29th, 2010
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. base_dir = /var/run/dovecot/
  2. protocols = imap pop3 managesieve imaps pop3s
  3. listen = *
  4. disable_plaintext_auth = no
  5. shutdown_clients = yes
  6. log_path = /var/log/dovecot.log
  7. ssl = yes
  8. ssl_cert_file = /usr/local/dovecot/dovecot/etc/ssl/server.crt
  9. ssl_key_file = /usr/local/dovecot/dovecot/etc/ssl/server.key
  10.  
  11. login_user = dovecot
  12.  
  13. login_greeting = IMAP ready.
  14. login_trusted_networks = 127.0.0.1/8
  15.  
  16. # Performance tuning
  17.  
  18. login_process_size = 64
  19. login_process_per_connection = no
  20. login_max_processes_count = 256
  21. #login_max_connections = 128
  22. login_max_connections = 512
  23.  
  24. verbose_proctitle = yes
  25. maildir_copy_with_hardlinks = yes
  26. maildir_copy_preserve_filename = yes
  27.  
  28.  
  29. mail_location = maildir:/imap/spool/%d/%1n/%n:INDEX=/imap/spool/%d/indexes/%1n/%n
  30.  
  31. namespace private {
  32. separator = ^
  33. prefix =
  34. inbox = yes
  35. }
  36.  
  37.  
  38. mail_uid = vmail
  39. mail_gid = vmail
  40. mail_privileged_group = vmail
  41.  
  42.  
  43. protocol imap {
  44. login_executable = /usr/local/dovecot/dovecot/libexec/dovecot/imap-login
  45. mail_executable = /usr/local/dovecot/dovecot/libexec/dovecot/imap
  46. mail_plugin_dir = /usr/local/dovecot/dovecot/lib/dovecot/imap/
  47. mail_plugins = quota imap_quota autocreate trash acl listescape
  48. mail_max_userip_connections = 500
  49. imap_idle_notify_interval = 120
  50. fsync_disable = yes
  51. imap_client_workarounds = outlook-idle netscape-eoh
  52. }
  53.  
  54.  
  55. protocol pop3 {
  56. login_executable = /usr/local/dovecot/dovecot/libexec/dovecot/pop3-login
  57. mail_executable = /usr/local/dovecot/dovecot/libexec/dovecot/pop3
  58. mail_plugin_dir = /usr/local/dovecot/dovecot/lib/dovecot/pop3/
  59. fsync_disable = yes
  60. pop3_lock_session = yes
  61. # pop3_uidl_format = %v-%u
  62. mail_plugins = quota
  63. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  64. pop3_reuse_xuidl=yes # qpopper
  65. }
  66.  
  67.  
  68. protocol managesieve {
  69. login_executable = /usr/local/dovecot/managesieve-0.11/libexec/dovecot/managesieve-login
  70. mail_executable = /usr/local/dovecot/managesieve-0.11/libexec/dovecot/managesieve
  71. managesieve_logout_format = bytes ( in=%i : out=%o )
  72.  
  73. }
  74.  
  75. protocol lda {
  76. postmaster_address = sysop@foo
  77. hostname = imapserver
  78. mail_plugin_dir = /usr/local/dovecot/dovecot/lib/dovecot/lda
  79. sendmail_path = /usr/sbin/sendmail
  80. rejection_subject = Rejected: %s
  81. rejection_reason = Your message to <%t> was automatically rejected:%n%r
  82. auth_socket_path = /var/run/dovecot/auth-master
  83. fsync_disable = no
  84. mail_plugins = quota acl sieve
  85. }
  86.  
  87.  
  88. auth_executable = /usr/local/dovecot/dovecot/libexec/dovecot/dovecot-auth
  89. auth_cache_size = 10485760
  90. auth_cache_negative_ttl = 3600
  91. auth_cache_ttl = 3600
  92. auth_process_size = 256
  93. auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
  94. auth_username_format = %Lu
  95. auth_verbose = yes
  96. auth_debug = yes
  97. auth_debug_passwords = no
  98.  
  99. auth default {
  100. mechanisms = plain login
  101. passdb ldap {
  102. args = /usr/local/dovecot/dovecot/etc/conf.d/ldap.conf
  103. }
  104.  
  105. #
  106. # userdb static {
  107. # args = uid=9140 gid=12002 home=/imap/foo/%1n/%n
  108. # }
  109.  
  110.  
  111. userdb ldap {
  112. args = /usr/local/dovecot/dovecot/etc/conf.d/ldap.conf
  113. }
  114.  
  115.  
  116. user = root
  117. socket listen {
  118. master {
  119. path = /var/run/dovecot/auth-master
  120. mode = 0600
  121. user = vmail
  122. group = vmail
  123. }
  124. client {
  125. path = /var/spool/postfix/private/auth
  126. mode = 0660
  127. user = postfix
  128. group = postdrop
  129. }
  130. }
  131. }
  132.  
  133.  
  134. dict {
  135. }
  136.  
  137.  
  138. plugin {
  139.  
  140. acl = vfile
  141. acl_shared_dict = file:/imap/spool/%d/acl/shared-mailboxes.db
  142. acl = vfile:/imap/spool/%d/acl/dovecot-acls
  143.  
  144. quota = maildir:User quota
  145. #quota_rule = *:storage=300MB
  146. # 10% of 1GB = 30MB
  147. quota_rule2 = Trash:storage=10%%
  148. # 20% of 1GB = 200MB
  149. quota_rule3 = Spam:storage=20%%
  150. trash = /usr/local/dovecot/dovecot/etc/conf.d/dovecot-trash.conf
  151. quota_warning = storage=80%% /usr/local/dovecot/dovecot/bin/quota-warning.sh 80
  152. quota_warning2 = storage=90%% /usr/local/dovecot/dovecot/bin/quota-warning.sh 90
  153. quota_warning3 = storage=95%% /usr/local/dovecot/dovecot/bin/quota-warning.sh 95
  154.  
  155.  
  156. sieve = /imap/spool/%d/%1n/%n/sieve/default.sieve
  157. sieve_dir = /imap/spool/%d/%1n/%n/sieve
  158. sieve_extensions = +imapflags
  159.  
  160. autocreate = Sent
  161. autocreate2 = Drafts
  162. autocreate3 = Trash
  163. autocreate4 = Spam
  164. autosubscribe = Sent
  165. autosubscribe2 = Drafts
  166. autosubscribe3 = Trash
  167. autosubscribe4 = Spam
  168.  
  169. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement