2018-11-20 17:13:09 +00:00
|
|
|
FROM alpine:latest
|
2018-12-07 16:00:01 +00:00
|
|
|
RUN apk add --no-cache dovecot dovecot-pigeonhole-plugin dovecot-mysql
|
2018-11-20 17:13:09 +00:00
|
|
|
|
2018-12-07 16:00:01 +00:00
|
|
|
RUN addgroup -S vmail && adduser -u 5000 -G vmail -s /usr/bin/nologin -h /home/vmail -S vmail
|
2018-11-20 17:13:09 +00:00
|
|
|
|
|
|
|
RUN mkdir /etc/dovecot/sieve-filter
|
|
|
|
RUN ln -s /usr/bin/vendor_perl/spamc /etc/dovecot/sieve-filter/spamc
|
|
|
|
|
|
|
|
ADD dovecot.conf /etc/dovecot/dovecot.conf
|
|
|
|
ADD 10-auth.conf /etc/dovecot/conf.d/10-auth.conf
|
|
|
|
ADD 10-master.conf /etc/dovecot/conf.d/10-master.conf
|
|
|
|
|
2018-12-07 16:00:01 +00:00
|
|
|
ADD dh.pem /dh.pem
|
2018-11-20 17:13:09 +00:00
|
|
|
ADD 20-lmtp.conf /etc/dovecot/conf.d/20-lmtp.conf
|
|
|
|
ADD 90-sieve.conf /etc/dovecot/conf.d/90-sieve.conf
|
|
|
|
|
|
|
|
|
|
|
|
ADD move_to_spam_folder.sieve /var/lib/dovecot/sieve/global_sieves/move_to_spam_folder.sieve
|
|
|
|
|
|
|
|
ADD ./start.sh /start.sh
|
|
|
|
|
|
|
|
RUN sievec /var/lib/dovecot/sieve/global_sieves
|
|
|
|
|
|
|
|
EXPOSE 993
|
|
|
|
|
|
|
|
ENTRYPOINT ["/start.sh"]
|