Created attachment 198737 [details] mail_dovecot_files_dovecot.in.patch If dovecot fails the configuration check, it will attempt to start anyways, and present a misleading error message in the process. Example of a config error attempting to start with the bad error message: root@draco /usr/local/etc/rc.d # ./dovecot onestart usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] [-B suffix] [-l linkflags] [-N dbdir] file1 file2 install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] [-B suffix] [-l linkflags] [-N dbdir] file1 ... fileN directory install -dU [-vU] [-g group] [-m mode] [-N dbdir] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] directory ... ./dovecot: WARNING: failed precmd routine for dovecot Attached patch updates rc.d to perform the configuration check before attempting to start, bails out if configuration check fails, and presents the user with the exact error message from dovecot.
Committed, Thanks.
A commit references this bug: Author: ler Date: Mon Oct 29 23:28:27 UTC 2018 New revision: 483437 URL: https://svnweb.freebsd.org/changeset/ports/483437 Log: mail/dovecot: give better error message(s) when there are configuration errors. PR: 232785 Submitted by: prj@rootwyrm.com Changes: head/mail/dovecot/Makefile head/mail/dovecot/files/dovecot.in