Postfix

郵件伺服器 (iRedMail) - 通過 SSL 將電子郵件帳戶添加到我的 Gmail 超時

  • March 1, 2017

當我嘗試使用埠 995 將我的帳戶添加到 Gmail 時,它會超時。當我在 Gmail 添加帳戶視窗中選中始終使用安全 SSL 連接時,我收到此錯誤:

“SSL 錯誤:無法驗證第一個證書”

digicert在測試 mail.serv 時給出綠色複選標記,除了

SSL 證書不受信任

我像往常一樣將 Acmetool 證書添加到 Nginx 00-default.conf 中。像這樣向 Postfix 添加證書:

postconf -e smtpd_tls_cert_file='/var/lib/acme/live/mail.server.com/cert'
postconf -e smtpd_tls_key_file='/var/lib/acme/live/mail.server.com/privkey'

像這樣向 Dovecot conf 添加了證書:

ssl_certificate /var/lib/acme/live/mail.server.com/cert;
ssl_certificate_key /var/lib/acme/live/mail.server.com/privkey;

這個問題是關於什麼的,我該如何嘗試解決這個問題?

我必須使用的是全鏈而不是證書,例如:

acmetool want mail.awesome-server.io

## nginx conf
   ssl on;
   ssl_certificate /var/lib/acme/live/mail.awesome-server.io/fullchain;
   ssl_certificate_key /var/lib/acme/live/mail.awesome-server.io/privkey;
   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

## /etc/dovecot/dovecot.conf
   ssl_cert = </var/lib/acme/live/mail.awesome-server.io/fullchain
   ssl_key = </var/lib/acme/live/mail.awesome-server.io/privkey

service dovecot restart

postconf -e smtpd_tls_cert_file='/var/lib/acme/live/mail.awesome-server.io/fullchain'
postconf -e smtpd_tls_key_file='/var/lib/acme/live/mail.awesome-server.io/privkey'

service postfix restart

按照本教程在 Postfix/Dovecot 中設置 SSL 證書/密鑰: http ://www.iredmail.org/docs/use.a.bought.ssl.certificate.html

引用自:https://serverfault.com/questions/834819