diff --git a/src/mailsrv/assets/bin/mkvirt b/src/mailsrv/assets/bin/mkvirt index 975ec5d..45f9b7e 100755 --- a/src/mailsrv/assets/bin/mkvirt +++ b/src/mailsrv/assets/bin/mkvirt @@ -19,3 +19,13 @@ postmap /etc/postfix/users cd /etc/postfix cat /vol/db/aliases.d/*.list > aliases postmap aliases + +### Sieve ### + +# copy users sieve to mail +cd /vol/db/sieve.d +for user in * ; do + rsync -vaSH ${user} /vol/mail/${user}/.dovecot.sieve +done + +chown -R vmail:vmail /vol/mail diff --git a/src/mailsrv/assets/dovecot/conf.d/10-mail.conf b/src/mailsrv/assets/dovecot/conf.d/10-mail.conf index 98a397e..4df36e8 100644 --- a/src/mailsrv/assets/dovecot/conf.d/10-mail.conf +++ b/src/mailsrv/assets/dovecot/conf.d/10-mail.conf @@ -27,7 +27,7 @@ # # # -mail_location = maildir:~/Maildir:LAYOUT=fs +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. @@ -46,7 +46,7 @@ namespace inbox { # Hierarchy separator to use. You should use the same separator for all # namespaces or some clients get confused. '/' is usually a good one. # The default however depends on the underlying mail storage format. - separator = / + separator = . # Prefix required to access this namespace. This needs to be different for # all namespaces. For example "Public/".