Edit users so slow and reading all mail in accounts

SYSTEM INFORMATION
OS type and version debian11
Webmin version 2.105
Virtualmin version 7.8.2
Related packages SUGGESTED

Hello everyone,

I have migrated a virtualmin domain from an old server to a new one server with new webmin and virtualmin versions, I have synced the maildirs with rsync. When I go to my domain → edit users it takes a lot of time, a few minutes in fact.

I have straced the /usr/share/webmin/virtual-server/list_users.cgi and I have seen it’s reading all users maildirs, for example

787078 stat(“/home/domain/homes/user/Maildir/cur/1704810496.25406_0.domain:2,Sc”, {st_mode=S_IFREG|0600, st_size=22311, …}) = 0
787078 lstat(“/home/domain/homes/user/Maildir/cur/1704369532.4979_0.domain:2,Sc”, {st_mode=S_IFREG|0600, st_size=943333, …}) = 0
787078 stat(“/home/domain/homes/user/Maildir/cur/1704369532.4979_0.domain:2,Sc”, {st_mode=S_IFREG|0600, st_size=943333, …}) = 0
787078 stat(“/home/domain/homes/user/Maildir/cur/1704369532.4979_0.domain:2,Sc”, {st_mode=S_IFREG|0600, st_size=943333, …}) = 0
787078 lstat(“/home/domain/homes/user/Maildir/cur/1709554719.25027_0.domain:2,RSc”, {st_mode=S_IFREG|0600, st_size=24236, …}) = 0
787078 stat(“/home/domain/homes/user/Maildir/cur/1709554719.25027_0.domain:2,RSc”, {st_mode=S_IFREG|0600, st_size=24236, …}) = 0
787078 stat(“/home/domain/homes/user/Maildir/cur/1709554719.25027_0.domain:2,RSc”, {st_mode=S_IFREG|0600, st_size=24236, …}) = 0
787078 lstat(“/home/domain/homes/user/Maildir/cur/1705771439.12407_0.domain:2,Sb”, {st_mode=S_IFREG|0600, st_size=654559, …}) = 0
787078 stat(“/home/domain/homes/user/Maildir/cur/1705771439.12407_0.domain:2,Sb”, {st_mode=S_IFREG|0600, st_size=654559, …}) = 0
787078 stat(“/home/domain/homes/user/Maildir/cur/1705771439.12407_0.domain:2,Sb”, {st_mode=S_IFREG|0600, st_size=654559, …}) = 0

Why is list_users doing this? Here are millions of mails and I guess this is the problem with the slowdown in edit users.

Thank you.

It’s doing it so it can show mailbox size in the list. Which is probably not information worth the wait in your case.

You can disable it in System Settings → Virtualmin Configuration → User interface settings → Show mailbox size in users list.

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