Advertisement
Guest User

Untitled

a guest
May 25th, 2015
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.32 KB | None | 0 0
  1. ###
  2. ### Dovecot Backend
  3. ### doveconf -c /etc/dovecot/dovecot.conf -n
  4. ###
  5.  
  6. # 2.2.15: /etc/dovecot/dovecot.conf
  7. # OS: Linux 3.16.0-37-generic x86_64 Ubuntu 14.04.2 LTS
  8. auth_master_user_separator = *
  9. auth_mechanisms = plain login
  10. auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@=
  11. auth_worker_max_count = 10
  12. disable_plaintext_auth = no
  13. doveadm_password = secret
  14. doveadm_port = 12345
  15. listen = <this-backend-ip>
  16. mail_fsync = never
  17. mail_gid = dovemail
  18. mail_plugins = " notify replication quota"
  19. mail_uid = dovemail
  20. managesieve_sieve_capability = fileinto reject envelope vacation subaddress comparator-i;ascii-numeric relational regex copy include vacation-seconds imapflags notify
  21. namespace {
  22. inbox = yes
  23. location =
  24. mailbox SPAM {
  25. auto = subscribe
  26. }
  27. prefix =
  28. separator = /
  29. type = private
  30. }
  31. passdb {
  32. args = /etc/dovecot/dovecot-sql.conf.ext
  33. driver = sql
  34. }
  35. passdb {
  36. args = /etc/dovecot/dovecot-sql-master.conf.ext
  37. driver = sql
  38. master = yes
  39. pass = yes
  40. }
  41. plugin {
  42. mail_replica = tcp:192.168.0.1:12345
  43. quota = dict:User quota::file:/var/lib/imap/user/%2.256RHn/%n/dovecot-quota
  44. quota_rule = *:storage=1GB
  45. sieve = /var/lib/imap/sieve/%2.256RHn/%n/dovecot.sieve
  46. sieve_dir = /var/lib/imap/sieve/%2.256RHn/%n
  47. sieve_extensions = comparator-i;ascii-numeric copy envelope fileinto imapflags include notify regex reject relational subaddress vacation-seconds
  48. sieve_max_redirects = 20
  49. sieve_max_script_size = 512KB
  50. sieve_quota_max_scripts = 2
  51. sieve_vacation_min_period = 1
  52. sieve_vacation_send_from_recipient = yes
  53. }
  54. protocols = imap pop3 lmtp sieve
  55. replication_dsync_parameters = -d -N -l 10 -U
  56. service aggregator {
  57. fifo_listener replication-notify-fifo {
  58. group = dovemail
  59. mode = 0666
  60. user = dovemail
  61. }
  62. unix_listener replication-notify {
  63. group = dovemail
  64. mode = 0666
  65. user = dovemail
  66. }
  67. }
  68. service auth-worker {
  69. user = $default_internal_user
  70. }
  71. service auth {
  72. client_limit = 10240
  73. process_limit = 1
  74. process_min_avail = 1
  75. }
  76. service doveadm {
  77. inet_listener {
  78. address = 192.168.0.2
  79. port = 12345
  80. }
  81. vsz_limit = 1 G
  82. }
  83. service imap {
  84. process_limit = 8192
  85. process_min_avail = 10
  86. }
  87. service lmtp {
  88. inet_listener {
  89. address = <cluster-ip>, <this-backend-ip>
  90. port = 1124
  91. }
  92. process_limit = 256
  93. process_min_avail = 10
  94. }
  95. service managesieve-login {
  96. inet_listener sieve {
  97. address = <cluster-ip>, <this-backend-ip>
  98. port = 4190
  99. }
  100. }
  101. service managesieve {
  102. process_limit = 20
  103. process_min_avail = 10
  104. }
  105. service pop3 {
  106. process_limit = 256
  107. process_min_avail = 10
  108. }
  109. service replicator {
  110. process_min_avail = 1
  111. unix_listener replicator-doveadm {
  112. group = dovemail
  113. mode = 0666
  114. user = dovemail
  115. }
  116. }
  117. ssl_cert = </etc/ssl/certs/f1.ultramail.com.br.crt
  118. ssl_key = </etc/ssl/private/f1.ultramail.com.br.key
  119. userdb {
  120. driver = prefetch
  121. }
  122. userdb {
  123. args = /etc/dovecot/dovecot-sql.conf.ext
  124. driver = sql
  125. }
  126. verbose_proctitle = yes
  127. protocol imap {
  128. imap_client_workarounds = tb-extra-mailbox-sep delay-newmail
  129. imap_idle_notify_interval = 2 mins
  130. imap_max_line_length = 64 k
  131. mail_max_userip_connections = 50
  132. mail_plugins = " notify replication quota imap_quota"
  133. }
  134. protocol lmtp {
  135. mail_fsync = optimized
  136. mail_plugins = " notify replication sieve quota"
  137. }
  138. protocol sieve {
  139. mail_plugins = " notify replication sieve"
  140. managesieve_implementation_string = ManageSieve
  141. managesieve_logout_format = bytes=%i/%o
  142. managesieve_max_line_length = 65536
  143. managesieve_sieve_capability = comparator-i;ascii-numeric copy envelope fileinto imapflags include notify regex reject relational subaddress vacation-seconds
  144. ssl = no
  145. }
  146. protocol pop3 {
  147. mail_plugins = " notify replication quota"
  148. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  149. }
  150.  
  151. ###
  152. ### Dovecot Director
  153. ### doveconf -c /etc/dovecot_director/dovecot_director.conf -n
  154. ###
  155.  
  156. # 2.2.15: /etc/dovecot_director/dovecot_director.conf
  157. # OS: Linux 3.16.0-37-generic x86_64 Ubuntu 14.04.2 LTS
  158. auth_master_user_separator = *
  159. auth_mechanisms = plain login
  160. auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@=
  161. auth_worker_max_count = 10
  162. base_dir = /var/run/dovecot_director
  163. director_mail_servers = <backend1-ip> <backend2-ip>
  164. director_servers = 192.168.33.192 192.168.33.193
  165. disable_plaintext_auth = no
  166. instance_name = dovecot_director
  167. listen = <cluster-ip>, <server-ip>
  168. lmtp_proxy = yes
  169. login_greeting = IMAP/POP3 server
  170. mail_fsync = never
  171. mail_gid = dovemail
  172. mail_plugins = " quota"
  173. mail_uid = dovemail
  174. managesieve_notify_capability = mailto
  175. 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
  176. passdb {
  177. args = /etc/dovecot_director/dovecot_director-sql.conf.ext
  178. driver = sql
  179. }
  180. passdb {
  181. args = /etc/dovecot_director/dovecot_director-sql-master.conf.ext
  182. driver = sql
  183. master = yes
  184. pass = yes
  185. }
  186. protocols = imap pop3 lmtp
  187. service auth-worker {
  188. user = $default_internal_user
  189. }
  190. service auth {
  191. client_limit = 10240
  192. process_limit = 1
  193. process_min_avail = 1
  194. }
  195. service director {
  196. fifo_listener login/proxy-notify {
  197. mode = 0666
  198. }
  199. inet_listener {
  200. address = 192.168.33.193
  201. port = 7777
  202. }
  203. unix_listener director-userdb {
  204. mode = 0600
  205. }
  206. unix_listener login/director {
  207. mode = 0666
  208. }
  209. }
  210. service imap-login {
  211. executable = imap-login director
  212. idle_kill = 10 secs
  213. inet_listener imap {
  214. port = 143
  215. }
  216. process_limit = 400
  217. process_min_avail = 10
  218. service_count = 0
  219. vsz_limit = 512 M
  220. }
  221. service lmtp {
  222. inet_listener lmtp {
  223. address = <cluster-ip>, <server-ip>
  224. port = 24
  225. }
  226. }
  227. service pop3-login {
  228. executable = pop3-login director
  229. idle_kill = 10 secs
  230. inet_listener pop3 {
  231. port = 110
  232. }
  233. }
  234. ssl_cert = </etc/ssl/certs/my-cert.crt
  235. ssl_key = </etc/ssl/private/my-key.key
  236. userdb {
  237. driver = prefetch
  238. }
  239. userdb {
  240. args = /etc/dovecot_director/dovecot_director-sql.conf.ext
  241. driver = sql
  242. }
  243. verbose_proctitle = yes
  244. protocol lmtp {
  245. auth_socket_path = director-userdb
  246. passdb {
  247. args = proxy=y nopassword=y port=1124
  248. driver = static
  249. name =
  250. }
  251. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement