Setting dovecot stats' service priviledges

February 24, 2020 by Roberto Puzzanghera 0 comments

Today I stumbled upon this error in my qmail-send log (yes qmail-send, not dovecot.log)

@400000005e5303ff0fe76364 delivery 407: success: lda(postmaster@mydomain.xy):_Error:_net_connect_unix(/usr/local/dovecot/var/run/dovecot/stats-writer)_failed:_Permission_denied/did_0+0+1/

Fortunately the messages were delivered successfully to the Maildirs despite of this problem.

I realized that I had to setup the stats service when upgrading in the past days. Unfortunately the configuration example shipped by dovecot doesn't even mention how to setup this service, anyway I quickly found the solution on google. It is sufficient to start the service as vpopmail adding these lines to 10-master.conf

service stats {
  unix_listener stats-reader {
    user = vpopmail
    group = vchkpw
    mode = 0660
  }
  unix_listener stats-writer {
    user = vpopmail
    group = vchkpw
    mode = 0660
  }
}

Add a comment

Recent comments
See also...
Recent posts

RSS feeds