Stats-writer permission denied

Aki Tuomi aki.tuomi at open-xchange.com
Tue Jan 4 07:30:06 UTC 2022


> On 04/01/2022 08:04 Ken Wright <daddywarlock at gmail.com> wrote:
> 
>  
> I've got a new Dovecot error (well, new to me, at least)!
> 
> I ran tail /var/log/mail.err and got the following:
> 
> net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission
> denied
> 
> I checked the file, and it's owned by www-data and the www-data group,
> with read and write permissions for owner and group... just like I have
> specified in /etc/dovecot/conf.d/10-master.conf.  I can't understand
> why permission is denied when the file permissions appear to be
> correct.  Can anyone shed any light on this for me?
> 
> Ubuntu 20.04
> Dovecot 2.3.7.2
> 
> Ken

www-data? Why?

Anyways, this is a known issue, use

service stats {
  unix_listener stats-writer {
    mode = 0666
  }
}

to work around it. don't set ownership on it.

Aki


More information about the dovecot mailing list