1
0
ketr.services/mail/Dockerfile.mail
James Ketrenos 0678d5ddd4 Send and receive is working, not with mailing list yet
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
2024-05-21 12:18:16 -07:00

41 lines
947 B
Docker

FROM ubuntu:jammy
RUN apt-get -q update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
amavisd-new \
amavisd-new-postfix \
clamav-daemon \
clamav-freshclam \
cron \
dovecot-core \
dovecot-managesieved \
dovecot-sieve \
dovecot-imapd \
dovecot-pop3d \
dovecot-ldap \
inotify-tools \
ldap-auth-client \
ldap-auth-config \
libnss-ldap \
libpam-ldap \
milter-greylist \
opendkim \
openssh-server \
postfix \
python3 \
python-is-python3 \
rsyslog \
spamassassin \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log}
COPY ./Dockerfile.mail /Dockerfile
COPY ./entrypoint.sh /entrypoint.sh
# Change ownership of /opt/mailman so that entrypoint.sh
# can watch the postfix_lmtp file and postmap it to a DB
# file
RUN mkdir /opt/mailman && chown 100:65533 /opt/mailman
ENTRYPOINT [ "/entrypoint.sh" ]