Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ RUN groupadd -g 5000 vmail && \
chgrp vmail /etc/dovecot/dovecot.conf && \
chmod g+r /etc/dovecot/dovecot.conf

RUN chmod -R 755 /etc/postfix/
RUN chmod -R 755 /etc/dovecot/

RUN postconf -e virtual_uid_maps=static:5000 && \
postconf -e virtual_gid_maps=static:5000 && \
postconf -e virtual_mailbox_domains=mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf && \
Expand All @@ -22,16 +25,18 @@ RUN postconf -e virtual_uid_maps=static:5000 && \
RUN echo "dovecot unix - n n - - pipe" >> /etc/postfix/master.cf && \
echo ' flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}' >> /etc/postfix/master.cf

ADD start.sh /start.sh
ADD start.sh /start.sh

RUN chmod -R 755 /usr/lib/postfix/

# default config
ENV DB_HOST localhost
ENV DB_USER root
ENV DB_USER root

# SMTP ports
EXPOSE 25
EXPOSE 587
# POP and IMAP ports
EXPOSE 587
# POP and IMAP ports
EXPOSE 110
EXPOSE 143
EXPOSE 995
Expand Down