Dovecot Issue No Valid PEM Certificate

Hey guys,

I’m encountering issue which I think I may have caused myself.

My server restarted yesterday and dovecot didn’t restart, so I foolishly messed with a setting or two in an attempt to fix.

Long story short, I managed to get it back up and running however I can’t connect with any mail clients.

What I did is change the “SSL Certficiate File” and “SSL Private Key File” to default without taking note of whatever was already in there.

The error in the log is this:

imap-login: Error: Failed to initialize SSL server context: Can’t load SSL certificate: There is no valid PEM certificate.

So I’m guessing I’ve taken away where it specified the PEM certificate.

My question is, how can I retrieve whatever was in those Certificate boxes and put them back?

Thanks

What is the hostname of your Virtualmin system?

Have you created a virtual server for the domain name equal to your hostname? If so, you can assign proper SSL certificates to Dovecot by renewing the SSL certificate for that virtual server. Else renew the SSL certificate of via Webmin -> Webmin Configuration -> SSL Encryption

Hi,

What Webmin and Virtualmin versions are you using?

What is the output of -

cat /etc/dovecot/dovecot.conf

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.