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 =