Hi, I'm seeing the same, but I think it's every time the lda is called
to deliver mail to a mailbox. Postfix runs it as vmail:vmail.
My socket is owned by root:dovecot (on Debian buster).
Should I add vmail to the dovecot group to enable it to write? Or is
changing the socket to 0666 safer?
I'm also a little confused, because according to
https://doc.dovecot.org/configuration_manual/stats/ no statistics are
logged by default, and I have no mentions of 'metric' anywhere in my
config, so why is the write even attempted? (dovecot 2.3.4)
Cheers,
Richard
On 24/10/20 4:46 am, Aki Tuomi wrote:
Hi!
You can ignore it, or you can change the socket permissions to 0666.
service stats {
unix_listener stats-writer {
mode = 0666
}
}
Aki
On 23/10/2020 17:52 mj <li...@merit.unu.edu> wrote:
Hi,
Nobody?
It happens so rarely, and the system appears to be running fine
otherwise, should I just ignore it?
Still makes me wonder way it would happen at all..?
MJ
On 10/22/20 12:53 PM, mj wrote:
> Hi,
>
> We are getting very occasional messags from dovecot:
>
>> net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied
>
> Over the last week, the message appeared five times. (on a mail server
> with over 100 users, to that's basically almost never)
>
> doveconf -n below
>
>> # 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf
>> # Pigeonhole version 0.5.4 ()
>> # OS: Linux 4.19.0-10-amd64 x86_64 Debian 10.6 xfs
>
> snip...
>
>> service stats {
>> unix_listener stats-reader {
>> group = vmail
>> mode = 0660
>> user = vmail
>> }
>> unix_listener stats-writer {
>> group = vmail
>> mode = 0660
>> user = vmail
>> }
>> }
>
> and the on-disk permissions are:
>
>> root@dovecot:~# ls -l /var/run/dovecot/*stat*
>> srw------- 1 root root 0 Oct 6 00:25 /var/run/dovecot/old-stats
>> prw------- 1 root root 0 Oct 6 00:25 /var/run/dovecot/old-stats-mail
>> prw------- 1 root root 0 Oct 6 00:25 /var/run/dovecot/old-stats-user
>> srw-rw---- 1 vmail vmail 0 Oct 6 00:25 /var/run/dovecot/stats-reader
>> srw-rw---- 1 vmail vmail 0 Oct 6 00:25 /var/run/dovecot/stats-writer
>
> We're not sure what makes the Permission denied error happen...
>
> Anyone with an idea?
>
> MJ