If you separate each account's folders/inbox into a separate sqlite database, with the accounts/configuration in another, it probably wouldn't be to bad at even moderate scale.
But for < 100 users one sqlite db would probably be sufficient. (on a relatively fast drive/ssd)