webadmin icon indicating copy to clipboard operation
webadmin copied to clipboard

Alias / account editing consistency whith auth against external sqlite DB

Open speters opened this issue 9 months ago • 1 comments

For my small personal mailserver, I have my mail users authenticate against an sqlite database.

The database is set up as written in the stalwart documentation.

The stalwart webadmin interface shows the accounts and allows adding aliases:

Image

Image

Image

So the alias seems to be stored somewhere.

But the new alias is not in use:

Image

For other account operations like setting a password, the webadmin tells that this wasn't possible:

Image

After such a failed account edit, the previously added alias is gone, the number of aliases matches the number of aliases of this user in the database again.

This looks like an inconsistency in the web admin. As a user, I would expect that I can either edit something reliably. Or I can not edit at all (e.g. just list).

speters avatar Mar 16 '25 16:03 speters

  • When adding an alias via INSERT into the db, this alias is not recognized, even after a daemon restart via systemctl.

    It needed a stalwart-cli -c $ADMINPASS -u $URL server database-maintenance to make the new alias appear.

    Maybe this has something to do with the cache setting (kept default 1h TTL for positive, 10min TTL for negative).

  • If I would set the rcp_to directory from '*' to 'mysqlitedir' (my sqlite database directory used for authentication: Would this affect also the special postmaster handling (my understanding is that postmaster is treated automatically for reporting - or is it neccessary to add a postmaster account/alias?)

  • the use of quotas in conjunction with the sqlite auth is unclear All users in screenshot have 10737418240 (10GB) quota set, but only one user has percentage quota shown:

Image

speters avatar Mar 16 '25 16:03 speters