Browse Source

added filtering to mailsrv

feature/startup-from-labels
Mario Alegre 5 years ago
parent
commit
b5679bf5c3
  1. 2
      src/mailsrv/Containerfile
  2. 2
      src/mailsrv/assets/dovecot/conf.d/10-mail.conf
  3. 3
      src/mailsrv/assets/dovecot/conf.d/15-mailboxes.conf
  4. 2
      src/mailsrv/assets/dovecot/conf.d/20-lmtp.conf

2
src/mailsrv/Containerfile

@ -26,7 +26,7 @@ ARG FILESUID=5000
ARG DEBIAN_FRONTEND=noninteractive
# install packages we want
RUN apt update -y && apt install -y rsyslog postfix dovecot-imapd dovecot-lmtpd
RUN apt update -y && apt install -y rsyslog postfix dovecot-imapd dovecot-lmtpd dovecot-sieve
# add virtual mail user
RUN addgroup --gid ${FILESUID:?} vmail && \

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

@ -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/".

3
src/mailsrv/assets/dovecot/conf.d/15-mailboxes.conf

@ -54,6 +54,9 @@ namespace inbox {
mailbox Trash {
special_use = \Trash
}
mailbox Archive {
special_use = \Archive
}
# For \Sent mailboxes there are two widely used names. We'll mark both of
# them as \Sent. User typically deletes one of them if duplicates are created.

2
src/mailsrv/assets/dovecot/conf.d/20-lmtp.conf

@ -25,5 +25,5 @@ lda_mailbox_autosubscribe = yes
protocol lmtp {
# Space separated list of plugins to load (default is global mail_plugins).
#mail_plugins = $mail_plugins
mail_plugins = $mail_plugins sieve
}

Loading…
Cancel
Save