Installing SSL Certificate for the mail server DirectAdmin

The article described below is a full description of the installation ssl certificate for the mail server.
Description has been prepared for the server panel DirectAdmin.

Assume that each of us has already generated certificate and have 3 files.
certyfikat.crt
klucz.key
certyfikatpośredni.crt

Each publisher certificate should provide just such files, they are necessary to install certificates for both Web and mail server.

edit the necessary files /etc/exim.key:

and we paste there our certificate which podejżymy file certyfikat.crt that we got from the publisher.

Edit your /etc/exim.key

and there analogous paste the private key file that podejrzymy klucz.key from the publisher.

Another file is a file /etc/exim.cacert
perhaps it is not so it will create.

Important note here.

The file should contain pasted at the beginning of the certificate then the intermediate CA certificates.

when all carefully glue we give permission to this file.

The next step is to edit the configuration file exim.conf

we find:

and set the whole in the following manner:

We already have almost everything.
We move all the settings to relevant files:

The last step is to edit the configuration files dovecot

The file should look like this:

Left us a service restart.

That's it 😉

In the settings of the mail client as a server incoming and outgoing mail not only give mail.domena.pl domena.pl
SSL encryption
As a normal password authentication.

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.