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

SYSTEM INFORMATION
OS type and version Debian Linux 11
Webmin version 2.501
Usermin version 2.400
Virtualmin version 7.40.0

So i have this problem that i basically can not use usermin anymore. since i mostly use rouncube for mails i did not notice until now that login with usermin does not work anymore. maybe it is the case since the last update of usermin. the cronjobs with the auto.pl entries created by usermin also show the same permission errors. same as the login - which is:

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

on this website https://www.yakshaving.co.uk/posts/fixing-dovecot-stats-permissions/

he just used one line to fix the error like this:
sudo usermod -a -G dovecot andy
to add user ‘andy’ to the existing ‘dovecot’ group

could u please tell me what the error could have cause or if that fix above may could help? Do you think all my users that want to use usermin need to be in the group dovecot?

What does “I basically can not use usermin anymore” mean? What error are you seeing when you try to log in to Usermin? What appears in the Usermin logs when you try to log in to User?

You don’t need to add random users to the dovecot group.

so when I press the “Login to Usermin” - as I usually did without any issues - in the Virtualmin Menu and Usermin loads up it shows the error messages on the bottom of the screen.

i restared usermin and /var/log/miniserv.error last entries had been as follows:

[09/Sep/2025:18:51:18 +0200] Shutting down
[09/Sep/2025:18:51:18 +0200] Shutting down
[09/Sep/2025:18:51:23 +0200] miniserv.pl started
[09/Sep/2025:18:51:23 +0200] Using MD5 module Digest::MD5
[09/Sep/2025:18:51:23 +0200] Using SHA512 module Crypt::SHA
[09/Sep/2025:18:51:23 +0200] PAM authentication enabled
Prototype mismatch: sub extensions::decode_utf8: none vs ($;$) at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 66, line 3.
at (eval 171) line 1.
Prototype mismatch: sub extensions::decode_utf8: none vs ($;$) at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 66, line 3.
at (eval 171) line 1.
Prototype mismatch: sub extensions::decode_utf8: none vs ($;$) at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 66, line 3.
at (eval 171) line 1.
Prototype mismatch: sub extensions::decode_utf8: none vs ($;$) at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 66, line 3.
at (eval 171) line 1.
Prototype mismatch: sub extensions::decode_utf8: none vs ($;$) at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 66, line 3.
at (eval 171) line 1.
Prototype mismatch: sub extensions::decode_utf8: none vs ($;$) at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 66, line 3.
at (eval 171) line 1.
Prototype mismatch: sub extensions::decode_utf8: none vs ($;$) at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 66, line 3.
at (eval 173) line 1.
Prototype mismatch: sub extensions::decode_utf8: none vs ($;$) at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 66, line 3.
at (eval 173) line 1.
Prototype mismatch: sub extensions::decode_utf8: none vs ($;$) at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 66, line 3.
at (eval 173) line 1.

do u need another log files or that one?

Hmmm, I don’t know what to make of that, I’ve never heard of anyone hitting that error.

Have you modified the Dovecot configuration?


i got a message today from one person that got a domain on that specific server that complained about getting spammend with

that mail from the attached screenshot. he reported today two hours after the update of usermin. maybe there is the connection.
i did not change anything in the last months in my mail configs.

if you want to see any specific config let me know.