41 lines
947 B
Docker
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" ]
|