Slow Loading and Searching in Usermin Inbox

SYSTEM INFORMATION
OS type and version Debian 11
Webmin version 2.302
Usermin version 2.202

Greetings,
I am reaching out for assistance regarding the performance issues I am facing in Usermin while trying to load and search through an inbox that contains 130,000 emails. The loading process takes more than 1 minute, and searching is extremely slow.

I would greatly appreciate any guidance, advice, or recommendations on how to address this issue and enhance the speed and efficiency of Usermin for my mailbox with a high volume of emails.

Thank you in advance for your help and support.

Ever tried roundcube (it maybe worse)? A mailbox that size sounds problematic.

Are you using the default 20 messages per page?

Use Roundcube. VERY fast even with 80GB+ mailboxes.
Usermin is unusable for almost anything. Just loading the emails and listing them is a pain.

Are you using the IMAP interface to mailboxes or directly reading the Maildir? I suspect IMAP will be faster, since Dovecot performs indexing and caching in C rather than Perl as Usermin does.

Ok, since you said “any guidance”… I would suggest stepping back and considering other ways to slice up this turkey. We had an app that would read thru the entire mailbox, process things, then exit. But eventually the old Exchange server wasn’t up “to the task” so we changed the app so that it would read the email via IMAP, save it to a database, and remove it from the email server. Then, a database search became a breeze.

Hello Joe,

Currently, when accessing Usermin through Virtualmin, I directly enter a user by clicking “Login to Usermin”. As far as my usage goes, I am interacting with the mailboxes through Usermin’s interface directly. Im using the panel by default.

If there is a specific configuration or setting I should adjust to leverage the IMAP interface for faster performance, please provide guidance on how to do so.

Thank you for your assistance in this matter.

I do use the default 20 messages per page, but the Usermin panel still tries to load all of the emails in the user.

Usermin can interact with mailboxes directly on the filesystem or via IMAP. That is configurable. It has nothing to do with how you login…it’s how Usermin is configured.

I suspect (but don’t know) IMAP will be faster for very large mailboxes, just because Dovecot has a more advanced indexing and caching implementation.

Hi Joe,

Could you please provide guidance on how to configure Usermin to interact with mailboxes via IMAP? I’ve looked through the Usermin configuration and module settings but haven’t been able to find an option for enabling IMAP. Any help would be greatly appreciated.

Thank you!

not quite
try webmin-> Usermin configuration-> Usermin module configuration->readmail
you will see

Just tried this option. Its the mail storage format which doesn’t help to read emails faster. This option doesn’t load the mails even after 5 minutes of waiting.

Also after waiting for several minutes with option “Remote IMAP Server” for mail storage I get this error:

I’m thinking you have something else wrong … have you tried using Outlook, Thunderbird or gmail to access the mailboxes ?

Yes, I have. I’ve been using thunderbird and gmail - no problem at all.