Error message on roundcube webmail interface: no connection to imap server. Error message on /var/log/mail: dovecot[4372]: imap-login: Fatal: Dovecot version mismatch: Master is v2.2.27, imap-login is v2.2.29.1 (if you don't care, set version_ignore=yes) emerge --info: https://paste.pound-python.org/show/4QoT4e1yMdOHRKGkadDD/
Case is solved. The reason for this was etc-update which merged "trivial changes" automatically. I restored /etc/dovecot and /etc/dovecot/conf.d files from backup and now it works again. See also https://forums.gentoo.org/viewtopic-p-8062380.html#8062380