Fix SSL conf.

This commit is contained in:
yohan 2019-07-15 23:33:20 +02:00
parent 29706b5f2d
commit f52bd9b658
2 changed files with 27 additions and 0 deletions

View File

@ -15,6 +15,10 @@ COPY 10-auth.conf /etc/dovecot/conf.d/
COPY 10-ssl.conf /etc/dovecot/conf.d/ COPY 10-ssl.conf /etc/dovecot/conf.d/
#COPY 15-lda.conf /etc/dovecot/conf.d/ #COPY 15-lda.conf /etc/dovecot/conf.d/
COPY 20-lmtp.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/ #COPY users /etc/dovecot/
RUN mkdir /home/yohan RUN mkdir /home/yohan
RUN chown -R 1000:1000 /home/yohan RUN chown -R 1000:1000 /home/yohan

23
dovecot-openssl.cnf Normal file
View File

@ -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