How to configure SSL for Dovecot/Postfix manually?

Coming back to this thread following further info from another thread.

@Ilia, could you please confirm that we just need the sss.combined file as per your post in this thread please?

I am asking because after @Joe’s comment in the other thread and looking through Postfix and Dovecot it appears we need to manually create the following entries as well?

1) Webmin > Servers > Postfix > Certificate Mapping

domain.com
/home/domain.com/ssl.key,/home/domain.com/ssl.cert,/home/domain.com/ssl.ca

And

.domain.com
/home/domain.com/ssl.key,/home/domain.com/ssl.cert,/home/domain.com/ssl.ca

2) Webmin > Servers > Dovecot > Edit Config Files

Add to the bottom:

local_name *.domain.com {
  ssl_cert = </home/domain.com/ssl.combined
  ssl_key = </home/domain.com/ssl.key
}

I’d be grateful if someone could please confirm that in order to make sending and receiving secure mail via Dovecot and Postfix work we need to:

  • Create entries as per (1) above.
  • Add to config file as per (2) above.
  • Create an ssl-combined file and copy it to /home/domain.com/

Or would we also need to:

  • Create a ssl.key file and copy it to /home/domain.com/
  • Create a ssl.cert file and copy it to /home/domain.com/
  • Create a ssl.ca file and copy it to /home/domain.com/