A tool for creating SSL certificates for dovecot

Discussion in 'Plugins/Modules/Addons' started by Turgut Kalfaoglu, Jan 26, 2025.

  1. Turgut Kalfaoglu

    Turgut Kalfaoglu Member HowtoForge Supporter

    Many users are used to having access to their domain's mail server via TLS/SSL. This script automatically requests and installs a certificate for their domain to dovecot and postfix.
    Usage: add-mail-ssl mail.mydomain.com
    or, add-mail-ssl mydomain.com
    (you can always do both too)
    /* This program requires OOrexx to be installed - from https://www.oorexx.org/download.html
    Usage: add-mail-ssl <domain name>
    It requests a Let's Encrypt certificate and when successful, it adds the necessary lines to /etc/dovecot/conf.d/15-ssl-domains.conf so that the users can access their own domains via TLS/SSL.
    (Don't forget to put the authenticator.sh and cleanup.sh somewhere that this script can find. That way, letsencrypt will automatically renew these certificates.)

    This version ALSO updates /etc/postfix/vmail_ssl.map so that incoming secure connections are now possible too. ensure that
    tls_server_sni_maps = hash:/etc/postfix/vmail_ssl.map
    exists in /etc/postfix/main.cf - this program will append a line to that file, then re-hash the file.
    by Turgut Kalfaoglu <[email protected]> -- feedback welcome.
    */
     

    Attached Files:

    Last edited: Jan 30, 2025

Share This Page