Fix SSL conf.
This commit is contained in:
parent
29706b5f2d
commit
f52bd9b658
@ -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
|
||||
|
23
dovecot-openssl.cnf
Normal file
23
dovecot-openssl.cnf
Normal 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
|
Loading…
Reference in New Issue
Block a user