If you're using the FreeBSD port: Go to /usr/ports/mail/dovecot Edit Makefile Find the line: .if !defined(WITHOUT_KQUEUE) Change it into: .if defined(WITH_KQUEUE) Then: make deinstall && make install Worked for me.