smtp (latest-x86_64)
Installation
docker pull gitea.dege.au/docker/smtp:latest-x86_64
sha256:adaf2d251a17d2db8291c5dc4bec1f534dbdae336ddc4ef859a3583c061843ea
Image Layers
ADD alpine-minirootfs-3.21.3-x86_64.tar.gz / # buildkit |
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 postfix-policyd-spf-perl # buildkit |
COPY smtpd.conf /etc/sasl2/ # buildkit |
RUN /bin/sh -c apk add shadow && useradd -r -M policyd-spf -s /usr/sbin/nologin && 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 echo "policyd-spf unix - n n - 0 spawn user=policyd-spf argv=/usr/bin/postfix-policyd-spf-perl" >> /etc/postfix/master.cf # 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
Versions (3)
View all