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

SYSTEM INFORMATION
Almalinux 8.10
Webmin 2.510

Updated Webmin to 2.510 today and immediately got the following errors after trying to look at my email in Usermin (newest Authentic theme)

Everything was working just fine before the update, and Webmin was the only software updated…

Any ideas or help would be appreciated!

Try restarting all the services first:

systemctl restart dovecot webmin usermin

Yeah, sorry, should have mentioned rebooting the entire server as a troubleshoot. Nothing changed. I ran this also, just now, and it didn’t change anything.

If you go to “Webmin ⇾ Usermin Configuration: Usermin Module Configuration / Read Mail” what “Mail storage format for Inbox” and “POP3 or IMAP server name” set to?

“remote IMAP server” for storage format and “Run Dovecot command” under server name.

As a workaround, try using “Maildir style directory (Maildir)” as an option for “Mail storage format for the Inbox.”

1 Like

That’s great - worked. Thank you!

Out of curiosity what is the output of:

ls -lsa /run/dovecot/stats-writer
0 srw-rw---- 1 root dovecot 0 Sep 17 19:45 /run/dovecot/stats-writer

@Jamie, any idea what’s going on?

Thank you, i got the same error, this worked for me now, as newbie i started panicking (^_^')

1 Like

Did it work before the Webmin 2.510 upgrade? If so, what version did you have installed before?

Yes. 2.501

Everything seemed fine before the update.

Can you answer my question?

What did I not answer???

This part:

What was the Webmin version before the upgrade?

You should look more closely. It was the first thing I answered. Both questions.

Hello,
same issue with my setup. As a workaround I set permission to /var/run/dovecot/stats-writer wo accessible by others. I even tried to create a /var/run/dovecot/stats-reader (which is supported by dovecot), but I cant find a way to tell usermin to user a different stats socket.

etc/dovecot/conf.d/10-master.conf snippets (works)

service stats {
unix_listener stats-reader {
group = $default_internal_group
mode = 0666
}
unix_listener stats-writer {
group = $default_internal_group
mode = 0666
}
}

Whats doesnt work /etc/usermin/dovecot/config

dovecot=1
socket=/var/run/dovecot/stats-reader

Can I get usermin conf’d that way?

Additionally: Why does usermin in “Remote IMAP Server” Mode try to access a local file anyway ?