Advertisement
Twissel

centos7-dovecot.conf

Jun 4th, 2017
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. #listen = * [::]
  2. listen = localhost
  3. mail_plugins = mailbox_alias acl
  4.  
  5. protocols = imap pop3 sieve lmtp
  6.  
  7. mail_uid = 5000
  8. mail_gid = 5000
  9.  
  10. first_valid_uid = 5000
  11. last_valid_uid = 5000
  12.  
  13. log_path = /var/log/dovecot/main.log
  14. info_log_path = /var/log/dovecot/info.log
  15. debug_log_path = /var/log/dovecot/debug.log
  16.  
  17. ssl_protocols = !SSLv2 !SSLv3
  18. ssl = required
  19. verbose_ssl = no
  20. ssl_cert = </etc/postfix/certs/cert.pem
  21. ssl_key = </etc/postfix/certs/key.pem
  22.  
  23. 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
  24. ssl_dh_parameters_length = 2048
  25. ssl_prefer_server_ciphers = yes
  26.  
  27. disable_plaintext_auth = yes
  28.  
  29. mail_location = maildir:/var/vmail/%d/%u/
  30.  
  31. auth_default_realm = site.com.ua
  32.  
  33. auth_mechanisms = PLAIN LOGIN
  34.  
  35. service auth {
  36. unix_listener /var/spool/postfix/private/dovecot-auth {
  37. user = postfix
  38. group = postfix
  39. mode = 0666
  40. }
  41. unix_listener auth-master {
  42. user = vmail
  43. group = vmail
  44. mode = 0666
  45. }
  46.  
  47. unix_listener auth-userdb {
  48. user = vmail
  49. group = vmail
  50. mode = 0660
  51.  
  52. service lmtp {
  53. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  54. user = postfix
  55. group = postfix
  56. mode = 0600
  57. }
  58.  
  59. inet_listener lmtp {
  60. address = 127.0.0.1
  61. port = 24
  62. }
  63. }
  64.  
  65. userdb {
  66. args = /etc/dovecot/dovecot-mysql.conf
  67. driver = sql
  68. }
  69.  
  70. passdb {
  71. args = /etc/dovecot/dovecot-mysql.conf
  72. driver = sql
  73. }
  74.  
  75. auth_master_user_separator = *
  76.  
  77. plugin {
  78. auth_socket_path = /var/run/dovecot/auth-master
  79.  
  80. acl = vfile
  81. acl_shared_dict = file:/mnt/mail/shared-folders/shared-mailboxes.db
  82. sieve = /mnt/mail/sieve/%u.sieve
  83. mailbox_alias_old = Sent
  84. mailbox_alias_new = Sent Messages
  85. mailbox_alias_old2 = Sent
  86. mailbox_alias_new2 = Sent Items
  87. }
  88.  
  89. protocol lda {
  90. mail_plugins = $mail_plugins sieve
  91. auth_socket_path = /var/run/dovecot/auth-master
  92. deliver_log_format = mail from %f: msgid=%m %$
  93. log_path = /var/log/dovecot/lda-errors.log
  94. info_log_path = /var/log/dovecot/lda-deliver.log
  95. lda_mailbox_autocreate = yes
  96. lda_mailbox_autosubscribe = yes
  97. postmaster_address = root
  98. }
  99.  
  100. protocol lmtp {
  101. info_log_path = /var/log/dovecot/lmtp.log
  102. mail_plugins = quota sieve
  103. postmaster_address = postmaster
  104. lmtp_save_to_detail_mailbox = yes
  105. recipient_delimiter = +
  106. }
  107.  
  108. protocol imap {
  109. mail_plugins = $mail_plugins imap_acl
  110. imap_client_workarounds = tb-extra-mailbox-sep
  111. mail_max_userip_connections = 30
  112. }
  113.  
  114. protocol pop3 {
  115. mail_plugins = $mail_plugins
  116. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  117. pop3_uidl_format = %08Xu%08Xv
  118. mail_max_userip_connections = 30
  119. }
  120.  
  121. service imap-login {
  122. service_count = 1
  123. process_limit = 500
  124. }
  125.  
  126. service pop3-login {
  127. service_count = 1
  128. }
  129.  
  130. service managesieve-login {
  131. inet_listener sieve {
  132. port = 4190
  133. }
  134. }
  135.  
  136. namespace {
  137. type = private
  138. separator = /
  139. prefix =
  140. inbox = yes
  141.  
  142. mailbox Sent {
  143. auto = subscribe
  144. special_use = \Sent
  145. }
  146. mailbox "Sent Messages" {
  147. auto = no
  148. special_use = \Sent
  149. }
  150. mailbox "Sent Items" {
  151. auto = no
  152. special_use = \Sent
  153. }
  154. mailbox Drafts {
  155. auto = subscribe
  156. special_use = \Drafts
  157. }
  158.  
  159. mailbox Trash {
  160. auto = subscribe
  161. special_use = \Trash
  162. }
  163. mailbox "Deleted Messages" {
  164. auto = no
  165. special_use = \Trash
  166. }
  167. mailbox Junk {
  168. auto = subscribe
  169. special_use = \Junk
  170. }
  171. mailbox Spam {
  172. auto = no
  173. special_use = \Junk
  174. }
  175. mailbox "Junk E-mail" {
  176. auto = no
  177. special_use = \Junk
  178. }
  179. mailbox Archive {
  180. auto = no
  181. special_use = \Archive
  182. }
  183. mailbox Archives {
  184. auto = no
  185. special_use = \Archive
  186. }
  187. }
  188.  
  189. namespace {
  190. type = shared
  191. separator = /
  192. prefix = Shared/%%u/
  193. location = maildir:%%h:INDEX=%h/shared/%%u
  194. subscriptions = yes
  195. list = children
  196. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement