Getting this?
$ sudo service dovecot restart
* Restarting IMAP/POP3 mail server dovecot
Error: mail_executable: Can’t use /usr/lib/dovecot/imap: No such file or directory
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
…fail!
install dovecot-imap ;)