Package: dovecot-core
Version: 1:2.2.18-2+b1
Severity: normal

Dear Maintainer,

dovecot-core currently ships and enables (via dh_systemd_enable) two 
units: dovecot.socket and dovecot.service. However, enabling 
dovecot.socket by default is a bit problematic in this case, for the 
following reasons:

 - dovecot.socket makes assumptions about the listening sockets; it 
   assumes an IMAP-only setup with dovecot listening on TCP ports 143 
   and 993, which may or may not be the case. Note that this is done 
   even if dovecot-imapd is not installed in the system.

 - invoke-rc.d, as used in the maintainer scripts, does not handle 
   socket units at all. This may cause unpredictable behavior during 
   package upgrades on busy servers, since dovecot.service is stopped in 
   prerm, but may be (re-)started anytime before the new packages have 
   been (fully) unpacked if it is triggered by the socket unit.

 - dh_systemd_start also does not start the socket unit by default, 
   while the socket unit will be started on the next boot, 
   differentiating boot-time and installation-time behavior.

 - dovecot.service is enabled and started anyway during boot, so using 
   socket activation for dovecot in this case seems to be redundant.

IMHO, it is okay for dovecot.socket to be shipped with the package, but 
it should not be enabled by default. Instead it should be left inactive 
and up to the admin to decide whether to explicitly enable it or not.

Regards,
Apollon

-- Package-specific info:

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (90, 'unstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, mips

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dovecot-core depends on:
ii  adduser              3.113+nmu3
ii  init-system-helpers  1.24
ii  libbz2-1.0           1.0.6-8
ii  libc6                2.21-8
ii  libexttextcat-2.0-0  3.4.4-1
ii  liblzma5             5.1.1alpha+20120614-2.1
ii  libpam-runtime       1.1.8-3.2
ii  libpam0g             1.1.8-3.2
ii  libssl1.0.2          1.0.2f-2
ii  libstemmer0d         0+svn585-1
ii  libwrap0             7.6.q-25
ii  openssl              1.0.2f-2
ii  ucf                  3.0033
ii  zlib1g               1:1.2.8.dfsg-2+b1

dovecot-core recommends no packages.

Versions of packages dovecot-core suggests:
pn  dovecot-gssapi        <none>
pn  dovecot-imapd         <none>
pn  dovecot-ldap          <none>
pn  dovecot-lmtpd         <none>
pn  dovecot-lucene        <none>
pn  dovecot-managesieved  <none>
pn  dovecot-mysql         <none>
pn  dovecot-pgsql         <none>
pn  dovecot-pop3d         <none>
pn  dovecot-sieve         <none>
pn  dovecot-solr          <none>
pn  dovecot-sqlite        <none>
pn  ntp                   <none>

Versions of packages dovecot-core is related to:
ii  dovecot-core [dovecot-common]  1:2.2.18-2+b1
pn  dovecot-dbg                    <none>
pn  dovecot-dev                    <none>
pn  dovecot-gssapi                 <none>
pn  dovecot-imapd                  <none>
pn  dovecot-ldap                   <none>
pn  dovecot-lmtpd                  <none>
pn  dovecot-managesieved           <none>
pn  dovecot-mysql                  <none>
pn  dovecot-pgsql                  <none>
pn  dovecot-pop3d                  <none>
pn  dovecot-sieve                  <none>
pn  dovecot-sqlite                 <none>

-- debconf-show failed

Reply via email to