Advertisement
Guest User

vmail

a guest
Mar 30th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. # id vmail
  2. uid=5000(vmail) gid=5000(vmail) groups=5000(vmail)
  3.  
  4. # ls -dl /var/vmail
  5. drwx------ 5 vmail vmail 4096 Mar 30 09:51 /var/vmail
  6.  
  7. # ls -dl /var/vmail/vmail1
  8. drwx------ 3 vmail vmail 4096 Mar 30 09:50 /var/vmail/vmail1
  9.  
  10. # dovecot -n
  11. # 2.0.19: /etc/dovecot/dovecot.conf
  12. # OS: Linux 2.6.32-042stab084.17 x86_64 Ubuntu 12.04.3 LTS
  13. auth_master_user_separator = *
  14. auth_mechanisms = PLAIN LOGIN
  15. dict {
  16. acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  17. quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
  18. }
  19. first_valid_uid = 2000
  20. last_valid_uid = 2000
  21. listen = *
  22. log_path = /var/log/dovecot.log
  23. mail_debug = yes
  24. mail_gid = 2000
  25. mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
  26. mail_plugins = quota
  27. mail_uid = 2000
  28. managesieve_notify_capability = mailto
  29. 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
  30. namespace {
  31. inbox = yes
  32. location =
  33. prefix =
  34. separator = /
  35. type = private
  36. }
  37. namespace {
  38. list = children
  39. location = maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
  40. prefix = Shared/%%u/
  41. separator = /
  42. subscriptions = yes
  43. type = shared
  44. }
  45. passdb {
  46. args = /etc/dovecot/dovecot-mysql.conf
  47. driver = sql
  48. }
  49. passdb {
  50. args = /etc/dovecot/dovecot-master-users-password
  51. driver = passwd-file
  52. master = yes
  53. }
  54. plugin {
  55. acl = vfile
  56. acl_shared_dict = proxy::acl
  57. auth_socket_path = /var/run/dovecot/auth-master
  58. autocreate = INBOX
  59. autocreate2 = Sent
  60. autocreate3 = Trash
  61. autocreate4 = Drafts
  62. autocreate5 = Junk
  63. autosubscribe = INBOX
  64. autosubscribe2 = Sent
  65. autosubscribe3 = Trash
  66. autosubscribe4 = Drafts
  67. autosubscribe5 = Junk
  68. quota = dict:user::proxy::quotadict
  69. quota_rule = *:storage=1G
  70. quota_warning = storage=85%% quota-warning 85 %u
  71. quota_warning2 = storage=90%% quota-warning 90 %u
  72. quota_warning3 = storage=95%% quota-warning 95 %u
  73. sieve = /%Lh/sieve/dovecot.sieve
  74. sieve_dir = /%Lh/sieve
  75. sieve_global_dir = /var/vmail/sieve
  76. sieve_global_path = /var/vmail/sieve/dovecot.sieve
  77. }
  78. protocols = pop3 imap sieve
  79. service auth {
  80. unix_listener /var/spool/postfix/dovecot-auth {
  81. group = postfix
  82. mode = 0666
  83. user = postfix
  84. }
  85. unix_listener auth-master {
  86. group = vmail
  87. mode = 0666
  88. user = vmail
  89. }
  90. unix_listener auth-userdb {
  91. group = vmail
  92. mode = 0660
  93. user = vmail
  94. }
  95. }
  96. service dict {
  97. unix_listener dict {
  98. group = vmail
  99. mode = 0660
  100. user = vmail
  101. }
  102. }
  103. service imap-login {
  104. process_limit = 500
  105. service_count = 1
  106. }
  107. service pop3-login {
  108. service_count = 1
  109. }
  110. service quota-warning {
  111. executable = script /usr/local/bin/dovecot-quota-warning.sh
  112. unix_listener quota-warning {
  113. group = vmail
  114. mode = 0660
  115. user = vmail
  116. }
  117. }
  118. ssl = required
  119. ssl_cert = </etc/ssl/certs/iRedMail_CA.pem
  120. ssl_key = </etc/ssl/private/iRedMail.key
  121. userdb {
  122. args = /etc/dovecot/dovecot-mysql.conf
  123. driver = sql
  124. }
  125. protocol lda {
  126. auth_socket_path = /var/run/dovecot/auth-master
  127. lda_mailbox_autocreate = yes
  128. log_path = /var/log/sieve.log
  129. mail_plugins = quota sieve autocreate
  130. postmaster_address = root
  131. }
  132. protocol imap {
  133. imap_client_workarounds = tb-extra-mailbox-sep
  134. mail_plugins = quota imap_quota autocreate
  135. }
  136. protocol pop3 {
  137. mail_plugins = quota
  138. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  139. pop3_uidl_format = %08Xu%08Xv
  140. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement