Advertisement
Guest User

Untitled

a guest
Jan 15th, 2023
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 KB | None | 0 0
  1. listen = *
  2.  
  3. mail_plugins = mailbox_alias acl
  4. protocols = imap pop3 sieve lmtp
  5.  
  6. mail_uid = 1100
  7. mail_gid = 1100
  8.  
  9. first_valid_uid = 1100
  10. last_valid_uid = 1100
  11.  
  12. auth_verbose = yes
  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_min_protocol = SSLv3
  18. verbose_ssl = yes
  19. ssl_cert = </etc/letsencrypt/live/mail.наш.домен/fullchain.pem
  20. ssl_key = </etc/letsencrypt/live/mail.наш.домен/privkey.pem
  21.  
  22. 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
  23. ssl_prefer_server_ciphers = yes
  24.  
  25. disable_plaintext_auth = no
  26.  
  27. mail_location = maildir:/mail/%d/%u/
  28.  
  29. auth_default_realm = наш.домен
  30.  
  31. auth_mechanisms = PLAIN LOGIN
  32.  
  33. service auth {
  34. unix_listener /var/spool/postfix/private/dovecot-auth {
  35. user = postfix
  36. group = postfix
  37. mode = 0666
  38. }
  39. unix_listener auth-master {
  40. user = vmail
  41. group = vmail
  42. mode = 0666
  43. }
  44.  
  45. unix_listener auth-userdb {
  46. user = vmail
  47. group = vmail
  48. mode = 0660
  49. }
  50. }
  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/доменn/dovecot/auth-master
  79.  
  80. acl = vfile
  81. acl_shared_dict = file:/mail/shared-folders/shared-mailboxes.db
  82. sieve_dir = ~/.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/доменn/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. service stats {
  137. unix_listener stats-reader {
  138. user = vmail
  139. group = vmail
  140. mode = 0660
  141. }
  142.  
  143. unix_listener stats-writer {
  144. user = vmail
  145. group = vmail
  146. mode = 0660
  147. }
  148. }
  149.  
  150. namespace {
  151. type = private
  152. separator = /
  153. prefix =
  154. inbox = yes
  155.  
  156. mailbox Sent {
  157. auto = subscribe
  158. special_use = \Sent
  159. }
  160. mailbox "Sent Messages" {
  161. auto = no
  162. special_use = \Sent
  163. }
  164. mailbox "Sent Items" {
  165. auto = no
  166. special_use = \Sent
  167. }
  168. mailbox Drafts {
  169. auto = subscribe
  170. special_use = \Drafts
  171. }
  172. mailbox Trash {
  173. auto = subscribe
  174. special_use = \Trash
  175. }
  176. mailbox "Deleted Messages" {
  177. auto = no
  178. special_use = \Trash
  179. }
  180. mailbox Junk {
  181. auto = subscribe
  182. special_use = \Junk
  183. }
  184. mailbox Spam {
  185. auto = no
  186. special_use = \Junk
  187. }
  188. mailbox "Junk E-mail" {
  189. auto = no
  190. special_use = \Junk
  191. }
  192. mailbox Archive {
  193. auto = no
  194. special_use = \Archive
  195. }
  196. mailbox Archives {
  197. auto = no
  198. special_use = \Archive
  199. }
  200. }
  201.  
  202. namespace {
  203. type = shared
  204. separator = /
  205. prefix = Shared/%%u/
  206. location = maildir:%%h:INDEX=%h/shared/%%u
  207. subscriptions = yes
  208. list = children
  209. }
  210.  
  211.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement