NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

[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

159c36b5
andryyy <[email protected]> 8 years ago
data/conf/dovecot/dovecot.conf | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

Diff

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