mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Updated Configure SSL (markdown)
This commit is contained in:
parent
01afb57ffa
commit
d2a9e6c1ee
|
@ -20,7 +20,7 @@ You don't have anything else to do. Enjoy.
|
|||
|
||||
You can easily generate a self-signed SSL certificate by using the following command:
|
||||
|
||||
docker run -ti --rm -v "$(pwd)"/postfix/ssl:/ssl -h mail.my-domain.com -t tvial/docker-mailserver generate-ssl-certificate
|
||||
docker run -ti --rm -v "$(pwd)"/config/ssl:/ssl -h mail.my-domain.com -t tvial/docker-mailserver generate-ssl-certificate
|
||||
|
||||
# Press enter
|
||||
# Enter a password when needed
|
||||
|
@ -33,11 +33,11 @@ You can easily generate a self-signed SSL certificate by using the following com
|
|||
# 1 out of 1 certificate requests certified, commit? [y/n]y
|
||||
|
||||
# will generate:
|
||||
# postfix/ssl/mail.my-domain.com-key.pem (used in postfix)
|
||||
# postfix/ssl/mail.my-domain.com-req.pem (only used to generate other files)
|
||||
# postfix/ssl/mail.my-domain.com-cert.pem (used in postfix)
|
||||
# postfix/ssl/mail.my-domain.com-combined.pem (used in courier)
|
||||
# postfix/ssl/demoCA/cacert.pem (certificate authority)
|
||||
# config/ssl/mail.my-domain.com-key.pem (used in postfix)
|
||||
# config/ssl/mail.my-domain.com-req.pem (only used to generate other files)
|
||||
# config/ssl/mail.my-domain.com-cert.pem (used in postfix)
|
||||
# config/ssl/mail.my-domain.com-combined.pem (used in courier)
|
||||
# config/ssl/demoCA/cacert.pem (certificate authority)
|
||||
|
||||
Note that the certificate will be generate for the container `fqdn`, that is passed as `-h` argument.
|
||||
Check the following page for more information regarding [postfix and SSL/TLS configuration](http://www.mad-hacking.net/documentation/linux/applications/mail/using-ssl-tls-postfix-courier.xml).
|
||||
|
@ -45,7 +45,7 @@ Check the following page for more information regarding [postfix and SSL/TLS con
|
|||
To use the certificate:
|
||||
|
||||
* add an `DMS_SSL=self-signed` to your container environment variables
|
||||
* if a matching certificate (files listed above) is found in `postfix/ssl`, it will be automatically setup in postfix and courier-imap-ssl. You just have to place them in `postfix/ssl` folder.
|
||||
* if a matching certificate (files listed above) is found in `config/ssl`, it will be automatically setup in postfix and courier-imap-ssl. You just have to place them in `config/ssl` folder.
|
||||
|
||||
### Testing certificate
|
||||
|
||||
|
|
Loading…
Reference in a new issue