I am building a Slack 14.1 box and want to set up secure mail services. During my exploration I cam across the file sendmail-slackware-tls-sasl.mc in /usr/share/sendmail/cf/cf which looks like what I want to use. However, I'm unsure what I need to do with openssl in terms of the certs. In this file is the following section.
Code:
dnl# You will need to create the certificates below with OpenSSL first:
define(`confCACERT_PATH', `/etc/mail/certs/')
define(`confCACERT', `/etc/mail/certs/CA.cert.pem')
define(`confSERVER_CERT', `/etc/mail/certs/smtp.cert.pem')
define(`confSERVER_KEY', `/etc/mail/certs/smtp.key.pem')
How do I create these three pem files?
On a related note, I will also want to set-up secure IMAP and so will need a certificate for that as well I expect. Are any of these going to be common for all encrypted traffic?
I've looked at what HOTOWs were installed with the distribution as well as for relevant info in /usr/doc but I guess I'm really looking for some step-by-step guides or other useful resources to read.