mailhub.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. protocols = imap pop3
  2. mail_driver = maildir
  3. mail_home = /srv/vmail/%{user | lower}
  4. mail_path = ~/mail
  5. mailbox_list_layout = maildir++
  6. mailbox_list_storage_escape_char = ^
  7. # MailHub's Maildir adapter stores folder names in IMAP Modified UTF-7 so it
  8. # remains compatible with imported Vesta/Dovecot Maildir++ trees.
  9. mailbox_list_utf8 = no
  10. mail_uid = 1000
  11. mail_gid = 1000
  12. mail_plugins {
  13. acl = yes
  14. }
  15. acl_driver = vfile
  16. acl_globals_only = yes
  17. ssl = yes
  18. namespace inbox {
  19. inbox = yes
  20. separator = /
  21. # A shared-mailbox Webmail session is still authenticated as the mailbox
  22. # address, so Dovecot otherwise treats it as the owner. This group-override
  23. # rule takes precedence over owner rights and limits delegates to listing,
  24. # reading, and updating only the \Seen flag.
  25. acl group-override=mailhub_webmail_readonly {
  26. rights = lrs
  27. }
  28. mailbox Archive {
  29. auto = subscribe
  30. special_use = \Archive
  31. }
  32. mailbox Drafts {
  33. auto = subscribe
  34. special_use = \Drafts
  35. }
  36. mailbox Junk {
  37. auto = subscribe
  38. special_use = \Junk
  39. }
  40. mailbox Sent {
  41. auto = subscribe
  42. special_use = \Sent
  43. }
  44. mailbox Trash {
  45. auto = subscribe
  46. special_use = \Trash
  47. }
  48. }
  49. service imap-login {
  50. chroot =
  51. process_min_avail = 1
  52. process_limit = 24
  53. inet_listener imaps {
  54. ssl = yes
  55. }
  56. }
  57. service pop3-login {
  58. chroot =
  59. process_min_avail = 0
  60. process_limit = 8
  61. inet_listener pop3s {
  62. ssl = yes
  63. }
  64. }