First you should learn how to D'abord, vous devez apprendre à create a self-signed certificate using OpenSSL créer une auto-signé certificat en utilisant OpenSSL (free). (gratuit). After that it is a simple matter of copying the files to appropriate location and enabling dovecot to use SSL authentication. Après qu'il s'agit d'une simple question de copier les fichiers à l'emplacement approprié et pigeonnier permettant d'utiliser l'authentification SSL. Let’s look at the details. Regardons les détails.

First you need to find the location to place the certificate and key file. Vous devez d'abord trouver l'emplacement de placer le certificat et les principaux fichiers. Open dovecot.conf file (Location: /etc/dovecot.conf) and search for pem. Ouvert dovecot.conf fichier (Location: / etc / dovecot.conf) et la recherche de pem. You will find two lines like: Vous trouverez deux des lignes telles que:

#ssl_cert_file = /etc/pki/dovecot/certs/dovecot.pem # ssl_cert_file = / etc / pki / pigeonnier / certs / dovecot.pem
#ssl_key_file = /etc/pki/dovecot/private/dovecot.pem # ssl_key_file = / etc / pki / pigeonnier / privé / dovecot.pem

These indicate the default location of the key and certificate file. Ces indiquer l'emplacement par défaut de la clé et fichier de certificat.
Note: You are likely to find that there is already a certificate installed if you have used a software like yum or apt to install dovecot. Note: Vous risquez de trouver qu'il existe déjà un certificat installé si vous avez utilisé un logiciel comme yum ou apt pour installer pigeonnier. However you will most likely find that the certificate was installed with an incorrect common name which may cause your email client (like Thunderbird) to prompt for permission everytime you check mails. Mais vous devrez sans doute trouver que le certificat a été installé avec un nom incorrect mai qui cause de votre client de messagerie (comme Thunderbird) pour inciter la permission à chaque fois que vous cochez mails.

Assume you have created the self-signed certificate named ca.crt and your key is named ca.key. Supposons que vous avez créé l'auto-signé certificat ca.crt nom et votre clé est nommé ca.key.
Now replace (after saving a backup) the existing, if available, ssl certificate file, in my case /etc/pki/dovecot/certs/dovecot.pem, with ca.crt (after renaming obviously). Maintenant remplacer (après avoir enregistré une sauvegarde) existantes, si disponible, fichier de certificat ssl, dans mon cas, le fichier / etc / ICP / pigeonnier / certs / dovecot.pem, avec ca.crt (après renommage évidemment). Similarly replace the existing, if available, key file (in my case /etc/pki/dovecot/private/dovecot.pem) with ca.key (after renaming). De même les remplacer, si disponible, fichier de clés (dans mon cas le fichier / etc / ICP / pigeonnier / privé / dovecot.pem) avec ca.key (après renommage).

Now open dovecot.conf and search for protocols. Maintenant ouvert dovecot.conf et pour les protocoles de recherche. Ensure that the line is as follows: Veiller à ce que la ligne est comme suit:
protocols = imaps pop3s protocoles IMAPS = pop3s
Note: This disables regular pop3 & imap server. Note: Ceci désactive ordinaire pop3 et imap serveur. Add them too if you must. Ajoutez-les aussi si vous le devez.

Ensure that the ssl_cert_file and ssl_key_file parameters are pointing to the right file as explained above. Veiller à ce que le ssl_cert_file et ssl_key_file paramètres sont pointant vers le bon fichier, comme expliqué ci-dessus.

Now restart the dovecot server which in my case is simply: Maintenant, redémarrez le serveur pigeonnier qui dans mon cas est simplement:
/sbin/service dovecot restart / sbin / service pigeonnier redémarrer

You should now be able to use secure POP3 & IMAP with dovecot. Vous devriez maintenant être en mesure de garantir l'utilisation POP3 et IMAP avec pigeonnier.