make sieve work
This commit is contained in:
parent
b719c20293
commit
c9326c4ec9
@ -2,12 +2,13 @@ FROM thallian/confd-env:latest
|
||||
|
||||
RUN apk add --no-cache dovecot dovecot-ldap dovecot-pigeonhole-plugin
|
||||
|
||||
RUN mkdir /etc/dovecot/sieve-after/
|
||||
RUN addgroup -g 1111 vmail
|
||||
RUN adduser -u 1111 -h /var/lib/vmail -D -G vmail vmail
|
||||
|
||||
RUN addgroup vmail
|
||||
RUN adduser -h /var/lib/vmail -D -G vmail vmail
|
||||
RUN mkdir /var/lib/vmail/sieve-after/
|
||||
RUN chown vmail:vmail /var/lib/vmail/sieve-after/
|
||||
|
||||
EXPOSE 143 6334 7777
|
||||
EXPOSE 143 4190 6334 7777
|
||||
|
||||
VOLUME /var/lib/vmail/mail/ /etc/ssl/mail
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
[template]
|
||||
src = "spam.sieve.tmpl"
|
||||
dest = "/etc/dovecot/sieve-after/spam.sieve"
|
||||
dest = "/var/lib/vmail/sieve-after/spam.sieve"
|
||||
gid = 1111
|
||||
uid = 1111
|
||||
mode = "0660"
|
||||
|
@ -1,4 +1,4 @@
|
||||
plugin {
|
||||
sieve = file:~/sieve;active=~/.dovecot.sieve
|
||||
sieve_after = /etc/dovecot/sieve-after
|
||||
sieve_after = /var/lib/vmail/sieve-after/
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
|
||||
sievec /etc/dovecot/sieve-after/spam.sieve
|
||||
s6-setuidgid vmail sievec /var/lib/vmail/sieve-after/spam.sieve
|
||||
|
Loading…
Reference in New Issue
Block a user