Przeglądaj źródła

[Dovecot] Create crypted mail_attachment_fs to store attachments with a min size of 128k
[Dovecot] Shared location to "auto:" to auto-detect legacy mailbox formats across shared mailboxes
[Dovecot] Create config service for crypted mail_attachment_fs

andryyy 6 lat temu
rodzic
commit
159c36b531
1 zmienionych plików z 12 dodań i 3 usunięć
  1. 12 3
      data/conf/dovecot/dovecot.conf

+ 12 - 3
data/conf/dovecot/dovecot.conf

@@ -12,9 +12,11 @@ disable_plaintext_auth = yes
 #mail_nfs_index = yes
 #mail_nfs_storage = yes
 login_log_format_elements = "user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k"
-mail_home = /var/vmail/%d/%n
-mail_location = maildir:~/
 mail_plugins = quota acl zlib listescape mail_crypt mail_crypt_acl
+mail_home = /var/vmail/%d/%n
+mail_attachment_fs = crypt:set_prefix=mail_crypt_global:posix:
+mail_attachment_dir = /var/attachments
+mail_attachment_min_size = 128k
 
 # Dovecot 2.2
 #ssl_protocols = !SSLv3
@@ -175,7 +177,7 @@ namespace {
     type = shared
     separator = /
     prefix = Shared/%%u/
-    location = maildir:%%h/:INDEX=~/Shared/%%u;CONTROL=~/Shared/%%u
+    location = auto:%%h/:INDEX=~/Shared/%%u:CONTROL=~/Shared/%%u
     subscriptions = no
     list = children
 }
@@ -190,6 +192,13 @@ service dict {
 service log {
   user = dovenull
 }
+service config {
+  unix_listener config {
+    user = root
+    group = vmail
+    mode = 0660
+  }
+}
 service auth {
   inet_listener auth-inet {
     port = 10001