The following instructions explain how to install an SSL certificate on an Exim 4.x web server.
The prerequisite is that the Apache web server is already installed with SSL support.
The certificate and the private key are already present on the server.
private key: /etc/apache/ssl/deinedomain.de.key
Log in to your web server and open the configuration file /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs with any editor of your choice.
Locate the VirtualHost configuration section you want to secure using SSL and add the following configuration
MAIN_TLS_ENABLE = true
MAIN_TLS_CERTIFICATE = /etc/ssl.crt/example.com.crt
MAIN_TLS_PRIVATEKEY = /etc/ssl.key/example.com.key
Then save the configuration and close the editor.
Activate the changed Exim4 configuration.
Restart the Exim4 service.
Send an email