Is this a bug? exim4 error log entry

I seem to be having trouble sending smtp mail from a web form. phpmail works, but that’s far from ideal.

When I look into the logs, I get this error every time:

Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied

I sorted out the problem sending, but It’d still be good to know what this error message is all about.

This error message is benign and conveys nothing of use it seems unless you are using dovecot stats. However it’s annoying.

I found that adding to /etc/dovecot/sympl.d/10-main a file called 16-stats made it go away.

service stats {
  unix_listener stats-writer {
    user = sympl
  }
}

I think then you need to stop dovecot and restart it to get the socket owned by sympl with group of dovecot.

2 Likes