Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2018 16:11:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 232785] mail/dovecot: does not identify config error and presents bad error message
Message-ID:  <bug-232785-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232785

            Bug ID: 232785
           Summary: mail/dovecot: does not identify config error and
                    presents bad error message
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ler@FreeBSD.org
          Reporter: prj@rootwyrm.com
          Assignee: ler@FreeBSD.org
             Flags: maintainer-feedback?(ler@FreeBSD.org)

Created attachment 198737
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D198737&action=
=3Dedit
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 t=
he
user with the exact error message from dovecot.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232785-7788>