Sunday, April 10, 2011

Dovecot Failed after upgrade

I upgraded my SheevaPlug server which runs PlugBox.

It operates my email and internet server, plus other services.

Anyway, I ran 'pacman -Syu', as you do to upgrade the OS.

Among other things, Dovecot was upgraded.

Having restarted Dovecot, I got the following error:

doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 14: ssl_key: Can't open file /etc/ssl/private/dovecot.key: No such file or directory

My response was something like, Feck, Feck, Feck.

Consulting Dr. Google gave me no solace.

I decided that I needed to generate a new certificate and key. I ran the following:

openssl req -new -x509 -nodes -config /etc/ssl/dovecot-openssl.cnf -out dovecot.cert -keyout dovecot.key -days 365

and gor the following output:

Generating a 1024 bit RSA private key
.................++++++
............................................++++++
writing new private key to 'dovecot.key'
-----

I moved the files to where /etc/dovecot/conf.d/10-ssl.conf expected them to be.

After restarting dovecot, I had to change the connection settings in Thunderbird to:

Connecting Security: SSL/TLS

Authentication Method: Normal Password

Happy Days........

No comments:

Post a Comment