Exim/dovecot stats-writer permission error

The exim4 log is showing dovecot_lda transport errors on message receipt:

1pUGAd-002CIY-MS <user@my-brilliant.example.com>: dovecot_lda transport output: lda(user@my-brilliant.example.com): Error: net_connect_unix(/run/dovecot/stats-writer) failed: Permission denied

sympl@alphacabbage1:/var/log$ sudo ls -al /run/dovecot/stats-*
srw------- 1 root root    0 Feb 21 15:17 /run/dovecot/stats-reader
srw-rw---- 1 root dovecot 0 Feb 21 15:17 /run/dovecot/stats-writer

doveconf shows:

service stats {
  chroot =
  client_limit = 0
  drop_priv_before_exec = no
  executable = stats
  extra_groups =
  group =
  idle_kill = 4294967295 secs
  privileged_group =
  process_limit = 1
  process_min_avail = 0
  protocol =
  service_count = 0
  type =
  unix_listener stats-reader {
    group =
    mode = 0600
    user =
  }
  unix_listener stats-writer {
    group = $default_internal_group
    mode = 0660
    user =
  }
  user = $default_internal_user
  vsz_limit = 18446744073709551615 B
}

It’s possibly an artefact from a symbiosis migration – do the permissions look normal? It could also be more widespread as I think I’ve turned up Exim’s protocol error logging.

Environment :ear_of_rice:

  • Sympl Version [11]:
  • Sympl Testing Version [no]
  • Debian Version [bullseye]:
  • Hardware Type [virtual]
  • Hosted On [mythic-beasts]

That error does sound familiar, and I think it was one of the first things that needed fixing in Sympl, although I don’t recall what the resolution was.

do the permissions look normal?

They look the same as my clean-installed copy:

srw------- 1 root root    0 Mar 15 23:31 /run/dovecot/stats-reader
srw-rw---- 1 root dovecot 0 Mar 15 23:31 /run/dovecot/stats-writer

You might want to check the relevant directories are set drwxr-xr-x however, as Exim can be picky in those kinds of situations.

The directory permissions look Ok, thanks.

Searching points to good direction at Solved - mail/dovecot - stats-writer failed: Permission denied | The FreeBSD Forums but I might be up the wrong tree and I’m not sure how best to navigate the user & group permissions under sympl…