summaryrefslogtreecommitdiff
path: root/smtp/Dockerfile
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2025-12-18 20:52:19 +0000
committerJoe Carstairs <me@joeac.net>2025-12-18 20:52:19 +0000
commit2fdf12259cffe8bfc5de8fc3cdc68593839699c5 (patch)
treec2eee1e3fe2db71099997c38173f6595f4d05619 /smtp/Dockerfile
parente568105b99511c7c87bc4dcc00e35f98d2da211e (diff)
add smtp service
Diffstat (limited to 'smtp/Dockerfile')
-rw-r--r--smtp/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/smtp/Dockerfile b/smtp/Dockerfile
new file mode 100644
index 0000000..093087a
--- /dev/null
+++ b/smtp/Dockerfile
@@ -0,0 +1,13 @@
+FROM alpine:3.22
+
+WORKDIR /
+RUN apk add --no-cache git autoconf automake build-base gettext gettext-dev gnutls-dev libtool make texinfo
+RUN git clone https://github.com/marlam/msmtp.git --branch msmtp-1.8.32 --single-branch --depth 1
+WORKDIR /msmtp
+RUN autoreconf -fi && \
+ ./configure && \
+ make && \
+ make install
+ARG PORT=2500
+EXPOSE $PORT
+CMD ["msmtpd", "--port=$PORT"]