Skip to content

Howto: Use Your Own TLS Certificates

Jeffrey Boehm edited this page Sep 5, 2019 · 1 revision
  1. Remove the ssl service from docker-compose.yml, by removing the entire block.
  2. Uncomment the volume notations in the mta and mda blocks, delete the data-tls mounts:
     mta:
       image: jeboehm/mailserver-mta:latest
       ...
       volumes:
         - /home/user/certs/mail.example.com.crt:/media/tls/mailserver.crt:ro
         - /home/user/certs/mail.example.com.key:/media/tls/mailserver.key:ro
    
     mda:
       image: jeboehm/mailserver-mda:latest
       ...
       volumes:
         - data-mail:/var/vmail
         - /home/user/certs/mail.example.com.crt:/media/tls/mailserver.crt:ro
         - /home/user/certs/mail.example.com.key:/media/tls/mailserver.key:ro
    
  3. Delete the data-tls volume from the volumes section by removing the entire block.