Skip to content

gromox-mbop exhausts mailserver on large operations #182

@deajan

Description

@deajan

I've got a mailbox that got about 250K emails over some days (yes, seems crazy, bad developpment that sent 1 mail par event from some server).

I'm struggling to delete those emails.
So far, the user has moved everything into his trash without the good idea to "hard" delete items.

I'm trying to run gromox-mbop -u [email protected] purge-softdelete -r -t 0d IPM_SUBTREE, but once I do this, /usr/libexec/gromox/http uses 100% cpu and outlook / webmail connections fail with timeouts.

The gromox-mbop command has been running for a couple of hours now.
I noticed that gromox-http looks monothread (one cpu only works at 100%, other 3 don't do anything).

Should I just leave it run until it finishes, or is there perhaps some "multithread" tuning or whatever magic I could use to speed up said process ?
Doing a quick find /var/lib/gromox/user/domain.tld/baduser/ -type f -printf . | wc -c shows the same number of files (500K) since I launched the process hours ago. Connecting with sqlite3 -readonly /var/lib/gromox/user/domain.tld/baduser/exmdb/exchange.sqlite3 and running SELECT COUNT(*) FROM messages; number also doesn't seem to get lower over time.

Running gromox-3.0.101.g18cd0c8-lp156.24.1.x86_64

PS: I did try to delete those mails because I regulary get oct. 16 22:56:47 email gromox-midb[1684]: E-2403: mail_engine: timed out obtaining a reference on /var/lib/gromox/user/domain.tld/someotheruser type of messages while gromox-mbop is running, and tons of oct. 16 22:16:32 email gromox-http[1682]: E-5310: link /var/lib/gromox/user/domain.tld/baduser/eml/[...] messages while running the server without any other commands running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions