adds msmtp

This commit is contained in:
2026-06-22 12:54:04 +01:00
parent 3a107594b1
commit d31c4dcc76
2 changed files with 22 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
ARG ALPINE_VERSION
FROM alpine:${ALPINE_VERSION}
RUN mkdir -p /var/msmtp
WORKDIR /var/msmtp
ARG VERSION
RUN apk --no-cache add git autoconf automake build-base gettext gettext-dev gnutls-dev libtool make texinfo
RUN git clone https://github.com/marlam/msmtp.git --branch msmtp-${VERSION} --single-branch --depth 1 msmtp \
&& cd msmtp \
&& autoreconf -fi \
&& ./configure \
&& make \
&& make install \
&& cp src/msmtp src/msmtpd /usr/local/bin \
&& rm -rf msmtp \
&& apk del git autoconf automake build-base gettext-dev gnutls-dev libtool make texinfo
CMD msmtpd \
--auth=$SMTP_USER,'echo $SMTP_PASSWORD' \
--command='msmtp -C .msmtprc -f %F --' \
--interface=0.0.0.0 \
--log=/var/msmtp/msmtpd.log \
--port=$SMTP_PORT
+1
View File
@@ -0,0 +1 @@
1.8.32