Browse Source

Added processing of sieve files and changed format of maildir

feature/startup-from-labels
Fernando Alegre 5 years ago
parent
commit
3b0c19fffb
  1. 10
      src/mailsrv/assets/bin/mkvirt
  2. 4
      src/mailsrv/assets/dovecot/conf.d/10-mail.conf

10
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

4
src/mailsrv/assets/dovecot/conf.d/10-mail.conf

@ -27,7 +27,7 @@
#
# <doc/wiki/MailLocation.txt>
#
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/".

Loading…
Cancel
Save