Use a common ssl location

This commit is contained in:
hasufell 2015-09-14 16:05:20 +02:00
parent 68595e78cd
commit 550dbfb533
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
3 changed files with 17 additions and 5 deletions

View File

@ -45,4 +45,16 @@ Use the the example config files in `config/example` to get you started.
6. Run container and map ports 25 and 143 from the host to the container. 6. Run container and map ports 25 and 143 from the host to the container.
`docker run -name dockermail -d -p 25:25 -p 587:587 -p 143:143 -v /var/lib/dockermail/settings:/mail_settings -v /var/lib/dockermail/vmail:/vmail dockermail_email_core` ```
docker run -ti -d \
-name dockermail \
-p 25:25 \
-p 587:587 \
-p 143:143 \
-v /var/lib/dockermail/settings:/mail_settings \
-v /var/lib/dockermail/vmail:/vmail \
-v <path-to-certs>:/etc/ssl/server
dockermail_email_core
```
Note that the certificates must be named `email.crt` and `email.key`.

View File

@ -1,5 +1,5 @@
ssl = yes ssl = yes
disable_plaintext_auth = no disable_plaintext_auth = no
ssl_cert = </etc/ssl/certs/dovecot.pem ssl_cert = </etc/ssl/server/email.crt
ssl_key = </etc/ssl/private/dovecot.pem ssl_key = </etc/ssl/server/email.key

View File

@ -19,8 +19,8 @@ append_dot_mydomain = no
readme_directory = no readme_directory = no
# TLS parameters # TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/postfix.pem smtpd_tls_cert_file=/etc/ssl/server/email.crt
smtpd_tls_key_file=/etc/ssl/private/postfix.key smtpd_tls_key_file=/etc/ssl/server/email.key
smtpd_use_tls=yes smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache