mirror of
https://github.com/lleene/dockerconfig.git
synced 2025-07-25 09:28:32 +02:00
Working Draft
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
# Enables mail_crypt for all services (imap, pop3, etc)
|
||||
mail_plugins = $mail_plugins mail_crypt
|
||||
plugin {
|
||||
mail_crypt_global_private_key = </certs/ecprivkey.pem
|
||||
mail_crypt_global_public_key = </certs/ecpubkey.pem
|
||||
mail_crypt_global_private_key = </etc/letsencrypt/live/ecprivkey.pem
|
||||
mail_crypt_global_public_key = </etc/letsencrypt/live/ecpubkey.pem
|
||||
mail_crypt_save_version = 2
|
||||
}
|
||||
|
14
config/mail/Dockerfile
Normal file
14
config/mail/Dockerfile
Normal file
@ -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/*
|
||||
|
||||
RUN mkdir -p /etc/letsencrypt/live
|
||||
|
||||
RUN openssl ecparam -name ${SSL_ALGO} -genkey | openssl pkey -out /etc/letsencrypt/live/ecprivkey.pem && \
|
||||
openssl pkey -in /etc/letsencrypt/live/ecprivkey.pem -pubout -out /etc/letsencrypt/live/ecpubkey.pem
|
Reference in New Issue
Block a user