docker-deploy/mail/Dockerfile
2021-12-17 03:33:54 +08:00

31 lines
567 B
Docker

FROM alpine:3.15
COPY ./conf/postfix /etc/postfix
COPY ./conf/dovecot /etc/dovecot
COPY ./conf/opendkim /etc/opendkim
#ADD ./conf/clamav /etc/clamav
COPY ./run.sh /
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
&& apk add \
postfix postfix-pgsql \
dovecot-pgsql dovecot-lmtpd dovecot-pop3d \
opendkim opendkim-utils \
&& rm -rf /var/cache/apk
#SMTP
EXPOSE 25
#POP3
EXPOSE 110
#IMAP
EXPOSE 143
#SMTPS
EXPOSE 465
#Submission
EXPOSE 587
#IMAPS
EXPOSE 993
#POP3S
EXPOSE 995
ENTRYPOINT ["/run.sh"]