diff --git a/Dockerfile b/Dockerfile index 8be42bd..933d14b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,10 @@ COPY 10-auth.conf /etc/dovecot/conf.d/ COPY 10-ssl.conf /etc/dovecot/conf.d/ #COPY 15-lda.conf /etc/dovecot/conf.d/ COPY 20-lmtp.conf /etc/dovecot/conf.d/ +COPY dovecot-openssl.cnf /root/ +RUN mv dovecot-openssl.cnf/mkcert.sh /root/ +RUN chmod +X /root/mkcert.sh +RUN cd /root; ./mkcert.sh #COPY users /etc/dovecot/ RUN mkdir /home/yohan RUN chown -R 1000:1000 /home/yohan diff --git a/dovecot-openssl.cnf b/dovecot-openssl.cnf new file mode 100644 index 0000000..f096eac --- /dev/null +++ b/dovecot-openssl.cnf @@ -0,0 +1,23 @@ +# +# SSLeay configuration file for Dovecot. +# + +RANDFILE = /dev/urandom + +[ req ] +default_bits = 2048 +default_keyfile = privkey.pem +distinguished_name = req_distinguished_name +prompt = no +policy = policy_anything +req_extensions = v3_req +x509_extensions = v3_req + +[ req_distinguished_name ] +organizationName = scimetis.net +organizationalUnitName = @commonName@ +commonName = @commonName@ +emailAddress = @emailAddress@ + +[ v3_req ] +basicConstraints = CA:FALSE