Advertisement
Guest User

Untitled

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