3

I have set up postfix and am now attempting to set up dovecot. I did apt-get install dovecot-common I have changed dovcot.conf to include the following

protocols = imap imaps

And I now get this error when restarting dovcot

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

Did I install the wrong package, is there another package I need, or am I missing something else ?

Thanks.

Marco Ceppi
  • 47,783
  • 30
  • 172
  • 197
NimChimpsky
  • 301
  • 1
  • 3
  • 10
  • ignore me, I should have read this https://help.ubuntu.com/community/Dovecot – NimChimpsky Jul 27 '11 at 17:25
  • 1
    Could you add an answer to your post explaining what you did to resolve this? – Marco Ceppi Jul 27 '11 at 17:55
  • To use dovecot as IMAP server you have to install `dovecot-imapd`. `dovecot-common` includes just the files used by both the IMAP and the POP3 servers but not the ones used by just one of them. – Florian Diesch Jul 27 '11 at 19:47

2 Answers2

9

To cite Florian Dieschs comment:

You have to install not only the dovecot-common package, but the dovecot-imapd package as well (dovecot-pop3d as option if one wants to propose access over POP3).

To cite NimChimpskys comment:

For further informations about the installation of Dovecot, read more on help.ubuntu.com/community/Dovecot.

Marc-André Appel
  • 1,184
  • 11
  • 22
-1

For me this worked (Ubuntu 22.04):

sudo apt purge dovecot-core dovecot-imapd

and then

sudo apt install dovecot-core dovecot-imapd