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

When you get this error in your mail.log

Edit
nano /etc/dovecot/dovecot.conf

and add somewhere

service stats {
    unix_listener stats-reader {
        user = vmail
        group = mail
        mode = 0660
    }

    unix_listener stats-writer {
        user = vmail
        group = mail
        mode = 0660
    }
}

Then restart dovecot

systemctl restart dovecot

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.