Package: dovecot-core
Version: 1:2.3.4.1-5
Severity: normal

I have a similar problem to #903161 
("net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied),
namely:

    root@buz ~ # tail -f /var/log/exim4/mainlog
    [...]
    2019-07-29 11:15:29 XXXXX-000-4v <[email protected]>: dovecot_lda_pipe 
transport output: lda(tpo2,)Error: 
net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied

So I checked /usr/share/doc/dovecot-core/NEWS.Debian.gz which (curiously wasn't 
shown to me while upgrading...) refers to 
/usr/share/doc/dovecot-core/wiki/Upgrading.2.3.txt.gz and which contains this 
snippet:

    root@buz ~ # cat /usr/share/doc/dovecot-core/wiki/Upgrading.2.3.txt.gz
    [...]
     * Due to the new stats environment, for now some environments may get 
harmless
       errors about not being able to connect to stats-writer socket. To avoid
       these errors, give enough permissions for the processes to connect to the
       stats-writer, for example:

    
---%<-------------------------------------------------------------------------
    service stats {
      unix_listener stats-writer {
        user = vmail
        #mode = 0666 # Use only if nothing else works. It's a bit insecure, 
since
    it allows any user in the system to mess up with the statistics.
      }
    }
    
---%<-------------------------------------------------------------------------

So if I add that to my dovecot.conf I get:

    root@buz /etc/dovecot # /etc/init.d/dovecot restart
    [....] Restarting IMAP/POP3 mail server: dovecotFatal: service(stats) User 
doesn't exist: vmail (See service stats { unix_listener 
/var/run/dovecot/stats-writer { user } } setting)
    failed!

Please excuse my ignorance, I guess I should replace "user = vmail" by some 
other user however I've got no clue which one. This should be fixed in the 
Upgrading.2.3.txt.gz document I guess.

Thanks,
*t

-- Package-specific info:

-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (x86_64)

Kernel: Linux 4.9.0-9-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to de_CH.UTF-8), LANGUAGE=de_CH.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set 
to de_CH.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages dovecot-core depends on:
ii  adduser              3.118
ii  libapparmor1         2.13.2-10
ii  libbz2-1.0           1.0.6-9.1
ii  libc6                2.28-10
ii  libexttextcat-2.0-0  3.4.5-1
ii  libicu63             63.1-6
ii  liblua5.3-0          5.3.3-1.1
ii  liblz4-1             1.8.3-1
ii  liblzma5             5.2.4-1
ii  libpam-runtime       1.3.1-5
ii  libpam0g             1.3.1-5
ii  libsodium23          1.0.17-1
ii  libssl1.1            1.1.1c-1
ii  libstemmer0d         0+svn585-1+b2
ii  libwrap0             7.6.q-28
ii  lsb-base             10.2019051400
ii  openssl              1.1.1c-1
ii  ssl-cert             1.0.39
ii  ucf                  3.0038+nmu1
ii  zlib1g               1:1.2.11.dfsg-1

dovecot-core recommends no packages.

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

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

-- no debconf information

Reply via email to