From f95536338b28571a8b5c3c403e95f4aeba1f5e00 Mon Sep 17 00:00:00 2001 From: Lieuwe Leene Date: Sat, 5 Nov 2022 15:00:31 +0100 Subject: [PATCH] WIP: trying mailserver --- Dockerfile | 14 ++++ config/mail/10-custom.conf | 7 ++ .../pg-init-scripts}/init_db.sh | 0 docker-compose.yaml | 65 ++++++++++++++----- local.env | 22 +++++++ 5 files changed, 93 insertions(+), 15 deletions(-) create mode 100644 Dockerfile create mode 100644 config/mail/10-custom.conf rename {pg-init-scripts => config/pg-init-scripts}/init_db.sh (100%) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..963e3e4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine + +MAINTAINER Lieuwe Leene + +ARG SSL_ALGO=secp521r1 + +RUN apk update && \ + apk add --no-cache openssl && \ + rm -rf /var/cache/apk/* + +COPY ./mail/certs /certs + +RUN openssl ecparam -name ${SSL_ALGO} -genkey | openssl pkey -out /certs/ecprivkey.pem && \ + openssl pkey -in /certs/ecprivkey.pem -pubout -out /certs/ecpubkey.pem diff --git a/config/mail/10-custom.conf b/config/mail/10-custom.conf new file mode 100644 index 0000000..9fa9c41 --- /dev/null +++ b/config/mail/10-custom.conf @@ -0,0 +1,7 @@ +# Enables mail_crypt for all services (imap, pop3, etc) +mail_plugins = $mail_plugins mail_crypt +plugin { + mail_crypt_global_private_key =