First you should learn how to أولا يجب عليك ان تعرف كيف create a self-signed certificate using OpenSSL انشاء شهادة موقعة الذاتي باستخدام openssl (free). (الاحرار). After that it is a simple matter of copying the files to appropriate location and enabling dovecot to use SSL authentication. بعد ذلك انها مسألة بسيطة نسخ من الملفات الى المكان المناسب وتمكين dovecot الى استخدام SSL التوثيق. Let’s look at the details. دعنا ننظر في التفاصيل.

First you need to find the location to place the certificate and key file. اولا انت بحاجة الى ايجاد مكان لمكان الشهاده والملف الاساسي. Open dovecot.conf file (Location: /etc/dovecot.conf) and search for pem. Dovecot.conf فتح الملف (المكان : / الخ / dovecot.conf) والبحث عن بيم. You will find two lines like: سوف تجد مثل خطين :

#ssl_cert_file = /etc/pki/dovecot/certs/dovecot.pem # ssl_cert_file = / الخ / الحزب الشيوعي الاندونيسي / dovecot / CERTs / dovecot.pem
#ssl_key_file = /etc/pki/dovecot/private/dovecot.pem # ssl_key_file = / الخ / الحزب الشيوعي الاندونيسي / dovecot / القطاع الخاص / dovecot.pem

These indicate the default location of the key and certificate file. وتشير هذه الافتراضيه من الموقع الرئيسى والملف الشهاده.
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. ملاحظه : من المحتمل ان تجد ان هناك بالفعل شهادة تركيب اذا كنت قد استخدمت برامج مثل yum او الرابطه لتثبيت dovecot. 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. ولكن هل من المرجح ان تجد الشهاده مع تركيب غير صحيح والاسم الشائع والذي قد يسبب عميل البريد الالكتروني الخاص بك (مثل طائر الرعد) على وجه السرعه للحصول على اذن في كل مرة كنت التحقق من البريد.

Assume you have created the self-signed certificate named ca.crt and your key is named ca.key. تفترض ان تقوم بانشاء الذاتي توقيع شهادة ca.crt اسمه واسمه هو مفتاح دخولك 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). الآن ليحل محل (بعد حفظ نسخة احتياطية) الحالي ، اذا كانت متاحة ، شهادة SSL الملف ، في حالتي / الخ / الحزب الشيوعي الاندونيسي / dovecot / CERTs / dovecot.pem ، مع ca.crt (من الواضح بعد اعادة تسمية). Similarly replace the existing, if available, key file (in my case /etc/pki/dovecot/private/dovecot.pem) with ca.key (after renaming). وبالمثل يحل محل ، إذا كانت متاحة ، الملف الاساسي (في حالتي / الخ / الحزب الشيوعي الاندونيسي / dovecot / القطاع الخاص / dovecot.pem) مع ca.key (بعد اعادة تسمية).

Now open dovecot.conf and search for protocols. Dovecot.conf ومفتوحة الآن للبحث عن البروتوكولات. Ensure that the line is as follows: ضمان ان الخط هو كما يلي :
protocols = imaps pop3s بروتوكولات = imaps pop3s
Note: This disables regular pop3 & imap server. ملاحظه : هذا يعطل العاديه خادم POP3 و IMAP. Add them too if you must. اضافتها اذا كان من الضروري للغاية.

Ensure that the ssl_cert_file and ssl_key_file parameters are pointing to the right file as explained above. ضمان ان ssl_cert_file وssl_key_file البارامترات التي تشير الى الحق في الملف كما هو موضح اعلاه.

Now restart the dovecot server which in my case is simply: الان اعادة تشغيل الخادم الذي dovecot في حالتي هو ببساطة :
/sbin/service dovecot restart / sbin / dovecot اعادة تشغيل الخدمة

You should now be able to use secure POP3 & IMAP with dovecot. الآن يجب عليك ان تكون قادرة على استخدام آمنة POP3 و IMAP مع dovecot.