smtp (latest-x86_64)

Published 2024-10-14 11:35:09 +00:00 by deon in docker/smtp

Installation

docker pull gitea.dege.au/docker/smtp:latest-x86_64
sha256:d35b3bfecf6c7acf6d8097c597a420de5951cff756d3b3af28dd4babfbbcc80c

Image Layers

ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in /
CMD ["/bin/sh"]
RUN /bin/sh -c if [ -n ${HTTP_PROXY} ] ; then sed -i -e s'/https/http/' /etc/apk/repositories; fi # buildkit
RUN /bin/sh -c apk add --no-cache postfix postfix-ldap cyrus-sasl cyrus-sasl-login opendkim opendkim-utils # buildkit
COPY smtpd.conf /etc/sasl2/ # buildkit
RUN /bin/sh -c apk add shadow && useradd -rc "HUB Mail Relay" -M relay -NG mail -s /sbin/nologin && echo relay:SmTpR3l2Y | chpasswd && gpasswd -a postfix opendkim # buildkit
RUN /bin/sh -c sed -i -e 's%^#mynetworks = hash:/etc/postfix/network_table%mynetworks = /etc/opendkim/signing/TrustedHosts%' /etc/postfix/main.cf # buildkit
COPY include /etc/postfix/include # buildkit
COPY ssl /etc/postfix/ssl # buildkit
RUN /bin/sh -c chmod 644 /etc/postfix/ssl/ca.crts /etc/postfix/include/*cf # buildkit
RUN /bin/sh -c mkdir /run/opendkim # buildkit
COPY opendkim.conf /etc/opendkim/ # buildkit
COPY signing /etc/opendkim/signing/ # buildkit
COPY defaults /defaults/ # buildkit
COPY docker/init-docker /sbin/ # buildkit
VOLUME [/var/spool/postfix /etc/postfix/custom /var/mail/vhosts]
EXPOSE map[25/tcp:{}]
ENTRYPOINT ["/sbin/init-docker"]
Details
Container
2024-10-14 11:35:09 +00:00
5
OCI / Docker
linux/amd64
23 MiB
Versions (3) View all
latest 2024-10-14
latest-arm64 2024-10-14
latest-x86_64 2024-10-14