Re: Doveadm error since 2.3.11.3 when run as unprivileged user
On Thu, Aug 13, 2020, Arjen de Korte wrote:
include optional config file and suppress errors if it doesn't exist
I followed this workaround, which is nicely summarized at https://github.com/postfixadmin/postfixadmin/issues/381#issuecomment-6782691...
Yet, not all errors are suppressed this way:
$ doveadm pw doveadm(olav): Error: net_connect_unix(/run/dovecot/stats-writer) failed: Permission denied
$ ls -l /run/dovecot/stats-writer srw-rw---- 1 root dovecot 0 11. Sep 00:27 stats-writer
Olav
On 11/09/2020 01:40 Olav Seyfarth olav@seyfarth.de wrote:
On Thu, Aug 13, 2020, Arjen de Korte wrote:
include optional config file and suppress errors if it doesn't exist
I followed this workaround, which is nicely summarized at https://github.com/postfixadmin/postfixadmin/issues/381#issuecomment-6782691...
Yet, not all errors are suppressed this way:
$ doveadm pw doveadm(olav): Error: net_connect_unix(/run/dovecot/stats-writer) failed: Permission denied
$ ls -l /run/dovecot/stats-writer srw-rw---- 1 root dovecot 0 11. Sep 00:27 stats-writer
Olav
Hi!
That error is more like warning, and you can safely ignore it.
If you want to get rid of it, add
service stats { unix_listener stats-writer { mode = 0666 } }
Aki
Thanks a lot, understood and added to config. No warning for doveadm any longer.
participants (2)
-
Aki Tuomi
-
Olav Seyfarth