During startup, the init script produces an error msg, as far as I can tell, it is not fatal. doveconf: Error: t_readlink(/run/dovecot/dovecot.conf) failed: readlink() failed: No such file or director The message is produced by doveconf and indeed the link in run is not present, when dovecot is not running. Reproducible: Always Steps to Reproduce: 1. emerge dovecot-2.3.2.1 2. see said error during startup Actual Results: error msg Expected Results: no error msg Since doveconf behaves the way it does, either check the existance of the link and create it (if not present yet) during startup or suppress the error msg, which might make diagnostics tricky, when something else goes wrong.
the problem is this line #25 in init script when you change DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} -a | grep '^base_dir = ' | sed 's/^base_dir = //') to DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} config -h base_dir) you don't get an error message an DOVECOT_BASEDIR is set correctly.
Got the same error after upgrading today, seems like it's not fatal and happened after system reboot.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38b1b5ecb1cc03000e3e9db61cb6537a7b252106 commit 38b1b5ecb1cc03000e3e9db61cb6537a7b252106 Author: Eray Aslan <eras@gentoo.org> AuthorDate: 2018-10-05 11:03:52 +0000 Commit: Eray Aslan <eras@gentoo.org> CommitDate: 2018-10-05 11:03:52 +0000 net-mail/dovecot: bump to 2.3.3 Closes: https://bugs.gentoo.org/666202 Closes: https://bugs.gentoo.org/667118 Closes: https://bugs.gentoo.org/664988 Signed-off-by: Eray Aslan <eras@gentoo.org> Package-Manager: Portage-2.3.50, Repoman-2.3.11 net-mail/dovecot/Manifest | 2 + net-mail/dovecot/dovecot-2.3.3.ebuild | 291 ++++++++++++++++++++++++++ net-mail/dovecot/files/dovecot-glibc228.patch | 44 ++++ net-mail/dovecot/files/dovecot.init-r5 | 57 +++++ 4 files changed, 394 insertions(+)