Advertisement
Guest User

Untitled

a guest
Aug 4th, 2016
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.97 KB | None | 0 0
  1. # 2.2.9: /etc/dovecot/dovecot.conf
  2. # OS: Linux 3.13.0-87-generic x86_64 Ubuntu 14.04.4 LTS
  3. auth_default_realm = a.cn
  4. auth_master_user_separator = *
  5. auth_mechanisms = PLAIN LOGIN
  6. dict {
  7. acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  8. quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
  9. }
  10. first_valid_uid = 2000
  11. last_valid_uid = 2000
  12. listen = * [::]
  13. log_path = /var/log/dovecot.log
  14. mail_debug = yes
  15. mail_gid = 2000
  16. mail_location = maildir:%Lh/Maildir/:INDEX=/var/vmail/indexes
  17. mail_plugins = quota mailbox_alias acl mail_log notify
  18. mail_uid = 2000
  19. managesieve_notify_capability = mailto
  20. 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
  21. namespace {
  22. inbox = yes
  23. location =
  24. mailbox Archive {
  25. auto = no
  26. special_use = \Archive
  27. }
  28. mailbox Archives {
  29. auto = no
  30. special_use = \Archive
  31. }
  32. mailbox "Deleted Messages" {
  33. auto = no
  34. special_use = \Trash
  35. }
  36. mailbox Drafts {
  37. auto = subscribe
  38. special_use = \Drafts
  39. }
  40. mailbox Junk {
  41. auto = subscribe
  42. special_use = \Junk
  43. }
  44. mailbox "Junk E-mail" {
  45. auto = no
  46. special_use = \Junk
  47. }
  48. mailbox Sent {
  49. auto = subscribe
  50. special_use = \Sent
  51. }
  52. mailbox "Sent Items" {
  53. auto = no
  54. special_use = \Sent
  55. }
  56. mailbox "Sent Messages" {
  57. auto = no
  58. special_use = \Sent
  59. }
  60. mailbox Spam {
  61. auto = no
  62. special_use = \Junk
  63. }
  64. mailbox Trash {
  65. auto = subscribe
  66. special_use = \Trash
  67. }
  68. prefix =
  69. separator = /
  70. type = private
  71. }
  72. namespace {
  73. list = children
  74. location = maildir:%%Lh/Maildir/:INDEX=/var/vmail/indexes/Shared/%%Ld/%%Ln
  75. prefix = Shared/%%u/
  76. separator = /
  77. subscriptions = yes
  78. type = shared
  79. }
  80. namespace {
  81. location = maildir:/var/vmail/public/:CONTROL=~/Maildir/public:INDEX=/var/vmail/indexes/%%Ld/%%Lu/public
  82. prefix = Public/
  83. separator = /
  84. subscriptions = yes
  85. type = public
  86. }
  87. passdb {
  88. args = /etc/dovecot/dovecot-ldap.conf
  89. driver = ldap
  90. }
  91. passdb {
  92. args = /etc/dovecot/dovecot-master-users
  93. driver = passwd-file
  94. master = yes
  95. }
  96. plugin {
  97. acl = vfile
  98. acl_anyone = allow
  99. acl_shared_dict = proxy::acl
  100. auth_socket_path = /var/run/dovecot/auth-master
  101. mail_log_events = delete copy
  102. mail_log_fields = uid box msgid size
  103. mailbox_alias_new = Sent Messages
  104. mailbox_alias_new2 = Sent Items
  105. mailbox_alias_old = Sent
  106. mailbox_alias_old2 = Sent
  107. quota = dict:user::proxy::quotadict
  108. quota_grace = 10%%
  109. quota_rule = *:storage=1G
  110. quota_warning = storage=100%% quota-warning 100 %u
  111. quota_warning2 = storage=95%% quota-warning 95 %u
  112. quota_warning3 = storage=90%% quota-warning 90 %u
  113. quota_warning4 = storage=85%% quota-warning 85 %u
  114. sieve = %Lh/sieve/dovecot.sieve
  115. sieve_before = /var/vmail/sieve/dovecot.sieve
  116. sieve_dir = %Lh/sieve
  117. sieve_global_dir = /var/vmail/sieve
  118. sieve_max_redirects = 30
  119. }
  120. protocols = pop3 imap sieve lmtp
  121. service auth {
  122. unix_listener /var/spool/postfix/private/dovecot-auth {
  123. group = postfix
  124. mode = 0666
  125. user = postfix
  126. }
  127. unix_listener auth-master {
  128. group = vmail
  129. mode = 0666
  130. user = vmail
  131. }
  132. unix_listener auth-userdb {
  133. group = vmail
  134. mode = 0660
  135. user = vmail
  136. }
  137. }
  138. service dict {
  139. unix_listener dict {
  140. group = vmail
  141. mode = 0660
  142. user = vmail
  143. }
  144. }
  145. service imap-login {
  146. process_limit = 500
  147. service_count = 1
  148. }
  149. service lmtp {
  150. executable = lmtp -L
  151. inet_listener lmtp {
  152. address = 127.0.0.1
  153. port = 24
  154. }
  155. process_min_avail = 5
  156. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  157. group = postfix
  158. mode = 0600
  159. user = postfix
  160. }
  161. user = vmail
  162. }
  163. service managesieve-login {
  164. inet_listener sieve {
  165. address = 127.0.0.1
  166. port = 4190
  167. }
  168. }
  169. service pop3-login {
  170. service_count = 1
  171. }
  172. service quota-warning {
  173. executable = script /usr/local/bin/dovecot-quota-warning.sh
  174. unix_listener quota-warning {
  175. group = vmail
  176. mode = 0660
  177. user = vmail
  178. }
  179. }
  180. ssl = required
  181. ssl_cert = </etc/ssl/certs/iRedMail.crt
  182. ssl_cipher_list = ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
  183. ssl_dh_parameters_length = 2048
  184. ssl_key = </etc/ssl/private/iRedMail.key
  185. ssl_prefer_server_ciphers = yes
  186. ssl_protocols = !SSLv2 !SSLv3
  187. userdb {
  188. args = /etc/dovecot/dovecot-ldap.conf
  189. driver = ldap
  190. }
  191. protocol lda {
  192. auth_socket_path = /var/run/dovecot/auth-master
  193. lda_mailbox_autocreate = yes
  194. lda_mailbox_autosubscribe = yes
  195. log_path = /var/log/dovecot-sieve.log
  196. mail_plugins = quota mailbox_alias acl mail_log notify sieve
  197. postmaster_address = root
  198. }
  199. protocol lmtp {
  200. info_log_path = /var/log/dovecot-lmtp.log
  201. lmtp_save_to_detail_mailbox = yes
  202. mail_plugins = quota sieve
  203. postmaster_address = postmaster
  204. recipient_delimiter = +
  205. }
  206. protocol imap {
  207. imap_client_workarounds = tb-extra-mailbox-sep
  208. mail_max_userip_connections = 30
  209. mail_plugins = quota mailbox_alias acl mail_log notify imap_quota imap_acl
  210. }
  211. protocol pop3 {
  212. mail_max_userip_connections = 30
  213. mail_plugins = quota mailbox_alias acl mail_log notify
  214. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  215. pop3_uidl_format = %08Xu%08Xv
  216. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement