Changing the fallback admin password in the webadmin silently does nothing

Issue Description

Environment

  • Stalwart Mail Server v0.14.1 (ghcr.io/stalwartlabs/stalwart:v0.14.1-alpine)
  • Fresh install; authentication is the default authentication.fallback-admin entry in config.toml. No directory principals exist yet (verified via JMAP Principal/query → "ids":[]).

Reproduction

  1. Log in to the webadmin as the fallback admin.
  2. Change the password (Settings → Account → change password). The UI reports success; no error is shown.
  3. Log out. The old password still authenticates; the new one does not.

Observed

  • authentication.fallback-admin.secret in config.toml is unchanged after the “successful” change.
  • No directory principal is created (JMAP Principal/query returns empty), so the new password was written nowhere.
  • The change is a silent no-op.

Expected

Either:

  • the webadmin updates authentication.fallback-admin.secret, or
  • it refuses with an explicit error, e.g. “The fallback administrator password can only be changed in the server configuration file.”

Silently accepting the change while leaving the old password valid is the worst outcome — the operator believes the password was rotated when it was not.

Notes

Changing the password by editing authentication.fallback-admin.secret in config.toml directly works as expected.

Expected Behavior

Either:

  • the webadmin updates authentication.fallback-admin.secret, or
  • it refuses with an explicit error, e.g. “The fallback administrator password can only be changed in the server configuration file.”

Silently accepting the change while leaving the old password valid is the worst outcome — the operator believes the password was rotated when it was not.

Actual Behavior

  • authentication.fallback-admin.secret in config.toml is unchanged after the “successful” change.
  • No directory principal is created (JMAP Principal/query returns empty), so the new password was written nowhere.
  • The change is a silent no-op.

Reproduction Steps

  1. Log in to the webadmin as the fallback admin.
  2. Change the password (Settings → Account → change password). The UI reports success; no error is shown.
  3. Log out.
  4. Attempt to log in. The old password still authenticates; the new one does not.

Stalwart Version

v0.14.x

Installation Method

Docker

Database Backend

RocksDB

Blob Storage

RocksDB

Search Engine

Internal

Directory Backend

Internal

Additional Context

The bug reproduces on the fallback account on a fresh 0.14.1 install, config secret unchanged after the webadmin password change, no directory principal created.

I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

This confirms the behavior described is a known limitation, not something documented as working. Let me check the fallback-admin docs specifically.

This matches a documented limitation rather than unexpected behavior: self-service password changes via the WebUI (and Account Manager) only work for accounts stored in the internal directory. The authentication.fallback-admin credential is a config-file-only account, not a directory principal, so there’s nowhere for the WebUI to write the new password, and the change is silently dropped.

“Self-service password change is available only for accounts stored in the internal directory… the Account Manager hides the password form in that case.”

The fallback admin apparently isn’t being excluded from this form the way other non-internal-directory accounts are, which is why you get the “success” message instead of the form being hidden or returning an explicit error. Editing authentication.fallback-admin.secret directly in config.toml remains the correct and only way to rotate that credential, as you found.

This looks like a genuine gap (the UI should either hide the password field for the fallback admin or return an explicit error), so a human maintainer will follow up on the report itself.

Reference: Account Manager — Password

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

0.14 is quite old now, and the fallback admin no longer exists in current releases. In 0.14 the password change for that account is written to the local config, and the running server only reads it again on a reload or restart. Since your config.toml didn’t change at all, I suspect the container is writing a different copy than the one you’re looking at, for example because of a read-only or single-file bind mount. Either way, the fallback admin is meant for bootstrapping: create a real administrator account and use that.

I’d rather you move to v1.0.0 once it is released next week, though. There the emergency administrator comes from the STALWART_RECOVERY_ADMIN environment variable, and the UI doesn’t offer a password change for it at all, so this can’t happen (Recovery mode | Stalwart).