From d31c4dcc760ad424ad914735fde9398ae8a8fa0d Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 22 Jun 2026 12:54:04 +0100 Subject: [PATCH] adds msmtp --- msmtp/Dockerfile | 21 +++++++++++++++++++++ msmtp/version | 1 + 2 files changed, 22 insertions(+) create mode 100644 msmtp/Dockerfile create mode 100644 msmtp/version diff --git a/msmtp/Dockerfile b/msmtp/Dockerfile new file mode 100644 index 0000000..98f99a1 --- /dev/null +++ b/msmtp/Dockerfile @@ -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 diff --git a/msmtp/version b/msmtp/version new file mode 100644 index 0000000..d00f64c --- /dev/null +++ b/msmtp/version @@ -0,0 +1 @@ +1.8.32