为什么dovecot不接受SSL证书?

我试图在我的服务器上设置一个邮件服务器,我遵循以下的指示:

https://help.ubuntu.com/10.04/serverguide/C/certificates-and-security.html https://help.ubuntu.com/10.04/serverguide/C/postfix.html 

但在系统日志中我得到以下错误:

 Sep 25 14:00:38 tanko-20590 dovecot: managesieve-login: Fatal: Can't load certificate file /etc/ssl/certs/ssl-mail.pem: The file doesn't contain a cer$ Sep 25 14:00:38 tanko-20590 dovecot: pop3-login: Fatal: Can't load certificate file /etc/ssl/certs/ssl-mail.pem: The file doesn't contain a certificat$ Sep 25 14:00:38 tanko-20590 dovecot: pop3-login: Fatal: Can't load certificate file /etc/ssl/certs/ssl-mail.pem: The file doesn't contain a certificat$ Sep 25 14:00:38 tanko-20590 dovecot: imap-login: Fatal: Can't load certificate file /etc/ssl/certs/ssl-mail.pem: 

我用tinyca2创build我的证书。 它可以作为一个包装。 在Ubuntu中,您可能需要将dovecot添加到ssl-cert组。 这将允许它从标准目录中读取证书。 尝试使用以下命令。

 adduser dovecot ssl-cert 

您还需要确保ssl-cert组可以读取ssl-cert的密钥。

 chgrp ssl-cert /etc/ssl/cert/ssl-mail-key.pem 

通常你的证书放在/etc/ssl/certs/etc/ssl/private

Wiki中创build和configurationDovecot的证书。

如果你按照指示,它仍然不起作用,那么我们需要更多的信息比“它不工作”。