From cfe921d3e0c510c147b0a51326a922b98a8a8247 Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Fri, 27 Mar 2020 06:25:00 +0000 Subject: [PATCH] Old tweaks to Dovecot config to put mail in the right place --- conf.d/10-mail.conf | 11 ++++++----- conf.d/auth-static.conf.ext | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/conf.d/10-mail.conf b/conf.d/10-mail.conf index c85a187..ee921fe 100644 --- a/conf.d/10-mail.conf +++ b/conf.d/10-mail.conf @@ -28,7 +28,7 @@ # # #mail_location = -mail_location = maildir:~/.maildir +mail_location = maildir:~/maildir # If you need to set multiple mailbox locations or want to change default # namespace settings, you can do it by defining namespace sections. @@ -45,9 +45,9 @@ mail_location = maildir:~/.maildir # explicitly, ie. mail_location does nothing unless you have a namespace # without a location setting. Default namespace is simply done by having a # namespace with empty prefix. -#namespace { +namespace inbox { # Namespace type: private, shared or public - #type = private + type = private # Hierarchy separator to use. You should use the same separator for all # namespaces or some clients get confused. '/' is usually a good one. @@ -64,7 +64,7 @@ mail_location = maildir:~/.maildir # There can be only one INBOX, and this setting defines which namespace # has it. - #inbox = no + inbox = yes # If namespace is hidden, it's not advertised to clients via NAMESPACE # extension. You'll most likely also want to set list=no. This is mostly @@ -83,7 +83,7 @@ mail_location = maildir:~/.maildir #subscriptions = yes # See 15-mailboxes.conf for definitions of special mailboxes. -#} +} # Example shared namespace configuration #namespace { @@ -138,6 +138,7 @@ mail_location = maildir:~/.maildir # Dictionary for key=value mailbox attributes. This is used for example by # URLAUTH and METADATA extensions. #mail_attribute_dict = +mail_attribute_dict = file:%h/maildir/dovecot-attributes # A comment or note that is associated with the server. This value is # accessible for authenticated users through the IMAP METADATA server diff --git a/conf.d/auth-static.conf.ext b/conf.d/auth-static.conf.ext index 911e6f3..8288929 100644 --- a/conf.d/auth-static.conf.ext +++ b/conf.d/auth-static.conf.ext @@ -20,5 +20,5 @@ userdb { driver = static - args = uid=dovecot-vmail gid=dovecot-vmail home=/var/mail/virtual/%u + args = uid=dovecot-vmail gid=dovecot-vmail home=/var/mail/virtual/data/%u } -- 2.34.1