diff --git a/sources/tech/20170112 OpenSSL For Apache and Dovecot Part 2.md b/translated/tech/20170112 OpenSSL For Apache and Dovecot Part 2.md similarity index 60% rename from sources/tech/20170112 OpenSSL For Apache and Dovecot Part 2.md rename to translated/tech/20170112 OpenSSL For Apache and Dovecot Part 2.md index d0d468b927..a1c86bee2f 100644 --- a/sources/tech/20170112 OpenSSL For Apache and Dovecot Part 2.md +++ b/translated/tech/20170112 OpenSSL For Apache and Dovecot Part 2.md @@ -1,18 +1,18 @@ -translating---geekpi - -OpenSSL For Apache and Dovecot: Part 2 +OpenSSL 在 Apache 和 Dovecot 下的使用:第二部分 ============================================================ ![OpenSSL](https://www.linux.com/sites/lcom/files/styles/rendered_file/public/key-openssl_0.jpg?itok=FDO3qAOt "OpenSSL") -In this tutorial, Carla Schroder explains how to protect your Postfix/Dovecot mail server with OpenSSL.[Creative Commons Zero][1]Pixabay +本篇中,Carla Schroder 会解释如何使用 OpenSSL 保护你的 Postfix/Dovecot 邮件服务器 -[Last week][11], as part of our meandering OpenSSL series, we learned how to configure Apache to use OpenSSL and to force all sessions to use HTTPS. Today, we'll protect our Postfix/Dovecot mail server with OpenSSL. The examples build on the previous tutorials; see the Resources section at the end for links to all previous tutorials in this series. +[Creative Commons Zero][1]Pixabay -You will have to configure both Postfix and Dovecot to use OpenSSL, and we'll use the key and certificate that we created in [OpenSSL For Apache and Dovecot ][12]. +在[上周][11],作为我们 OpenSSL 系列的一部分,我们学习了如何配置 Apache 以使用 OpenSSL 并强制所有会话使用 HTTPS。 今天,我们将使用 OpenSSL 保护我们的 Postfix/Dovecot 邮件服务器。这些示例基于前面的教程; 请参阅最后的参考资料部分,了解本系列中以前的所有教程的链接。 -### Postfix Configuration +你需要配置 Postfix 以及 Dovecot 来使用 OpenSSL,我们将使用我们在[在 Apache 和 Dovecot 中使用 OpenSSL][12]中创建的密钥和证书。 -You must edit `/etc/postfix/main.cf` and `/etc/postfix/master.cf`. The `main.cf`example is the complete configuration, building on our previous tutorials. Substitute your own OpenSSL key and certificate names, and local network: +### Postfix 配置 + +你必须编辑 `/etc/postfix/main.cf` 以及 `/etc/postfix/master.cf`。`main.cf` 这个例子是完整的配置,它在我们先前的教程中构建过了。替换成你自己的 OpenSSL 密钥和证书名以及本地网络。 ``` compatibility_level=2 @@ -47,7 +47,7 @@ smtpd_sasl_path = private/auth smtpd_sasl_authenticated_header = yes ``` -In `master.cf` un-comment the following lines in the `submission inet` section, and edit `smtpd_recipient_restrictions` as shown: +在 `master.cf` 解除 `submission inet` 部分的注释,并编辑 `smtpd_recipient_restrictions`: ``` #submission inet n - y - - smtpd @@ -59,15 +59,15 @@ In `master.cf` un-comment the following lines in the `submission inet` secti -o smtpd_tls_wrappermode=no ``` -Reload Postfix and you're finished: +完成后重新加载 Postfix: ``` $ sudo service postfix reload ``` -### Dovecot Configuration +### Dovecot 配置 -In our previous tutorials we made a single configuration file for Dovecot, `/etc/dovecot/dovecot.conf`, rather than using the default giant herd of multiple configuration files. This is a complete configuration that builds on our previous tutorials. Again, use your own OpenSSL key and certificate, and your own `userdb` home file: +在我们以前的教程中,我们为 Dovecot 在 `/etc/dovecot/dovecot.conf` 创建了一个配置文件,而不是使用多个默认配置文件。这是一个建立在我们以前的教程的完整配置。再说一次,使用你自己的 OpenSSL 密钥和证书,以及你自己的 `userdb` 家文件: ``` protocols = imap pop3 lmtp @@ -117,15 +117,15 @@ ssl_cert =