Dovecot /usr/lib/dovecot/imap: No Such File or Directory

After installing and configuring Dovecot for:

protocols = imap imaps

And restarting Dovecot this error is seen:

Error: mail_executable: Can't use /usr/lib/dovecot/imap: No such file or directory Fatal: Invalid configuration in /etc/dovecot/dovecot.conf

This can be caused by installing the dovecot-common package but not the dovecot-imapd packages

To resolve just run on debian:

apt-get install dovecot-imapd
/etc/init.d/dovecot restart