From 159c36b531c5131be4de7c18a7d5144f17ad6b98 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 12 Nov 2018 09:52:12 +0100 Subject: [PATCH] [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 --- data/conf/dovecot/dovecot.conf | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/data/conf/dovecot/dovecot.conf b/data/conf/dovecot/dovecot.conf index 02ce5dff..ecd3c38e 100644 --- a/data/conf/dovecot/dovecot.conf +++ b/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