TLS certificate for sendmail: Difference between revisions

From Tech
Jump to navigationJump to search
Content deleted Content added
Created page with "Getting the certificate: apt install certbot certbot certonly --webroot #domain name: pomo.komputilo.org #webroot for pomo: directoy apache serves for http://pomo.komputil..."
 
No edit summary
Line 5: Line 5:
#webroot for pomo: directoy apache serves for http://pomo.komputilo.org
#webroot for pomo: directoy apache serves for http://pomo.komputilo.org


To install the certificate in sendmail, insert into /etc/mail/sendmail.mc:
To install the certificate in sendmail, insert into /etc/mail/sendmail.mc (partially copied from [https://www.sendmail.org/~ca/email/starttls.html sendmail.org]:
define(`confCACERT_PATH', `/etc/letsencrypt/live/pomo.komputilo.org')dnl
define(`confCACERT_PATH', `/etc/letsencrypt/live/pomo.komputilo.org')dnl
define(`confCACERT', `/etc/letsencrypt/live/pomo.komputilo.org/chain.pem')dnl
define(`confCACERT', `/etc/letsencrypt/live/pomo.komputilo.org/chain.pem')dnl

Revision as of 08:29, 18 April 2020

Getting the certificate:

apt install certbot
certbot certonly --webroot
#domain name: pomo.komputilo.org
#webroot for pomo: directoy apache serves for http://pomo.komputilo.org

To install the certificate in sendmail, insert into /etc/mail/sendmail.mc (partially copied from sendmail.org:

define(`confCACERT_PATH',  `/etc/letsencrypt/live/pomo.komputilo.org')dnl
define(`confCACERT',       `/etc/letsencrypt/live/pomo.komputilo.org/chain.pem')dnl
define(`confSERVER_CERT',  `/etc/letsencrypt/live/pomo.komputilo.org/cert.pem')dnl
define(`confSERVER_KEY',   `/etc/letsencrypt/live/pomo.komputilo.org/privkey.pem')dnl
define(`confCLIENT_CERT',  `/etc/letsencrypt/live/pomo.komputilo.org/cert.pem')dnl
define(`confCLIENT_KEY',   `/etc/letsencrypt/live/pomo.komputilo.org/privkey.pem')dnl
define(`confAUTH_OPTIONS', `A p y')dnl