3

I've installed Postfix and it works correctly. I've installed Dovecot and set its configurations too. But when I try service dovecot start it terminates on startup. In syslog I have:

Nov 19 10:54:02 servername kernel: [2510855.242291] init: dovecot main process (29159) terminated with status 89
Nov 19 10:54:02 servername kernel: [2510855.242305] init: dovecot respawning too fast, stopped

I had installed Dovecot and it was working fine, then I changed my configurations, purge Dovecot and Postfix and after that installed them again. I copied default configurations from /usr/share/doc/dovecot-core/example-config/ and changed necessary configurations as they're mentioned in tutorials. Now I have this problem. What can I do?

1 Answers1

3

First check syntax of all configuration files in /etc/dovecot/ and /etc/dovecot/conf.d/.

Then check /etc/dovecot/conf.d/10-ssl.conf for ssl_cert and ssl_key paths. Check the files that are given, If they're not exist, use mkcert.sh to create ssl key and certificate. You can find all information here. Download dovecot-openssl.cnf and modify values. Download mkcert.sh and run it. After that change 10-ssl.conf:

ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem

Restart dovecot.