From 2fdf12259cffe8bfc5de8fc3cdc68593839699c5 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 18 Dec 2025 20:52:19 +0000 Subject: [PATCH] add smtp service --- compose.yml | 2 ++ smtp/Dockerfile | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 smtp/Dockerfile diff --git a/compose.yml b/compose.yml index 7348de9..e5f008b 100644 --- a/compose.yml +++ b/compose.yml @@ -3,3 +3,5 @@ services: build: website ports: - "8000:4321" + smtp: + build: smtp 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"]