You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dovecot.conf 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. auth_mechanisms = plain login
  2. auth_verbose = yes
  3. first_valid_gid = 7788
  4. first_valid_uid = 7788
  5. last_valid_gid = 7788
  6. last_valid_uid = 7788
  7. mail_location = maildir:/var/email/%d/%n/Maildir:LAYOUT=fs
  8. mail_privileged_group = email
  9. mail_debug = yes
  10. ssl_cert = </etc/ssl/certs/fullchain.pem
  11. ssl_key = </etc/ssl/certs/privkey.pem
  12. log_timestamp = "%Y-%m-%d %H:%M:%S "
  13. log_path = /dev/stderr
  14. postmaster_address = {{ salt['pillar.get']("model:dovecot:postmaster") }}
  15. protocols = imap sieve lmtp
  16. passdb {
  17. args = /etc/dovecot/dovecot-pgsql.conf
  18. driver = sql
  19. }
  20. service auth {
  21. executable = /usr/lib/dovecot/auth
  22. inet_listener {
  23. port = {{ salt['pillar.get']("model:dovecot:sasl:port") }}
  24. address = 0.0.0.0
  25. }
  26. unix_listener auth-master {
  27. group = email
  28. mode = 0600
  29. user = email
  30. }
  31. }
  32. userdb {
  33. args = /etc/dovecot/dovecot-pgsql.conf
  34. driver = sql
  35. }
  36. protocol lda {
  37. auth_socket_path = /var/run/dovecot/auth-master
  38. mail_plugins = sieve
  39. postmaster_address = {{ salt['pillar.get']("model:dovecot:postmaster") }}
  40. }
  41. protocol lmtp {
  42. mail_plugins = sieve
  43. }
  44. plugin {
  45. sieve = ~/.dovecot.sieve
  46. sieve_dir = ~/sieve
  47. sieve_global_dir = /etc/dovecot/sieve/include/
  48. sieve_default = /etc/dovecot/sieve/default.sieve
  49. sieve_before = /etc/dovecot/sieve/before/
  50. sieve_after = /etc/dovecot/sieve/after/
  51. }
  52. service managesieve-login {
  53. inet_listener sieve {
  54. address = 0.0.0.0
  55. }
  56. }
  57. service lmtp {
  58. inet_listener lmtp {
  59. address = 0.0.0.0
  60. port = {{ salt['pillar.get']("model:dovecot:lmtp:port") }}
  61. }
  62. }
  63. namespace inbox {
  64. type = private
  65. separator = .
  66. inbox = yes
  67. mailbox Drafts {
  68. special_use = \Drafts
  69. auto = subscribe
  70. }
  71. mailbox Junk {
  72. special_use = \Junk
  73. auto = create
  74. }
  75. mailbox spam {
  76. special_use = \Junk
  77. auto = no
  78. }
  79. mailbox Spam {
  80. special_use = \Junk
  81. auto = no
  82. }
  83. mailbox Trash {
  84. special_use = \Trash
  85. auto = subscribe
  86. }
  87. mailbox TRASH {
  88. special_use = \Trash
  89. auto = no
  90. }
  91. mailbox Sent {
  92. special_use = \Sent
  93. auto = subscribe
  94. }
  95. mailbox "Sent Mail" {
  96. special_use = \Sent
  97. auto = no
  98. }
  99. mailbox "Sent Messages" {
  100. special_use = \Sent
  101. auto = no
  102. }
  103. mailbox Archive {
  104. special_use = \Archive
  105. auto = create
  106. }
  107. mailbox "Archives" {
  108. special_use = \Archive
  109. auto = no
  110. }
  111. }