Advertisement
Guest User

Untitled

a guest
Nov 30th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.12 KB | None | 0 0
  1. # 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf
  2. # Pigeonhole version 0.4.21 (92477967)
  3. # OS: Linux 4.4.0-22-generic x86_64 Ubuntu 18.04.5 LTS
  4. auth_master_user_separator = *
  5. auth_mechanisms = PLAIN LOGIN
  6. deliver_log_format = from=%{from}, envelope_sender=%{from_envelope}, subject=%{subject}, msgid=%m, size=%{size}, delivery_time=%{delivery_time}ms, %$
  7. dict {
  8. acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  9. lastlogin = mysql:/etc/dovecot/dovecot-last-login.conf
  10. quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
  11. }
  12. first_valid_uid = 2000
  13. last_valid_uid = 2000
  14. listen = * [::]
  15. login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k session=<%{session}>
  16. mail_debug = yes
  17. mail_gid = 2000
  18. mail_location = maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/
  19. mail_plugins = quota mailbox_alias acl mail_log notify stats mail_crypt
  20. mail_uid = 2000
  21. managesieve_notify_capability = mailto
  22. 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 index ihave duplicate mime foreverypart extracttext
  23. namespace {
  24. inbox = yes
  25. location =
  26. mailbox Archive {
  27. auto = no
  28. special_use = \Archive
  29. }
  30. mailbox Archives {
  31. auto = no
  32. special_use = \Archive
  33. }
  34. mailbox "Deleted Messages" {
  35. auto = no
  36. special_use = \Trash
  37. }
  38. mailbox Drafts {
  39. auto = subscribe
  40. special_use = \Drafts
  41. }
  42. mailbox Junk {
  43. auto = subscribe
  44. special_use = \Junk
  45. }
  46. mailbox "Junk E-mail" {
  47. auto = no
  48. special_use = \Junk
  49. }
  50. mailbox Sent {
  51. auto = subscribe
  52. special_use = \Sent
  53. }
  54. mailbox "Sent Items" {
  55. auto = no
  56. special_use = \Sent
  57. }
  58. mailbox "Sent Messages" {
  59. auto = no
  60. special_use = \Sent
  61. }
  62. mailbox Spam {
  63. auto = no
  64. special_use = \Junk
  65. }
  66. mailbox Trash {
  67. auto = subscribe
  68. special_use = \Trash
  69. }
  70. prefix =
  71. separator = /
  72. type = private
  73. }
  74. namespace {
  75. list = children
  76. location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%Ld/%%Ln
  77. prefix = Shared/%%u/
  78. separator = /
  79. subscriptions = yes
  80. type = shared
  81. }
  82. passdb {
  83. args = /etc/dovecot/dovecot-mysql.conf
  84. driver = sql
  85. }
  86. passdb {
  87. args = /etc/dovecot/dovecot-master-users
  88. driver = passwd-file
  89. master = yes
  90. }
  91. plugin {
  92. acl = vfile
  93. acl_shared_dict = proxy::acl
  94. last_login_dict = proxy::lastlogin
  95. last_login_key = last-login/%s/%u/%d
  96. mail_crypt_global_private_key = ~/ecprivkey.pem
  97. mail_crypt_global_public_key = ~/ecpubkey.pem
  98. mail_crypt_save_version = 2
  99. mail_log_events = delete undelete expunge copy mailbox_create mailbox_delete mailbox_rename
  100. mail_log_fields = uid box msgid size from subject flags
  101. mailbox_alias_new = Sent Messages
  102. mailbox_alias_new2 = Sent Items
  103. mailbox_alias_old = Sent
  104. mailbox_alias_old2 = Sent
  105. quota = dict:user::proxy::quotadict
  106. quota_grace = 10%%
  107. quota_status_nouser = DUNNO
  108. quota_status_overquota = 552 5.2.2 Mailbox is full
  109. quota_status_success = DUNNO
  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 = ~/sieve/dovecot.sieve
  115. sieve_before = /var/vmail/sieve/dovecot.sieve
  116. sieve_dir = ~/sieve
  117. sieve_global_dir = /var/vmail/sieve
  118. sieve_max_redirects = 30
  119. sieve_vacation_send_from_recipient = yes
  120. stats_refresh = 30 secs
  121. stats_track_cmds = yes
  122. }
  123. protocols = pop3 imap sieve lmtp
  124. service auth {
  125. unix_listener /var/spool/postfix/private/dovecot-auth {
  126. group = postfix
  127. mode = 0666
  128. user = postfix
  129. }
  130. unix_listener auth-master {
  131. group = vmail
  132. mode = 0666
  133. user = vmail
  134. }
  135. unix_listener auth-userdb {
  136. group = vmail
  137. mode = 0660
  138. user = vmail
  139. }
  140. }
  141. service dict {
  142. unix_listener dict {
  143. group = vmail
  144. mode = 0660
  145. user = vmail
  146. }
  147. }
  148. service imap-login {
  149. process_limit = 500
  150. service_count = 1
  151. }
  152. service lmtp {
  153. executable = lmtp -L
  154. inet_listener lmtp {
  155. address = 127.0.0.1
  156. port = 24
  157. }
  158. process_min_avail = 5
  159. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  160. group = postfix
  161. mode = 0600
  162. user = postfix
  163. }
  164. user = vmail
  165. }
  166. service managesieve-login {
  167. inet_listener sieve {
  168. address = 127.0.0.1
  169. port = 4190
  170. }
  171. }
  172. service pop3-login {
  173. service_count = 1
  174. }
  175. service quota-status {
  176. client_limit = 1
  177. executable = quota-status -p postfix
  178. inet_listener {
  179. address = 127.0.0.1
  180. port = 12340
  181. }
  182. }
  183. service quota-warning {
  184. executable = script /usr/local/bin/dovecot-quota-warning.sh
  185. unix_listener quota-warning {
  186. group = vmail
  187. mode = 0660
  188. user = vmail
  189. }
  190. }
  191. service stats {
  192. fifo_listener stats-mail {
  193. group = vmail
  194. mode = 0644
  195. user = vmail
  196. }
  197. inet_listener {
  198. address = 127.0.0.1
  199. port = 24242
  200. }
  201. unix_listener stats-writer {
  202. group = vmail
  203. mode = 0660
  204. user = vmail
  205. }
  206. }
  207. ssl = required
  208. ssl_cert = </etc/ssl/certs/iRedMail.crt
  209. ssl_cipher_list = EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
  210. ssl_key = # hidden, use -P to show it
  211. ssl_prefer_server_ciphers = yes
  212. syslog_facility = local5
  213. userdb {
  214. args = /etc/dovecot/dovecot-mysql.conf
  215. driver = sql
  216. }
  217. protocol lda {
  218. lda_mailbox_autocreate = yes
  219. lda_mailbox_autosubscribe = yes
  220. mail_plugins = quota mailbox_alias acl mail_log notify stats mail_crypt sieve
  221. }
  222. protocol lmtp {
  223. lmtp_save_to_detail_mailbox = yes
  224. mail_plugins = quota mailbox_alias acl mail_log notify stats mail_crypt sieve
  225. recipient_delimiter = +
  226. }
  227. protocol imap {
  228. imap_client_workarounds = tb-extra-mailbox-sep
  229. mail_max_userip_connections = 30
  230. mail_plugins = quota mailbox_alias acl mail_log notify stats mail_crypt imap_quota imap_acl imap_stats last_login
  231. }
  232. protocol pop3 {
  233. mail_max_userip_connections = 30
  234. mail_plugins = quota mailbox_alias acl mail_log notify stats mail_crypt last_login
  235. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  236. pop3_uidl_format = %08Xu%08Xv
  237. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement