On 12/07/2023 02:53 EEST rixati6186--- via dovecot dovecot@dovecot.org wrote:
And if possible, how to disable statistics completely and safely? Without the "0" trick, that leads getting;
"Jul 12 02:20:55 mail dovecot: auth: Error: net_connect_unix(/var/dovecot/stats-writer) failed: No such file or directory Jul 12 02:20:55 mail dovecot: auth: Error: stats: open(old-stats-user) failed: No such file or directory"
Hi!
you cannot disable the new stats, they are integral to how Dovecot works. If you disable access to the socket, you get the errors as you saw.
See https://doc.dovecot.org/configuration_manual/old_stats/, but keep in mind that all the settings should be prefixed with old_.
Also 2.4 will not have old_stats at all, so it is probably better to start using new metrics instead.
Aki