Dovecot - Error: No protocols given in configuration file

I have been trying to get Dovecot running on my laptop for development purposes, but something went wrong somewhere. The service never started and running the /etc/init.d/dovecot start script never complained or produced any output.

Just trying to find out what the problem is can be difficult sometimes, never mind finding the solution to the problem. Luckily excellent documentation from the makers came to the rescue.

A wiki entry on logging showed how to find where the logs are:
root@laptop:~# grep "starting up" /var/log/*
/var/log/acpid:[Sun Aug 19 14:05:05 2007] starting up

But no mention of Dovecot in those logs.

The clue came from directly running dovecot:
root@laptop:~# dovecot
Error: No protocols given in configuration file

And sure enough, looking at /etc/dovecot/dovecot.conf showed:
...
# Protocols we want to be serving: imap imaps pop3 pop3s
# If you only want to use dovecot-auth, you can set this to "none".
#protocols = imap imaps
protocols =
...

Setting the protocols property did the trick:
protocols = pop3

Now, I can see it starting in the logs:
root@laptop:~# grep "starting up" /var/log/*
/var/log/acpid:[Sun Aug 19 14:05:05 2007] starting up
/var/log/mail.info:Aug 21 11:52:26 laptop dovecot: Dovecot v1.0.rc17 starting up

Popular posts from this blog

Slow, Buffering, Stuttering Udemy Video

Intellij tip - Joining multiple lines into one

Looking for IT work in Australia? JobReel.com.au!