How do I install my SSL certificate on Exim 4.x?


Below is a description of how to set up the SSL Certificate for Exim 4.X. It is assumed that the certificate and the private key already exist on the server:

A
Please store the data in the corresponding directories:

Private key: /etc/ssl.key/example.com.key
Certificate: /etc/ssl.crt/example.com.crt

B
Once you have fulfilled the basic requirements mentioned above, you can start setting up:
  1. Log in to your server.
  2. Now open the configuration file /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs with an editor of your choice.
  3. Enable TLS
    MAIN_TLS_ENABLE = true
  4. Specify the path to the certificate.
    MAIN_TLS_CERTIFICATE = /etc/ssl.crt/example.com.crt
  5. Specify the path to the private key.
    MAIN_TLS_PRIVATEKEY = /etc/ssl.key/example.com.key
  6. Save and exit the editor.
C
Now activate the changed Exim4 configuration.
update-exim4.conf
D
Now restart the Exim4 service.
/etc/init.d/exim4 restart

The certificate is now installed and TLS enabled.

In case you experience any problem or have any question, please do not hesitate to contact our support.


Was this article helpful?
No Yes
We use cookies for the technical functionality of this website. With your consent, we also collect page views and other statistical data in anonymized form.

Select individually
Cookie Settings
Read Privacy Statement